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
GetHandle(Window)
Gets the handle of the given
window
.public static HWND GetHandle(this Window window)
Parameters
window
Window
Returns
Hide(Window, IContext)
Hides the given
window
.public static bool Hide(this Window window, IContext context)
Parameters
Returns
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
Returns
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)