public static PopupOrientationCollection GetPreferredOrientations(Windows.Popup popup) { //popup.AssertNotNull("popup"); return popup.GetValue(PreferredOrientationsProperty) as PopupOrientationCollection; }