17 references to DisplayOrientation
Microsoft.Maui (1)
Platform\iOS\WindowExtensions.cs (1)
139 internal static DisplayOrientation GetOrientation(this IWindow? window) =>
Microsoft.Maui.Controls (10)
DeviceOrientationExtensions.cs (4)
9 public static bool IsLandscape(this DisplayOrientation orientation) => 10 orientation == DisplayOrientation.Landscape; 13 public static bool IsPortrait(this DisplayOrientation orientation) => 14 orientation == DisplayOrientation.Portrait;
FlyoutPage\FlyoutPage.cs (2)
170 var orientation = Window.GetOrientation(); 187 var orientation = DeviceDisplay.MainDisplayInfo.Orientation;
OrientationStateTrigger.cs (4)
17 public DisplayOrientation Orientation 19 get => (DisplayOrientation)GetValue(OrientationProperty); 25 BindableProperty.Create(nameof(Orientation), typeof(DisplayOrientation), typeof(OrientationStateTrigger), null, 56 var currentOrientation = DeviceDisplay.MainDisplayInfo.Orientation;
Microsoft.Maui.Essentials (6)
DeviceDisplay\DeviceDisplay.uwp.cs (3)
84 var orientation = displayOrientation == DisplayOrientations.Landscape || displayOrientation == DisplayOrientations.LandscapeFlipped 85 ? DisplayOrientation.Landscape 86 : DisplayOrientation.Portrait;
Types\DisplayInfo.shared.cs (3)
19 public DisplayInfo(double width, double height, double density, DisplayOrientation orientation, DisplayRotation rotation) 38 public DisplayInfo(double width, double height, double density, DisplayOrientation orientation, DisplayRotation rotation, float rate) 71 public DisplayOrientation Orientation { get; }