Changes

HowTo:Convert Xamarin XAMLs to Maui

2,648 bytes removed, 7 October
Remove OnPlatform + OnIdiom backup
|}
[[Category:How-To|Convert Xamarin XAMLs to Maui]][[Category:Mobile|Convert Xamarin XAMLs to Maui]][[Category:XAML|Convert Xamarin XAMLs to Maui]]
=== UBIKPropertyDirectEditListPopup and Guid link direct editing ===
{{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 ===
{{UnderConstructionEnd}}
[[Category:How-To|Convert Xamarin XAMLs to Maui]][[Category:Mobile|Convert Xamarin XAMLs to Maui]][[Category:XAML|Convert Xamarin XAMLs to Maui]]
== SfTabView ==
</syntaxhighlight>
|}
 
 
 
 
 
== OnPlatform + OnIdiom backup ==
{{UnderConstructionStart}}
=== Syntax Changes (REMOVE as we only want to promote using the inline syntax, which is covered in Mandatory, for multiline and other cases we refer to the other wiki article) ===
'''Use inline or multi-tag syntax.'''
Single-tag syntax is outdated and may not build.
 
{| class="wikitable"
! Xamarin
! MAUI
|-
| <syntaxhighlight lang="xml"><OnPlatform Android="False" iOS="True" /></syntaxhighlight>
| <syntaxhighlight lang="xml"><TheControl TheProperty="{OnPlatform Android=False, iOS=True}" /></syntaxhighlight>
|}
 
{| class="wikitable"
! Xamarin
! MAUI
|-
| <syntaxhighlight lang="xml">
<OnPlatform x:TypeArguments="TheType">
<On Platform="Android" Value="False" />
<On Platform="iOS" Value="True" />
</OnPlatform>
</syntaxhighlight>
| Required for multi-tag syntax
|}
 
=== WinPhone to WinUI (REMOVE / duplicate information) ===
'''Replace WinPhone with WinUI.'''
 
{| class="wikitable"
! Xamarin
! MAUI
|-
| WinPhone
| WinUI
|}
 
=== GridLength and TypeArguments (REMOVE as covered in Mandatory, but needs to be explained better there) ===
'''Avoid x:TypeArguments with GridLength.'''
 
{| class="wikitable"
! Xamarin
! MAUI
|-
| <syntaxhighlight lang="xml">
<ColumnDefinition.Width>
<OnIdiom x:TypeArguments="GridLength" Desktop="Auto" Phone="*" />
</ColumnDefinition.Width>
</syntaxhighlight>
| <syntaxhighlight lang="xml"><ColumnDefinition Width="{OnIdiom Desktop='Auto', Phone='*'}" /></syntaxhighlight>
|}
 
⚠️ Inline syntax is more reliable when using bindings or resources.
 
=== Special Characters (REMOVE as it's rather a general rule and not necessarily MAUI related) ===
'''Wrap values in quotes if they contain commas or strings.'''
 
{| class="wikitable"
! Xamarin
! MAUI
|-
| Margin={OnIdiom 10,2, Phone=2,0}
| Margin={OnIdiom '10,2', Phone='2,0'}
|}
 
=== UWP to WinUI (REMOVE as it's not mandatory, there's a Maui internal fallback) ===
'''Replace UWP with WinUI in all OnPlatform scopes.'''
 
{| class="wikitable"
! Xamarin
! MAUI
|-
| UWP
| WinUI
|}
 
⚠️ For more details, refer to the [https://wiki.augmensys.com/index.php?title=XAML_Tips#Device_and_Platform_Responsiveness Wiki documentation].
{{UnderConstructionEnd}}
[[Category:How-To|Convert Xamarin XAMLs to Maui]]
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]
[[Category:XAML|Convert Xamarin XAMLs to Maui]]
654
edits