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?

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

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,351 Reputation points Microsoft Vendor
    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.

    0 comments No comments

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.