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
-
Subscribe to the MouseLeftButtonDown event of the MainWindow.
this.MouseLeftButtonDown += MainWindow_MouseLeftButtonDown;
-
Execute the RadialMenuCommands.Hide command in the MouseLeftButtonDown event handler.
private void MainWindow_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { RadialMenuCommands.Hide.Execute(null, null); }