Compartir a través de


ExtensionMethods.AcquireWin32Focus(DependencyObject, IntPtr) Method

Definition

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

previousFocus
IntPtr

nativeint

Returns

Applies to