19 references to DeviceDisplay
Microsoft.Maui (1)
Platform\iOS\WindowExtensions.cs (1)
140
DeviceDisplay
.Current.MainDisplayInfo.Orientation;
Microsoft.Maui.Controls (11)
FlyoutPage\FlyoutPage.cs (3)
187
var orientation =
DeviceDisplay
.MainDisplayInfo.Orientation;
337
DeviceDisplay
.MainDisplayInfoChanged -= OnMainDisplayInfoChanged;
341
DeviceDisplay
.MainDisplayInfoChanged += OnMainDisplayInfoChanged;
Items\ItemsView.cs (1)
198
var scaled =
DeviceDisplay
.MainDisplayInfo.GetScaledScreenSize();
LegacyLayouts\AbsoluteLayout.cs (2)
244
result.Width =
DeviceDisplay
.MainDisplayInfo.DisplayRound(region.Width * bounds.Width);
253
result.Height =
DeviceDisplay
.MainDisplayInfo.DisplayRound(region.Height * bounds.Height);
ListView\ListView.cs (1)
427
var scaled =
DeviceDisplay
.MainDisplayInfo.GetScaledScreenSize();
OrientationStateTrigger.cs (3)
40
DeviceDisplay
.MainDisplayInfoChanged += OnInfoPropertyChanged;
48
DeviceDisplay
.MainDisplayInfoChanged -= OnInfoPropertyChanged;
56
var currentOrientation =
DeviceDisplay
.MainDisplayInfo.Orientation;
TableView\TableView.cs (1)
138
var scaled =
DeviceDisplay
.MainDisplayInfo.GetScaledScreenSize();
Microsoft.Maui.Controls.Foldable (6)
NoPlatformFoldableService.cs (4)
25
DeviceDisplay
.MainDisplayInfoChanged += OnDeviceInfoChanged;
32
public bool IsLandscape =>
DeviceDisplay
.MainDisplayInfo.Orientation.IsLandscape();
34
public DisplayInfo DeviceInfo =>
DeviceDisplay
.MainDisplayInfo;
50
public Size ScaledScreenSize =>
DeviceDisplay
.MainDisplayInfo.GetScaledScreenSize();
TwoPaneView.cs (2)
101
if (
DeviceDisplay
.MainDisplayInfo.Density <= 0)
104
returnValue = 641d /
DeviceDisplay
.MainDisplayInfo.Density;
Microsoft.Maui.Essentials (1)
DeviceDisplay\DeviceDisplay.uwp.cs (1)
77
dpi /=
DeviceDisplay
.BaseLogicalDpi;