ApplicationViewScaling
ApplicationViewScaling
ApplicationViewScaling
ApplicationViewScaling
Class
Definition
Provides methods and properties for controlling layout scaling.
public : sealed class ApplicationViewScaling : IApplicationViewScalingpublic sealed class ApplicationViewScaling : IApplicationViewScalingPublic NotInheritable Class ApplicationViewScaling Implements IApplicationViewScaling// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Xbox One Extensions for the UWP (introduced v10.0.10240.0)
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.UI.ViewManagement.ViewManagementViewScalingContract (introduced v1)
|
Properties
DisableLayoutScaling DisableLayoutScaling DisableLayoutScaling DisableLayoutScaling
Gets a value that indicates whether layout scaling is disabled.
public : static PlatForm::Boolean DisableLayoutScaling { get; }public static bool DisableLayoutScaling { get; }Public Static ReadOnly Property DisableLayoutScaling As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
true if layout scaling is disabled; otherwise, false.
Methods
TrySetDisableLayoutScaling(Boolean) TrySetDisableLayoutScaling(Boolean) TrySetDisableLayoutScaling(Boolean) TrySetDisableLayoutScaling(Boolean)
Attempts to set the DisableLayoutScaling property to the specified value.
public : static PlatForm::Boolean TrySetDisableLayoutScaling(bool disableLayoutScaling)public static bool TrySetDisableLayoutScaling(Boolean disableLayoutScaling)Public Static Function TrySetDisableLayoutScaling(disableLayoutScaling As Boolean) As bool// You can use this method in JavaScript.
Parameters
- disableLayoutScaling
- bool Boolean Boolean Boolean
true to disable layout scaling; false to enable it.
Returns
PlatForm::Boolean
bool
bool
bool
true if the property was set successfully; otherwise, false.
Remarks
This method will always return false on devices other than Xbox.