Table of Contents

Class WindowExtensions

Namespace
Whim
Assembly
Whim.dll
Extensions for Window.
public static class WindowExtensions
Inheritance
WindowExtensions
Inherited Members

Methods

GetAppWindow(Window)

Gets the associated AppWindow instance of the given window.
public static AppWindow GetAppWindow(this Window window)

Parameters

window Window

Returns

AppWindow

GetHandle(Window)

Gets the handle of the given window.
public static HWND GetHandle(this Window window)

Parameters

window Window

Returns

HWND

Hide(Window, IContext)

Hides the given window.
public static bool Hide(this Window window, IContext context)

Parameters

window Window
context IContext

Returns

bool

InitializeBorderlessWindow(Window, IContext, string, string)

Initializes the given uiWindow as a borderless window.
public static IWindow InitializeBorderlessWindow(this Window uiWindow, IContext context, string componentNamespace, string componentPath)

Parameters

uiWindow Window
context IContext
componentNamespace string
componentPath string

Returns

IWindow

Exceptions

InitializeWindowException
When an IWindow cannot be created from the handle of the given uiWindow.

SetIsShownInSwitchers(Window, bool)

Sets a value indicating whether the given window will appear in various system representations, such as ALT+TAB and taskbar.
public static void SetIsShownInSwitchers(this Window window, bool show)

Parameters

window Window
show bool