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
senderobjectThe source of the event (typically the control that raised the event).
eTEventArgsThe event data containing information about the event.
windowWindowThe parent window containing the sender control.
Type Parameters
TEventArgsThe type of the event data (e.g., ListItem, int, bool, string).