14 references to DisplayOrientation
Microsoft.Maui (1)
Platform\iOS\WindowExtensions.cs (1)
140
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)
173
var
orientation = Window.GetOrientation();
190
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 (3)
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; }