NotificationActionContext
Namespace: Hex1b
Assembly: Hex1b.dll
Context passed to notification action button handlers.
csharp
public class NotificationActionContext : NotificationEventContextInheritance
Object → NotificationEventContext → NotificationActionContext
Properties
InputTrigger
The input context that triggered this action (user clicked a button, pressed a key, etc.).
Returns: InputBindingActionContext
csharp
public InputBindingActionContext InputTrigger { get; }Remarks
This context is passed to handlers registered with and . It extends with access to the input trigger.
Use to access app-level services like focus management, popups, notifications, and clipboard - just like in regular button click handlers.
Examples
A notification action that opens a file and dismisses the notification:
csharp
new Notification("Download Complete", "file.zip downloaded")
.PrimaryAction("Open", async ctx => {
await OpenFileAsync("file.zip");
ctx.Dismiss();
})