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

Change Windows Handedness Settings in Code Behind

Updated on Sep 15, 2025

Environment

Product Version2019.2.618
ProductProgress® Telerik® UI for WPF

Description

How to change windows handedness settings in code behind.

Solution

To change the Windows Handedness settings in code, you can set the SystemParameters.MenuDropAlignment property. The method need to be called after the InitializeComponent() method.

C#
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			InitializeComponent();
			SetAlignment();
		}
	}

	public static void SetAlignment()
	{
		var ifLeft = SystemParameters.MenuDropAlignment;	  
		if (ifLeft)
		{
			var t = typeof(SystemParameters);
			var field = t.GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
			field.SetValue(null, false);
		}
	}
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support