This is a migrated thread and some comments may be shown as answers.

Accessing the NavigationItemButton for a certain RadRadialMenuItem

2 Answers 14 Views
RadialMenu
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 11 Mar 2016, 02:59 PM

Hi!

 

Is there any way to access the NavigationItemButton associated to a certain RadRadialMenuItem? I would like to show the submenus in case that the parent menuitem is clicked, therefore I need exactly the same behaviour for my menuitem as the NavigationItemButton offers.

It would be great if this would be possible in XAML only.

 

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 15 Mar 2016, 12:54 PM
Hello Michael,

You can achieve that by using the CommandService of the RadialMenu as follows:
NavigateContext context = new NavigateContext(menuItem);
menuItem.Menu.CommandService.ExecuteDefaultCommand(CommandId.NavigateToView, context);

Also you could create a command that executes this logic and set it to specific RadialMenuItem (as shown in the FirstLook example in our demos) or to all items (as shown in this help article).

If you have any other questions, please don't hesitate to write us.

Regards,
Georgi
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Michael
Top achievements
Rank 1
answered on 16 Mar 2016, 12:49 PM
Perfect! Thanks Georgie, works like a charm. I already have seen the help article, but I couldn't figure out how to combine it with a command of a certain menu entry.
Tags
RadialMenu
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Michael
Top achievements
Rank 1
Share this question
or