Skip to content

WidgetEventArgs

Namespace: Hex1b.Events

Assembly: Hex1b.dll

Base class for all widget event arguments. Provides access to the InputBindingActionContext for focus navigation, app control, and cancellation.

csharp
public abstract class WidgetEventArgs

Inheritance

ObjectWidgetEventArgs

Constructors

WidgetEventArgs(InputBindingActionContext)

Parameters:

csharp
protected WidgetEventArgs(InputBindingActionContext context)

Properties

CancellationToken

Convenience accessor for the cancellation token from the application run loop.

Returns: CancellationToken

csharp
public CancellationToken CancellationToken { get; }

Context

The context providing access to focus navigation, RequestStop, and CancellationToken.

Returns: InputBindingActionContext

csharp
public InputBindingActionContext Context { get; }

Notifications

Convenience accessor for the notification stack of the nearest notification host. Use this to post notifications from event handlers.

Returns: NotificationStack

csharp
public NotificationStack Notifications { get; }

Popups

Convenience accessor for the popup stack of the nearest popup host. Use this to push popups, menus, and dialogs from event handlers. The root ZStack automatically provides a PopupStack, so this is never null within a Hex1bApp.

Returns: PopupStack

csharp
public PopupStack Popups { get; }

Windows

Convenience accessor for the window manager of the nearest window host. Use this to open, close, and manage floating windows from event handlers.

Returns: WindowManager

csharp
public WindowManager Windows { get; }

Released under the MIT License.