Migrate from Xamarin.Forms RadialMenu to .NET MAUI RadialMenu Control

22 Mar 20241 minute to read

To make the migration from the Xamarin SfRadialMenu Control to the .NET MAUI SfRadialMenu Control easier, most of the APIs from the Xamarin SfRadialMenu Control were kept in the .NET MAUI SfRadialMenu Control. However, to maintain the consistency of API naming in the .NET MAUI SfRadialMenu Control, some of the APIs have been renamed. Please find the difference in the following topics.

Namespaces

Xamarin SfRadialMenu control .NET MAUI SfRadialMenu control
Syncfusion.Xamarin.RadialMenu Syncfusion.Maui.RadialMenu

Initialize Control

To initialize the control, import the radialMenu control namespace and initialize the SfRadialMenu as shown in the following code sample.

Xamarin
<ContentPage 
...
xmlns:radialMenu="clr-namespace:Syncfusion.XForms.RadialMenu;assembly=Syncfusion.RadialMenu.XForms">
     <radialMenu:SfRadialMenu x:Name="radialMenu"/>
</ContentPage>
using Syncfusion.XForms.RadialMenu;
...

SfRadialMenu radialMenu = new SfRadialMenu();
this.Content = radialMenuControl;
.NET MAUI
<ContentPage 
...
xmlns:radialMenu="clr-namespace:Syncfusion.Maui.RadialMenu;assembly=Syncfusion.Maui.RadialMenu">
    <radialMenu:SfRadialMenu x:Name="radialMenuControl"/>
</ContentPage>
using Syncfusion.Maui.RadialMenu;


SfRadialMenu radialMenu = new SfRadialMenu();
this.Content = radialMenu;

Properties

SfRadialMenu Control

Xamarin SfRadialMenu control .NET MAUI SfRadialMenu control Description
[CenterButtonBorderColor](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfRadialMenu.XForms.SfRadialMenu.html#Syncfusion_SfRadialMenu_XForms_SfRadialMenu_CenterButtonBorderColor) [CenterButtonStroke](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RadialMenu.SfRadialMenu.html#Syncfusion_Maui_RadialMenu_SfRadialMenu_CenterButtonStroke) Gets or sets a value of the stroke brush for the centerbuttonstroke in the SfRadialMenu.
[CenterButtonBorderThickness](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfRadialMenu.XForms.SfRadialMenu.html#Syncfusion_SfRadialMenu_XForms_SfRadialMenu_CenterButtonBorderThickness) [CenterButtonStrokeThickness](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RadialMenu.SfRadialMenu.html#Syncfusion_Maui_RadialMenu_SfRadialMenu_CenterButtonStrokeThickness) Gets or sets a value of the the strokethickness for the centerbuttonstrokethickness in the SfRadialMenu.

Upcoming features in .NET MAUI RadialMenu

  • LayoutType that determines arrangement of items on rim either automatic or user defined.
  • VisibleSegmentCount that determines the number of segments visible at a time on the menu.
  • Selection allows you to highlight or choose segments within the hierarchy.
  • CenterButtonPlacement that specifies the position of the center button within the menu.
  • Accessibility.

Support and feedback

If you are unable to find the migration information you require in the self-help resources listed above, please contact us by creating a support ticket. If you do not see what you need, Please request it in our feedback portal.