Table of Contents

Class ToastEventArgs

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Event data describing a toast state transition.

public class ToastEventArgs : EventArgs
Inheritance
ToastEventArgs
Inherited Members
Extension Methods

Constructors

ToastEventArgs(ToastInfo, ToastState, ToastState)

Initializes a new instance of the ToastEventArgs class.

public ToastEventArgs(ToastInfo toast, ToastState previous, ToastState current)

Parameters

toast ToastInfo

The toast that triggered the event.

previous ToastState

The state prior to the transition.

current ToastState

The state after the transition.

Properties

CurrentState

Gets the state after the transition.

public ToastState CurrentState { get; }

Property Value

ToastState

PreviousState

Gets the state prior to the transition.

public ToastState PreviousState { get; }

Property Value

ToastState

Toast

Gets the toast that triggered the event.

public ToastInfo Toast { get; }

Property Value

ToastInfo