Share via

MAUI and UserControl

BitSmithy 2,231 Reputation points
2024-10-27T09:50:10.1833333+00:00

Hello,

Is there in MAUI something like UserControl where I can code my own component with XAML, and code behind in one. and next put it into XAML?

Developer technologies | .NET | .NET MAUI
0 comments No comments

Answer accepted by question author
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,166 Reputation points Microsoft External Staff
    2024-10-28T02:08:59.9733333+00:00

    Hello,

    UserControl is a UI reuse technology. In Maui, you can use ContentView to implement UI reuse.

    You could refer to the following documentation.

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.