A Control that listens for changes in DPI of per-monitor DPI aware applications to enable DPI awareness in versions of .NET Framework where it is not natively supported.
- Inheritance:
-
object
Marshal
By Component Control objectRef Object
- Derived:
-
Standard
Color NavigablePicker Symbol IntelliSelector Prompt IntelliParameter Info Prompt Quick Info
- Implements:
-
IDisposable
IDpi
Aware Element
Remarks
For internal use only.
Constructors
DpiAwareControl()
Initializes a new instance of the Dpi
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.
Property Value
See Also
Methods
DpiScaleChanged(SizeF)
Called when the DPI-based scale factor of the element changes.
Parameter | Type | Description |
---|---|---|
scaleFactor | Size |
The new scale factor where Width is applied to the x-axis, and Height is applied to the y-axis. |
See Also
OnDpiChangedAfterParent(EventArgs)
Raises the Dpi
Parameter | Type | Description |
---|---|---|
e | Event |
An Dpi |
Inherited Members
-
Marshal
By Ref Object. Get Lifetime Service() -
Marshal
By Ref Object. Initialize Lifetime Service() -
Marshal
By Ref Object. Memberwise Clone(bool) -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()
Extension Methods
-
Dpi
Aware Element Extensions. Auto Scale Font(IDpi Aware Element, Font) -
Dpi
Aware Element Extensions. Auto Scale Font Size(IDpi Aware Element, float) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Padding) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Point) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Rectangle) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Size) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Size F) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, int) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, float) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Padding) -
Dpi
Aware Element Extensions. Synchronize Scale Factor With Children(IDpi Aware Element) - ControlExtensions.FindAncestorOrSelf<T>(Control)
- ControlExtensions.FindAncestorOrSelf<T>(Control, Predicate<T>)
- ControlExtensions.FindAncestor<T>(Control)
- ControlExtensions.FindAncestor<T>(Control, Predicate<T>)