Daniel's XL Toolbox NG
Bovender.Extensions.WindowExtensions Class Reference

Extension methods for the WPF Window class. More...

Static Public Member Functions

static void SetOwnerForm (this Window window, IntPtr ownerForm)
 Make a Windows Form the Owner of a WPF Window. More...
 
static bool ShowDialogInForm (this Window window, IntPtr parentForm)
 Shows the Window as a dialog that belongs to a Windows form parent. More...
 
static bool ShowDialogInForm (this Window window)
 Shows the Window as a dialog that belongs to a Windows form parent. This overload requires the TopLevelWindow property to be set. More...
 
static void ShowInForm (this Window window, IntPtr parentForm)
 Shows the Window as a dialog that belongs to a Windows form parent. More...
 
static void ShowInForm (this Window window)
 Shows the Window as a dialog that belongs to a Windows form parent. More...
 
static void SetOwnerForm (this Window window, IntPtr ownerForm)
 Make a Windows Form the Owner of a WPF Window. More...
 
static bool ShowDialogInForm (this Window window, IntPtr parentForm)
 Shows the Window as a dialog that belongs to a Windows form parent. More...
 
static bool ShowDialogInForm (this Window window)
 Shows the Window as a dialog that belongs to a Windows form parent. This overload requires the TopLevelWindow property to be set. More...
 
static void ShowInForm (this Window window, IntPtr parentForm)
 Shows the Window as a dialog that belongs to a Windows form parent. More...
 
static void ShowInForm (this Window window)
 Shows the Window as a dialog that belongs to a Windows form parent. More...
 

Properties

static IntPtr TopLevelWindow [get, set]
 May hold the HWND of a Windows forms top-level window; if set, it is used to set a WPF window's owner by ViewModels that inject themselves into a WPF View. More...
 

Detailed Description

Extension methods for the WPF Window class.

Member Function Documentation

◆ SetOwnerForm() [1/2]

static void Bovender.Extensions.WindowExtensions.SetOwnerForm ( this Window  window,
IntPtr  ownerForm 
)
inlinestatic

Make a Windows Form the Owner of a WPF Window.

Parameters
ownerFormWindows Forms handle that will be used as the owner of the WPF window.

◆ SetOwnerForm() [2/2]

static void Bovender.Extensions.WindowExtensions.SetOwnerForm ( this Window  window,
IntPtr  ownerForm 
)
inlinestatic

Make a Windows Form the Owner of a WPF Window.

Parameters
ownerFormWindows Forms handle that will be used as the owner of the WPF window.

◆ ShowDialogInForm() [1/4]

static bool Bovender.Extensions.WindowExtensions.ShowDialogInForm ( this Window  window,
IntPtr  parentForm 
)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent.

◆ ShowDialogInForm() [2/4]

static bool Bovender.Extensions.WindowExtensions.ShowDialogInForm ( this Window  window,
IntPtr  parentForm 
)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent.

◆ ShowDialogInForm() [3/4]

static bool Bovender.Extensions.WindowExtensions.ShowDialogInForm ( this Window  window)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent. This overload requires the TopLevelWindow property to be set.

◆ ShowDialogInForm() [4/4]

static bool Bovender.Extensions.WindowExtensions.ShowDialogInForm ( this Window  window)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent. This overload requires the TopLevelWindow property to be set.

◆ ShowInForm() [1/4]

static void Bovender.Extensions.WindowExtensions.ShowInForm ( this Window  window,
IntPtr  parentForm 
)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent.

◆ ShowInForm() [2/4]

static void Bovender.Extensions.WindowExtensions.ShowInForm ( this Window  window,
IntPtr  parentForm 
)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent.

◆ ShowInForm() [3/4]

static void Bovender.Extensions.WindowExtensions.ShowInForm ( this Window  window)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent.

Parameters
windowWPF window who's Windows forms owner to set.

◆ ShowInForm() [4/4]

static void Bovender.Extensions.WindowExtensions.ShowInForm ( this Window  window)
inlinestatic

Shows the Window as a dialog that belongs to a Windows form parent.

Parameters
windowWPF window who's Windows forms owner to set.

Property Documentation

◆ TopLevelWindow

IntPtr Bovender.Extensions.WindowExtensions.TopLevelWindow
staticgetset

May hold the HWND of a Windows forms top-level window; if set, it is used to set a WPF window's owner by ViewModels that inject themselves into a WPF View.


The documentation for this class was generated from the following file: