Category / Section
How to change the size of the SfRadialMenu in WindowsPhone?
1 min read
The size of the SfRadialMenu can be changed as follows:
RadiusX and RadiusY:
Set the property, RadiusX to change the width of the SfRadialMenu. Set the property, RadiusY to change the height of the SfRadialMenu.
The following code demonstrates the same.
MainWindow.xaml
<navigation:SfRadialMenu RadiusX="180" RadiusY="180"> <navigation:SfRadialMenuItem Header="Cut"/> <navigation:SfRadialMenuItem Header="Copy"/> <navigation:SfRadialMenuItem Header="Paste"/> </navigation:SfRadialMenu>
MainWindow.xaml.cs
SfRadialMenu radialMenu = new SfRadialMenu() { RadiusX = 180, RadiusY = 180 }; radialMenu.Items.Add(new SfRadialMenuItem() { Header = "Cut" }); radialMenu.Items.Add(new SfRadialMenuItem() { Header = "Copy" }); radialMenu.Items.Add(new SfRadialMenuItem() { Header = "Paste" });
The following screenshot display the SfRadialMenu before and after the size change: