Click or drag to resize
ICanvasAnimatedControlDpiScale 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:
float DpiScale { get; set; }

Property Value

Type: Single

This scaling factor affects the DPI of the CanvasSwapChain 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.

This property may be accessed from any thread.

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

See Also