New to Telerik UI for WPFStart a free 30-day trial

Disable Esc Key Press in RadNavigationView

Updated on Sep 24, 2025

Environment

Product Version2020.3.1020
ProductRadNavigationView for WPF

Description

How to disable the closing of the RadNavigationView menu on Esc key press.

Solution

Subscribe to the PreviewKeyDown event of RadNavigationView and handle it in case the Esc key is pressed.

C#
	private void RadNavigationView_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
	{
		if (e.Key == System.Windows.Input.Key.Escape)
		{
			e.Handled = true;
		}
	}
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support