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

How to override Radial Menu Button?

1 Answer 122 Views
RadialMenu
This is a migrated thread and some comments may be shown as answers.
Auticus
Top achievements
Rank 1
Auticus asked on 11 Jul 2017, 06:50 PM

I am wanting to change the behavior of the Radial Menu Button.  Instead of opening / closing the radial menu, I'd like it to do something else. 

Is it possible to override the behavior of the central radial menu button on a radial menu?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 14 Jul 2017, 11:16 AM
Hi ,

Thank you for your interest in our RadRadialMenu control.

The open/close functionality of the RadialMenuButton is built in and unfortunately, cannot be changed. An approach which you could try is to extract and edit the default template of the control. You can take a look at the Editing Control Templates help article which demonstrates how you can extract the control template of the controls. In your case, in the extracted template you can navigate to the RadialMenuButton button and subscribe to its Click event. In the event handler, you can execute your own logic and handle the event afterward.
private void PART_RadialButton_Click(object sender, RoutedEventArgs e)
{
    // do something           
    e.Handled = true;
}

For your convenience, I have created sample project which demonstrates this approach. Give it a try and let me know if it works for you.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RadialMenu
Asked by
Auticus
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or