2 writes to Density
Microsoft.Maui.Essentials (2)
Types\DisplayInfo.shared.cs (2)
23 Density = density; 42 Density = density;
13 references to Density
Microsoft.Maui.Controls (3)
DisplayInfoExtensions.cs (3)
12 if (info.Density == 0) 15 return new Size(info.Width / info.Density, info.Height / info.Density);
Microsoft.Maui.Controls.Foldable (2)
TwoPaneView.cs (2)
101 if (DeviceDisplay.MainDisplayInfo.Density <= 0) 104 returnValue = 641d / DeviceDisplay.MainDisplayInfo.Density;
Microsoft.Maui.Essentials (8)
DeviceDisplay\DeviceDisplay.shared.cs (1)
132 metrics.Density,
Types\DisplayInfo.shared.cs (7)
110 /// <remarks>Equality is established by comparing if <see cref="Height"/>, <see cref="Width"/>, <see cref="Density"/>, <see cref="Orientation"/> and <see cref="Rotation"/> are all equal.</remarks> 114 Density.Equals(other.Density) && 122 /// <remarks>The hash code is computed from <see cref="Height"/>, <see cref="Width"/>, <see cref="Density"/>, <see cref="Orientation"/> and <see cref="Rotation"/>.</remarks> 124 (Height, Width, Density, Orientation, Rotation).GetHashCode(); 132 $"{nameof(Density)}: {Density}, {nameof(Orientation)}: {Orientation}, " +