Version

DpiAware Property

Returns or sets a boolean value indicating whether font sizes are automatically adjusted to compensate for the local machine's DPI adjustments.
Syntax
'Declaration
 
Public Property DpiAware As Boolean
public bool DpiAware {get; set;}
Remarks

The UltraLiveTileView control extends a mechanism through which the size of fonts can be controlled by the developer. Adjusting the DPI setting for the local machine can result in enlargement of these fonts, causing the tile content layouts to change unexpectedly.

The DpiAware property determines whether the control will adjust font sizes to compensate for this enlargement. When DpiAware is set to true, all font sizes are adjusted by a scaling factor which is determined by the ratio of the local machine's DPI to the "normal" DPI setting of 96. This scaling factor is applied to all font sizes before content is displayed, ensuring that the content layouts remain unaffected by the local machine's DPI settings.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also