Click or drag to resize
CanvasControlDpiScale Property
Gets or sets a scaling factor applied to this control's Dpi.

Namespace:  Microsoft.Graphics.Canvas.UI.Xaml
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public float DpiScale { get; set; }

Property Value

Type: Single
Remarks

This scaling factor affects the DPI of the CanvasImageSource used by this control, as well as the following other members of the control:

  • Dpi property
  • ConvertDipsToPixels
  • ConvertPixelsToDips

A value less than or equal to zero is not valid for this property.

For more information on using this property, see Choosing resolution for controls.

See Also