Table of Contents

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

previousState ModalState

The previous modal state before the change.

newState ModalState

The new modal state after the change.

openedModal Window

The modal window that was opened, if applicable.

closedModal Window

The 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

Window

NewState

The new modal state

public ModalState NewState { get; }

Property Value

ModalState

OpenedModal

The modal window that was opened (if this is an open event)

public Window? OpenedModal { get; }

Property Value

Window

PreviousState

The previous modal state

public ModalState PreviousState { get; }

Property Value

ModalState