How to override Radial Menu Button?

2 posts, 0 answers
  1. Auticus
    Auticus avatar
    14 posts
    Member since:
    Jan 2017

    Posted 11 Jul Link to this post

    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?

  2. Dinko
    Admin
    Dinko avatar
    416 posts

    Posted 14 Jul Link to this post

    Hi Auticus,

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top