Class ModalStateChangedEventArgs
- Namespace
- SharpConsoleUI.Core
- Assembly
- SharpConsoleUI.dll
Event arguments for modal state changes
public class ModalStateChangedEventArgs : EventArgs
- Inheritance
-
ModalStateChangedEventArgs
- Inherited Members
Constructors
ModalStateChangedEventArgs(ModalState, ModalState, Window?, Window?)
Initializes a new instance of the ModalStateChangedEventArgs class.
public ModalStateChangedEventArgs(ModalState previousState, ModalState newState, Window? openedModal = null, Window? closedModal = null)
Parameters
previousStateModalStateThe previous modal state before the change.
newStateModalStateThe new modal state after the change.
openedModalWindowThe modal window that was opened, if applicable.
closedModalWindowThe modal window that was closed, if applicable.
Properties
ClosedModal
The modal window that was closed (if this is a close event)
public Window? ClosedModal { get; }
Property Value
NewState
The new modal state
public ModalState NewState { get; }
Property Value
OpenedModal
The modal window that was opened (if this is an open event)
public Window? OpenedModal { get; }
Property Value
PreviousState
The previous modal state
public ModalState PreviousState { get; }