How to add Maui-Control to Android.Widget.FrameLayout?

尼龟 杰 190 Reputation points
2024-02-18T13:22:00.2133333+00:00

Android.Widget.FrameLayout fl = new Android.Widget.FrameLayout(Context); fl.AddView(new CommunityToolkit.Maui.Views.MediaElement());//error //MediaElement is a community control.

Developer technologies | .NET | .NET MAUI
Developer technologies | .NET | Other
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2024-02-19T02:18:18.8333333+00:00

    Hello,

    The official documentation has detailed instructions on how to use MAUI controls in the native platform.

    Please refer to Native embedding for more details.

    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

0 additional answers

Sort by: Most helpful

Your answer

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