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.
public abstract class WidgetEventArgsInheritance
Object → WidgetEventArgs
Constructors
WidgetEventArgs(InputBindingActionContext)
Parameters:
context(InputBindingActionContext):
protected WidgetEventArgs(InputBindingActionContext context)Properties
CancellationToken
Convenience accessor for the cancellation token from the application run loop.
Returns: CancellationToken
public CancellationToken CancellationToken { get; }Context
The context providing access to focus navigation, RequestStop, and CancellationToken.
Returns: InputBindingActionContext
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
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
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
public WindowManager Windows { get; }