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
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
- DpiAwareElementExtensions.AutoScaleFont(Font)
- DpiAwareElementExtensions.AutoScaleFontSize(Single)
- DpiAwareElementExtensions.ScaleLogicalValue(Int32)
- DpiAwareElementExtensions.ScaleLogicalValue(Single)
- DpiAwareElementExtensions.ScaleLogicalValue(Size)
- DpiAwareElementExtensions.ScaleLogicalValue(SizeF)
- DpiAwareElementExtensions.ScaleLogicalValue(Point)
- DpiAwareElementExtensions.ScaleLogicalValue(Padding)
- DpiAwareElementExtensions.ScaleLogicalValue(Padding)
- DpiAwareElementExtensions.ScaleLogicalValue(Rectangle)
- DpiAwareElementExtensions.SynchronizeScaleFactorWithChildren()