Using Uno.Themes.WinUI.Markup

The Uno.Themes.WinUI.Markup package is designed to make it easier to use the Uno.Material Theme. This provides a strongly typed Theme API that is descriptive and self-documenting for all of the available theme resources including Colors, Brushes, and Styles. If you have already read the docs for Static & Theme Resources, this should feel familiar.

new Button()
    .Style(Theme.Button.Resources.Styles.Elevated)

Using the API in the Uno.Themes has the added benefit of making built in styles more easily discoverable, easier to use, and apparent when they are being used correctly or incorrectly.