12 references to MainDisplayInfo
Microsoft.Maui.Controls (7)
FlyoutPage\FlyoutPage.cs (1)
187
var orientation = DeviceDisplay.
MainDisplayInfo
.Orientation;
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 (1)
56
var currentOrientation = DeviceDisplay.
MainDisplayInfo
.Orientation;
TableView\TableView.cs (1)
138
var scaled = DeviceDisplay.
MainDisplayInfo
.GetScaledScreenSize();
Microsoft.Maui.Controls.Foldable (5)
NoPlatformFoldableService.cs (3)
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;