UI Markup

Uno Platform provides two ways for defining your UI: WinUI XAML or C# Markup.

You can choose either one for developing your application, based on your preferences.

Note

At this time, Hot Design only supports designing XAML markup files.

XAML Markup

XAML is an XML based UI definition declarative language, and Uno Platform uses the WinUI 3 flavor.

Elements such as Grid, StackPanel and TextBlock can be used to defined your user interface.

For more information about XAML, see the Microsoft documentation on the topic.

C# Markup

C# Markup is a declarative, fluent-style syntax for defining the layout of an application in C#.

With C# Markup, you can define both the layout and the logic of your application using the same language. C# Markup leverages the same underlying object model as XAML, meaning that it has all the same capabilities, such as data binding, converters, and access to resources. You can use all the built-in controls, any custom controls you create, and any 3rd party controls, all from C# Markup.

For more information, see our overview of C# Markup.

Reactor

Reactor is a different way to write your UI in C#: instead of building pages and binding them to view models, you write components whose Render() method returns the UI for the current state, and Reactor updates the controls when that state changes. Reactor support is in preview.

For more information, see Using Reactor and the Reactor on Uno Platform README.