WPF MenuItems
For some reason my menu items expand towards the left instead of to the right. No other apps on my device do it like this so I don't think its a system setting. Any ideas on how I can fix this?

message.txt6.57KB
private static void SetDropDownMenuToBeRightAligned() {
var menuDropAlignmentField = typeof(SystemParameters).GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
Action setAlignmentValue = () =>
{
if (SystemParameters.MenuDropAlignment && menuDropAlignmentField != null) menuDropAlignmentField.SetValue(null, false);
};
setAlignmentValue();
SystemParameters.StaticPropertyChanged += (sender, e) =>
{
setAlignmentValue();
};
}