Class WindowManager
Manages Window size, and ensures window correctly resizes during DPI changes to keep consistent DPI-independent sizing.
Implements
Inherited Members
Namespace: WinUIEx
Assembly: WinUIEx.dll
Syntax
[WinRTRuntimeClassName("Windows.Foundation.IClosable")]
[WinRTExposedType(typeof(WindowManagerWinRTTypeDetails))]
public class WindowManager : IDisposable
Properties
| Name | Description |
|---|---|
| AppWindow | Gets a reference to the AppWindow for the app |
| Height | Gets or sets the height of the window. |
| IsAlwaysOnTop | Gets or sets a value indicating whether this window is always on top. |
| IsMaximizable | Gets or sets a value indicating whether the maximimze button is visible |
| IsMinimizable | Gets or sets a value indicating whether the minimize button is visible |
| IsResizable | Gets or sets a value indicating whether the window can be resized. |
| IsTitleBarVisible | Gets or sets a value indicating whether the default title bar is visible or not. |
| IsVisibleInTray | Gets or sets a value indicating whether the window is shown in the system tray. |
| MaxHeight | Gets or sets the maximum height of this window |
| MaxWidth | Gets or sets the maximum width of this window |
| MinHeight | Gets or sets the minimum height of this window |
| MinWidth | Gets or sets the minimum width of this window |
| PersistenceId | |
| PersistenceStorage | Gets or sets the persistence storage for maintaining window settings across application settings. |
| PresenterKind | Gets or sets the presenter kind for the current window |
| TrayIconId | Gets or sets a unique identifier for the tray icon. |
| Width | Gets or sets the width of the window. |
| WindowState | Gets or sets the current window state. |
Methods
| Name | Description |
|---|---|
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| ~WindowManager() | Finalizer |
| Get(Window) | Gets (or creates) a window manager for the specific window. |
Events
| Name | Description |
|---|---|
| PositionChanged | Raised if the window position changes. |
| PresenterChanged | Raised if the presenter for the window changes. |
| TrayIconContextMenu | Occurs when the user right-clicks the tray icon. |
| TrayIconSelected | Occurs when the user clicks the left mouse button on the tray icon. |
| WindowMessageReceived | Event raised when a windows message is received. |
| WindowStateChanged | Occurs when the window's WindowState property changes. |
| ZOrderChanged | Raised if the Z order of the window changes. |