Skip to main content

InfoBarClosingEventArgs

C# API / Fluence.Wpf

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf
public class InfoBarClosingEventArgs : EventArgs

Provides data for the Closing event.

Remarks: Initializes a new instance of the InfoBarClosingEventArgs class.

Parameter reason: Why the info bar is closing.

Base type: EventArgs (including inherited WPF and .NET members)

C# source

Constructors​

InfoBarClosingEventArgs​

public InfoBarClosingEventArgs(InfoBarCloseReason reason)

Provides data for the Closing event.

Remarks: Initializes a new instance of the InfoBarClosingEventArgs class.

Parameter reason: Why the info bar is closing.

Properties​

Cancel​

public bool Cancel { get; set; }

Gets or sets a value indicating whether the close operation should be canceled. Set to true to prevent the InfoBar from closing.

Reason​

public InfoBarCloseReason Reason { get; }

Gets the reason the info bar is closing. It matches the Reason of the Closed that follows when the close is not canceled.