What is the MAUI equivalent of .NET Core's `_Layout.cshtml`?

Uchchay Dugal 21 Reputation points

You see, there's this image which needs to show up on every page of my MAUI app, and if it were a .NET Core app, I'd simply add it in _Layout.cshtml. However, with MAUI, I don't see a way of doing that easily. How would I go about this?

Microsoft Technologies based on the .NET software framework.
3,517 questions
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,266 Reputation points Microsoft Vendor


    For UI reuse functionality in MAUI, it is recommended to use Control templates.

    You can use it to design template controls or template pages for reuse in MAUI.

    For detailed instructions and examples, plese refer to Control templates.

    Best Regards,

    Alec Liu.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments