Jump to: navigation, search

Changes


XAML Tips

133 bytes removed, 08:52, 23 September 2025
/* Platform and Device-specific UI with OnPlatform and OnIdiom {{Version/MobileSince|5.0}} */
== Platform and Device-specific UI with OnPlatform and OnIdiom {{Version/MobileSince|5.0}} ==
Although '''OnPlatform''' and '''OnIdiom''' are used in Xamarin, the following wiki article is valid from Maui, as the syntax changed.
'''OnPlatform''' can be used to define different property values based on the platform. Valid Platform names are:
* iOS
* Android
* WinUI (for MAUI Mobile Windows)
* further ones see [https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/customize-ui-appearance?view=net-maui-9.0#customize-ui-appearance-with-a-markup-extension-based-on-the-platform here]
<br>
686
edits