Click or drag to resize

ExtensionsGetWindowHandle Method

Gets the window handle for a Windows Presentation Foundation (WPF) window

Namespace:  Cauldron.XAML
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static IntPtr GetWindowHandle(
	this Window window
)

Parameters

window
Type: System.WindowsWindow
A WPF window object.

Return Value

Type: IntPtr
The Windows Presentation Foundation (WPF) window handle (HWND).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Window. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also