In This Article

IDpiAwareElement Interface

Represents the base requirements for an element that is DPI aware.

public interface IDpiAwareElement

Properties

DpiScaleFactor

Gets the current DPI-based scale factor to be applied when rendering the element, where Width is applied to the x-axis, and Height is applied to the y-axis.

SizeF DpiScaleFactor { get; }

Property Value

SizeF:

A SizeF where Width is applied to the x-axis, and Height is applied to the y-axis.

See Also

Methods

DpiScaleChanged(SizeF)

Called when the DPI-based scale factor of the element changes.

void DpiScaleChanged(SizeF scaleFactor)
Parameter Type Description
scaleFactor SizeF

The new scale factor where Width is applied to the x-axis, and Height is applied to the y-axis.

See Also

Extension Methods