Share via

MAUI xml file implementation

水元 翼 0 Reputation points
2024-07-10T00:27:12.1633333+00:00

I'm currentry using the MAUI platform for ap development. I am creating a layout by setting the UI in XAML. Along with that, I would like to write xml file information to XAML. The target UI component is Seekbar. What kind of implementation should I do?

Developer technologies | .NET | .NET Multi-platform App UI
Developer technologies | .NET | Other

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,166 Reputation points Microsoft External Staff
    2024-07-10T06:27:07.4566667+00:00

    Hello,

    MAUI does not support the use of XML layouts in layouts. This is because MAUI, as a cross-platform UI framework, requires a specific layout format to be parsed during compilation.

    If your application is targeted at the Android platform and requires a layout that can be implemented by XML but not by XAML, you can create a .Net Android Application project in Visual Studio. This project can be regarded as the successor of Xamarin.Android, in which you can use XML layout.

    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.

    Was this answer helpful?

    0 comments No comments

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.