ExtensionMethods.AcquireWin32Focus(DependencyObject, IntPtr) 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.
Puts the Win32 focus to the HWND of the HwndSource of the DependencyObject provided. If a new HWND other than currently focused one is focused then it returns true, setting the previousFocus parameter to the previously focused HWND and it returns false otherwise.
public:
[System::Runtime::CompilerServices::Extension]
static bool AcquireWin32Focus(System::Windows::DependencyObject ^ obj, [Runtime::InteropServices::Out] IntPtr % previousFocus);
public static bool AcquireWin32Focus (this System.Windows.DependencyObject obj, out IntPtr previousFocus);
static member AcquireWin32Focus : System.Windows.DependencyObject * nativeint -> bool
<Extension()>
Public Function AcquireWin32Focus (obj As DependencyObject, ByRef previousFocus As IntPtr) As Boolean
Parameters
- obj
- DependencyObject
- previousFocus
-
IntPtr
nativeint