Changes

HowTo:Convert Xamarin XAMLs to Maui

1,688 bytes added, 4 August
/* Mandatory */
For classes referenced in the XAML code, please don't forget to also replace "CPL" with "MAUI" in the class namespace.
[[Category:How-To|Convert Xamarin XAMLs to Maui]][[Category:MAUI|Convert Xamarin XAMLs to Maui]][[Category:XAML|Convert Xamarin XAMLs to Maui]]
=== Syncfusion control updates ===
</syntaxhighlight>
|}
 
{{UnderConstructionStart}}
=== Avoid multiple SfPullToRefresh controls ===
'''To prevent an issue that causes the app to freeze avoid placing more then one SfPullToRefresh controls as siblings in a xaml hierarchy'''. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use a e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control
 
{| class="wikitable"
! Xamarin
! MAUI
|-
| <syntaxhighlight lang="xml">
<pullToRefresh:SfPullToRefresh IsVisible = {Binding ShowContentB, Converter={StaticResource BoolToNotBool}}>
<pullToRefresh:SfPullToRefresh.PullableContent>
<Grid x:Name="ContentA"/>
</pullToRefresh:SfPullToRefresh.PullableContent>
</pullToRefresh:SfPullToRefresh>
 
<pullToRefresh:SfPullToRefresh IsVisible = {Binding ShowContentB}>
<pullToRefresh:SfPullToRefresh.PullableContent>
<Grid x:Name="ContentB"/>
</pullToRefresh:SfPullToRefresh.PullableContent>
</pullToRefresh:SfPullToRefresh>
</syntaxhighlight>
| <syntaxhighlight lang="xml">
<pullToRefresh:SfPullToRefresh>
<pullToRefresh:SfPullToRefresh.PullableContent>
<controls:ContentControl ContentTemplate="{DynamicResource TemplateA}">
<controls:ContentControl.Triggers>
<DataTrigger
Binding="{Binding UseTemplateB}}"
TargetType="controls:ContentControl"
Value="true">
<Setter Property="ContentTemplate" Value="{DynamicResource TemplateB}" />
</DataTrigger>
</controls:ContentControl.Triggers>
</controls:ContentControl>
</pullToRefresh:SfPullToRefresh.PullableContent>
</pullToRefresh:SfPullToRefresh>
</syntaxhighlight>
|}
{{UnderConstructionEnd}}
=== Rename SfPullToRefresh properties ===
238
edits