=== OnPlatform and OnIdiom syntax changes ===
{{UnderConstructionStart}} '''All code containing the OnPlatform and OnIdiom functionalities needs to be refactored as the syntax has changed. It is recommended to use the inline syntax (see example) as a default wherever possible, but there are also other approaches.When using Bindings, Resources or other complex values in OnIdiom or OnPlatform values, it should only be used with the inline syntax.Please rely to the wiki for more details and possibilities (e.g. if the value contains multiple elements): https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom'''
{| class="wikitable"
! Xamarin
! MAUI
! style="width:7%" | Notes
|-
| OnPlatform
TheProperty="{OnPlatform Android={Binding ...}, iOS={Binding ...}}" />
</syntaxhighlight>
| rowspan="2" | It is recommended to use the inline syntax as a default wherever possible, but there are also other approaches.When using Bindings, Resources, or other complex values in OnIdiom or OnPlatform values, it should '''only''' be used with the inline syntax.
|-
| OnIdiom
TheProperty="{OnIdiom Desktop={Binding ...}, Phone={Binding ...}}" />
</syntaxhighlight>
|-
| WinPhone
| WinUI
|-
| <syntaxhighlight lang="xml">
<RowDefinition Height="{OnPlatform Android='Auto', iOS='*'}" />
</syntaxhighlight>
| When using GridLength as a type (e.g,. in ColumnDefinition.Width or RowDefinition.Height) in OnIdiom or OnPlatform, it should '''only''' be used with the inline syntax.
|-
| WinPhone
| WinUI
| In the scope of any OnPlatform/On Platform, WinPhone needs to be replaced with WinUI.
|}
⚠️ Please refer to the wiki for more details and possibilities (e.g., if the value contains multiple elements): [https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom Platform and Device-specific UI with OnPlatform and OnIdiom].
{{UnderConstructionEnd}}
[[Category:How-To|Convert Xamarin XAMLs to Maui]]
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]
[[Category:XAML|Convert Xamarin XAMLs to Maui]]
=== Remove default ControlTemplate ===