Changes

HowTo:Convert Xamarin XAMLs to Maui

1,143 bytes removed, 25 July
/* Mandatory */
=== OnPlatform and OnIdiom syntax changes ===
{| class="wikitable"! Xamarin! MAUI|-| ...| ...|} === OnPlatform and OnIdiom syntax changes ==='''All code containing the OnPlatform functionality and OnIdiom functionalities needs to be refactored as the syntax 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'''
TheProperty="{OnPlatform Android={Binding ...}, iOS={Binding ...}}" />
</syntaxhighlight>
|}
=== OnPlatform and OnIdiom syntax changes ===
'''All code containing the OnIdiom functionality needs to be refactored as the syntax changed. It is recommended to use the inline syntax (see example) as a default wherever possible, but there are also other approaches like the multi-tag syntax.
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 infos: https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom'''
{| class="wikitable"
! Xamarin
! MAUI
|-
| OnIdiom
TheProperty="{OnIdiom Desktop={Binding ...}, Phone={Binding ...}}" />
</syntaxhighlight>
|}
 
=== OnPlatform and OnIdiom syntax changes ===
'''In the scope of any OnPlatform/On Platform, WinPhone needs to be replaced with WinUI.'''
{| class="wikitable"
! Xamarin
! MAUI
|-
| WinPhone
| WinUI
|}
 
=== OnPlatform and OnIdiom syntax changes ===
'''When using GridLength as a type (e.g. in ColumDefinition.Width or RowDefinition.Height) in OnIdiom or OnPlatform, it should only be used with the inline syntax. More infos see in the wiki: https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom'''
{| class="wikitable"
! Xamarin
! MAUI
|-
| <syntaxhighlight lang="xml">
| ProgressBackground, ProgressColor
|}
 
[[Category:How-To|Convert Xamarin XAMLs to Maui]]
[[Category:MAUI|Convert Xamarin XAMLs to Maui]]
[[Category:XAML|Convert Xamarin XAMLs to Maui]]
== SfTabView ==
1,765
edits