Hi,
I have a radial menu in my app and I would like it to have more or less sub-items depending on the state of the app. So, I might start with only the center button but when the user presses a button some menu items are added to it. Something like:
My menu:
<xForms:SfRadialMenu Grid.Row="1" x:Name="RadialMenuInfo" Style="{StaticResource RadialMenuStyle}"
CenterButtonText="{x:Static local:FontAwesomeFont.Plus}"
IsVisible="True"/>
And some sample code (adapted from your sample code):
private void Button_clicked(object sender, EventArgs e)
{
var layer = new string[] { "\uE701", "\uE702", "\uEA8F", "\uE706", "\uEBAA", "\uE7E8" };
var mainMenuItems = new SfRadialMenuItem();
mainMenuItems.IconFontSize = 20;
mainMenuItems.FontIconText = layer[0];
mainMenuItems.ItemHeight = 30;
mainMenuItems.ItemWidth = 40;
mainMenuItems.TextColor = Color.White;
//mainMenuItems.ItemTapped += Handle_ItemTapped;
mainMenuItems.IconFontFamily = "Segoe MDL2 Assets.ttf";
RadialMenuItem.Items.Add(mainMenuItems);
}
As I step into this code I can see the number of RadialMenuItem.Items increase but, on screen, the control stays unchanged without any new items. Is this scenario supported? Am I missing some step?
Thanks,
Jose