DpiAwareness.HookDpiChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HookDpiChanged(Image, RoutedEventHandler) |
Hooks up the given callback to the given Image. |
HookDpiChanged(HwndHost, RoutedEventHandler) |
Hooks up the given callback to the given HwndHost. |
HookDpiChanged(Window, RoutedEventHandler) |
Hooks up the given callback to the given Window. |
HookDpiChanged(Image, RoutedEventHandler)
Hooks up the given callback to the given Image.
public:
[System::Runtime::CompilerServices::Extension]
static void HookDpiChanged(System::Windows::Controls::Image ^ image, System::Windows::RoutedEventHandler ^ callback);
public static void HookDpiChanged (this System.Windows.Controls.Image image, System.Windows.RoutedEventHandler callback);
static member HookDpiChanged : System.Windows.Controls.Image * System.Windows.RoutedEventHandler -> unit
<Extension()>
Public Sub HookDpiChanged (image As Image, callback As RoutedEventHandler)
Parameters
- image
- Image
The control whose DpiChanged event to hook.
- callback
- RoutedEventHandler
The RoutedEventHandler delegate to call when a DpiChanged event is triggered.
Applies to
HookDpiChanged(HwndHost, RoutedEventHandler)
Hooks up the given callback to the given HwndHost.
public:
[System::Runtime::CompilerServices::Extension]
static void HookDpiChanged(System::Windows::Interop::HwndHost ^ hwndHost, System::Windows::RoutedEventHandler ^ callback);
public static void HookDpiChanged (this System.Windows.Interop.HwndHost hwndHost, System.Windows.RoutedEventHandler callback);
static member HookDpiChanged : System.Windows.Interop.HwndHost * System.Windows.RoutedEventHandler -> unit
<Extension()>
Public Sub HookDpiChanged (hwndHost As HwndHost, callback As RoutedEventHandler)
Parameters
- hwndHost
- HwndHost
The control whose DpiChanged event to hook.
- callback
- RoutedEventHandler
The RoutedEventHandler delegate to call when a DpiChanged event is triggered.
Applies to
HookDpiChanged(Window, RoutedEventHandler)
Hooks up the given callback to the given Window.
public:
[System::Runtime::CompilerServices::Extension]
static void HookDpiChanged(System::Windows::Window ^ window, System::Windows::RoutedEventHandler ^ callback);
public static void HookDpiChanged (this System.Windows.Window window, System.Windows.RoutedEventHandler callback);
static member HookDpiChanged : System.Windows.Window * System.Windows.RoutedEventHandler -> unit
<Extension()>
Public Sub HookDpiChanged (window As Window, callback As RoutedEventHandler)
Parameters
- window
- Window
The control whose DpiChanged event to hook.
- callback
- RoutedEventHandler
The RoutedEventHandler delegate to call when a DpiChanged event is triggered.