Table of Contents

Delegate WindowEventHandler<TEventArgs>

Namespace
SharpConsoleUI.Events
Assembly
SharpConsoleUI.dll

Represents a method that handles an event with window context access. This delegate provides access to the parent window, enabling event handlers to interact with other controls via FindControl<T>().

public delegate void WindowEventHandler<in TEventArgs>(object? sender, TEventArgs e, Window window)

Parameters

sender object

The source of the event (typically the control that raised the event).

e TEventArgs

The event data containing information about the event.

window Window

The parent window containing the sender control.

Type Parameters

TEventArgs

The type of the event data (e.g., ListItem, int, bool, string).