18 references to MainDisplayInfo
Microsoft.Maui.Controls (10)
Compatibility\Handlers\TableView\Tizen\TableViewRenderer.cs (1)
47
var scaled = Devices.DeviceDisplay.
MainDisplayInfo
.GetScaledScreenSize();
FlyoutPage\FlyoutPage.cs (1)
190
var orientation = DeviceDisplay.
MainDisplayInfo
.Orientation;
Handlers\Items\Tizen\MauiCollectionView.cs (1)
137
var scaled = Devices.DeviceDisplay.
MainDisplayInfo
.GetScaledScreenSize();
Handlers\Shell\Tizen\ShellSearchView.cs (1)
116
var screenSize = Devices.DeviceDisplay.
MainDisplayInfo
.GetScaledScreenSize();
Items\ItemsView.cs (1)
201
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.Compatibility (3)
iOS\Renderers\ListViewRenderer.cs (1)
1306
if (_isDragging && scrollView.ContentOffset.Y < -10f && _uiTableViewController._usingLargeTitles && DeviceDisplay.
MainDisplayInfo
.Orientation.IsPortrait())
iOS\Renderers\NavigationRenderer.cs (1)
1624
return (DeviceInfo.Idiom == DeviceIdiom.Phone && DeviceDisplay.
MainDisplayInfo
.Orientation.IsLandscape()) ? 32 : 44;
iOS\Renderers\SearchBarRenderer.cs (1)
185
size.Width = (nfloat)(Element?.Parent is VisualElement parent ? parent.Width : DeviceDisplay.
MainDisplayInfo
.GetScaledScreenSize().Width);
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;