ResolutionScale Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the scale factor of the app window. The scale factor is determined by the operating system in response to high pixel density screens.
public enum class ResolutionScale
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ResolutionScale
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ResolutionScale
var value = Windows.Graphics.Display.ResolutionScale.invalid
Public Enum ResolutionScale
- Inheritance
-
ResolutionScale
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
Invalid | 0 | Specifies that the scale of a display is invalid. |
Scale100Percent | 100 | Specifies the scale of a display as 100 percent. This percentage indicates a minimum screen resolution for Windows all up is 1024x768. |
Scale120Percent | 120 | This value isn't used. |
Scale125Percent | 125 | Specifies the scale of a display as 125 percent. |
Scale140Percent | 140 | Specifies the scale of a display as 140 percent. This percentage indicates a minimum screen resolution to scale at 140 is 1440x1080. |
Scale150Percent | 150 | Specifies the scale of a display as 150 percent. Also applies to Windows Phone 8. |
Scale160Percent | 160 | Specifies the scale of a display as 160 percent. Applies to Windows Phone 8. |
Scale175Percent | 175 | Specifies the scale of a display as 175 percent. |
Scale180Percent | 180 | Specifies the scale of a display as 180 percent. This percentage indicates a minimum screen resolution to scale at 180 is 1920x1440. |
Scale200Percent | 200 | Specifies the scale of a display as 200 percent. |
Scale225Percent | 225 | This value isn't used. |
Scale250Percent | 250 | Specifies the scale of a display as 250 percent. |
Scale300Percent | 300 | Specifies the scale of a display as 300 percent. |
Scale350Percent | 350 | Specifies the scale of a display as 350 percent. |
Scale400Percent | 400 | Specifies the scale of a display as 400 percent. |
Scale450Percent | 450 | Specifies the scale of a display as 450 percent. |
Scale500Percent | 500 | Specifies the scale of a display as 500 percent. |
Remarks
The range of asset scale values that can be provided to MakeAppX for a UWP app is limited to 100, 125, 150, 200, 250, 300, 400 and 500.
For more info on scaling to pixel density, see UX guidelines for layout and scaling.
The Scaling according to DPI sample shows how to use the ResolutionScale enumeration.
For UWP apps and Windows Phone apps, we recommend these scale factors:
- UWP app (100/140/180)
- Windows Phone apps for Windows Phone 8.1 and later (100/140/240)
- Windows Phone apps for Windows Phone 8 (100/150/160)