Class WindowExtensions
Extensions for the WPF Window class
Inheritance
System.Object
WindowExtensions
Namespace: Dapplo.Windows.Dpi.Wpf
Assembly: Dapplo.Windows.Dpi.dll
Syntax
public static class WindowExtensions : object
Methods
| Improve this Doc View SourceAttachWindowDpiHandler(Window)
Handle DPI changes for the specified Window
Declaration
public static DpiHandler AttachWindowDpiHandler(this Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | Window |
Returns
Type | Description |
---|---|
DpiHandler | DpiHandler |
UpdateLayoutTransform(FrameworkElement, Double)
This can be used to change the scaling of the FrameworkElement
Declaration
public static void UpdateLayoutTransform(this FrameworkElement frameworkElement, double scaleFactor)
Parameters
Type | Name | Description |
---|---|---|
FrameworkElement | frameworkElement | FrameworkElement |
System.Double | scaleFactor | double with the factor (1.0 = 100% = 96 dpi) |