public static PopupOrientation GetActualOrientation(Windows.Popup popup) { //popup.AssertNotNull("popup"); return popup.GetValue(ActualOrientationProperty) as PopupOrientation; }