Interface IBlazorWindowController
Defines the contract for a Blazor window with configurable UI properties, event-driven lifecycle, and window state operations.
Namespace: PoeShared.Blazor.Wpf
Assembly: PoeShared.Blazor.Wpf.dll
Syntax
public interface IBlazorWindowController
Properties
Name | Description |
---|---|
BackgroundColor | Gets or sets background color of the window. Can use transparent to hide bg entirely. |
BorderColor | Gets or sets border color of the window. |
BorderThickness | Gets or sets border thickness of the window. |
Height | Gets or sets the height of the window. |
IsClickThrough | Gets or sets a value indicating whether the window should be click-through (i.e., not interactable). |
IsDebugMode | Gets or sets a value indicating whether the window is in debug mode. |
IsVisible | Gets or sets a value indicating whether the window is visible |
Left | Gets or sets the horizontal position of the window. |
Log | Gets logger which could be used to produce messages on behalf of the window |
MaxHeight | Gets or sets the maximum height of the window. |
MaxWidth | Gets or sets the maximum width of the window. |
MinHeight | Gets or sets the minimum height of the window. |
MinWidth | Gets or sets the minimum width of the window. |
NoActivate | Gets or sets a value indicating whether the window should NOT be activated when clicked |
Opacity | Gets or sets the opacity of the window. |
Padding | Gets or sets the padding around the window content. |
ResizeMode | Gets or sets the window resize mode, defining how the user can resize the window. |
ShowCloseButton | Gets or sets a value indicating whether the window should have close button. |
ShowInTaskbar | Gets or sets a value indicating whether the window should appear in the taskbar. |
ShowMaxButton | Gets or sets a value indicating whether the window should have maximize button. |
ShowMinButton | Gets or sets a value indicating whether the window should have minimize button. |
Title | Gets or sets the title text of the window. |
TitleBarDisplayMode | Gets or sets a value indicating whether the title bar is visible and how it is displayed. |
Top | Gets or sets the vertical position of the window. |
Topmost | Gets or sets a value indicating whether the window should remain on top of other windows. |
WhenActivated | Observable sequence for when the window is activated. |
WhenClosed | Observable sequence for when the window is closed. |
WhenClosing | Observable sequence for when the window is about to close, allowing cancellation. |
WhenDeactivated | Observable sequence for when the window is deactivated. |
WhenKeyDown | Observable sequence for when a key is pressed while the window has focus. |
WhenKeyUp | Observable sequence for when a key is released while the window has focus. |
WhenLoaded | Observable sequence for when the window is fully loaded and rendered. |
WhenMouseDown | Observable sequence for when a mouse button is pressed while the window has focus. |
WhenMouseMove | Observable sequence for when mouse is moved and the window is in focus. |
WhenMouseUp | Observable sequence for when a mouse button is released while the window has focus. |
WhenPreviewKeyDown | Observable sequence for when a key is pressed before other event handlers process the input. |
WhenPreviewKeyUp | Observable sequence for when a key is released before other event handlers process the input. |
WhenPreviewMouseDown | Observable sequence for when a mouse button is pressed before other event handlers process the input. |
WhenPreviewMouseMove | Observable before any other events for when mouse is moved and the window is in focus. |
WhenPreviewMouseUp | Observable sequence for when a mouse button is released before other event handlers process the input. |
WhenUnloaded | Observable sequence for when the window is unloaded |
Width | Gets or sets the width of the window. |
WindowState | Gets or sets state of the window - minimized/maximized/normal. |
Methods
Name | Description |
---|---|
Activate() | Activates the window, bringing it to front and giving focus. |
BeginInvoke(Action) | Schedules specific operation for execution as a part of Window message processing |
Close() | Closes the window, releasing all associated resources. |
EnableDragMove() | Enables the ability to drag the current window using the mouse. |
Hide() | Hides the window, making it invisible without closing it. |
Maximize() | Maximizes the window |
Minimize() | Minimizes the window |
Restore() | Restores the window from Maximized state to Normal |
Show() | Shows the window, making it visible. |
ShowDialog(CancellationToken) | Shows the window as a modal dialog, blocking other interactions until closed. |
WaitForIdle(TimeSpan) | Waits until all Window messages are processed |
Events
Name | Description |
---|---|
Activated | Occurs when the window is activated. |
Closed | Occurs when the window is closed. |
Closing | Occurs when the window is about to close, providing the option to cancel. |
Deactivated | Occurs when the window is deactivated. |
KeyDown | Occurs when a key is pressed while the window has focus. |
KeyUp | Occurs when a key is released while the window has focus. |
Loaded | Occurs when the window is fully loaded and rendered. |
MouseDown | Occurs when a mouse button is pressed while the window has focus. |
MouseMove | Occurs when mouse is moved and the window is in focus. |
MouseUp | Occurs when a mouse button is released while the window has focus. |
PreviewKeyDown | Occurs before any other event handlers for a key-down event. |
PreviewKeyUp | Occurs before any other event handlers for a key-up event. |
PreviewMouseDown | Occurs before any other event handlers for a mouse-down event. |
PreviewMouseMove | Occurs before any other event handlers when mouse is moved and the window is in focus. |
PreviewMouseUp | Occurs before any other event handlers for a mouse-up event. |