New to Telerik UI for WPF? Download free 30-day trial

How to close RadRadialMenu with an outside click

Environment

Product Version 2019.2.510
Product RadRadialMenu for WPF

Description

How to close RadRadialMenu on a click outside the element.

Solution

  1. Subscribe to the MouseLeftButtonDown event of the MainWindow.

        this.MouseLeftButtonDown += MainWindow_MouseLeftButtonDown; 
    
  2. Execute the RadialMenuCommands.Hide command in the MouseLeftButtonDown event handler.

        private void MainWindow_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) 
        { 
            RadialMenuCommands.Hide.Execute(null, null); 
        } 
    

See Also

In this article