24 references to DeviceDisplay
Microsoft.Maui (1)
Platform\iOS\WindowExtensions.cs (1)
141 DeviceDisplay.Current.MainDisplayInfo.Orientation;
Microsoft.Maui.Controls (14)
Compatibility\Handlers\TableView\Tizen\TableViewRenderer.cs (1)
47 var scaled = Devices.DeviceDisplay.MainDisplayInfo.GetScaledScreenSize();
FlyoutPage\FlyoutPage.cs (3)
190 var orientation = DeviceDisplay.MainDisplayInfo.Orientation; 340 DeviceDisplay.MainDisplayInfoChanged -= OnMainDisplayInfoChanged; 344 DeviceDisplay.MainDisplayInfoChanged += OnMainDisplayInfoChanged;
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 (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.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 (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;