Use MainLayout.razor instead of _Layout.cshtml

Viewed 605

I'm working on Blazor app with scaffolded Identity.

Problem is, Identity has own Layout with Navbars and Containers using Bootstrap, in other hand Blazor has his own Navigation look.

Is there chance to render identity views in MainLayout.razor, not in _Layout.cshtml, I don't find useful to have multiple layouts (Register, Login, Forgot Password..) different than the whole Blazor app pages.

I can import same classes and write same things, but, is there way to render Identity Login page in MainLayout.razor.

I know that cshtml can't render razor, but it other way it work.

Question is how can I switch _Layout.cshtml to the MainLayout.razor and have unified layout for Identity views and my pages/views?

0 Answers
Related