Class InfoBar
An InfoBar is an inline notification for essential app- wide messages. The InfoBar will take up space in a layout and will not cover up other content or float on top of it. It supports rich content (including titles, messages, and icons) and can be configured to be user-dismissable or persistent.
public class InfoBar : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
- Inheritance
-
InfoBar
- Implements
- Inherited Members
Constructors
InfoBar()
Initializes a new instance of the InfoBar class.
public InfoBar()
Fields
IsClosableProperty
Identifies the IsClosable dependency property.
public static readonly DependencyProperty IsClosableProperty
Field Value
IsOpenProperty
Identifies the IsOpen dependency property.
public static readonly DependencyProperty IsOpenProperty
Field Value
MessageProperty
Identifies the Message dependency property.
public static readonly DependencyProperty MessageProperty
Field Value
SeverityProperty
Identifies the Severity dependency property.
public static readonly DependencyProperty SeverityProperty
Field Value
TemplateButtonCommandProperty
Identifies the TemplateButtonCommand dependency property.
public static readonly DependencyProperty TemplateButtonCommandProperty
Field Value
TitleProperty
Identifies the Title dependency property.
public static readonly DependencyProperty TitleProperty
Field Value
Properties
IsClosable
Gets or sets a value indicating whether the user can close the InfoBar. Defaults to true
.
public bool IsClosable { get; set; }
Property Value
IsOpen
Gets or sets a value indicating whether the InfoBar is open.
public bool IsOpen { get; set; }
Property Value
Message
Gets or sets the message of the InfoBar.
public string Message { get; set; }
Property Value
Severity
Gets or sets the type of the InfoBar to apply consistent status color, icon, and assistive technology settings dependent on the criticality of the notification.
public InfoBarSeverity Severity { get; set; }
Property Value
TemplateButtonCommand
Gets the RelayCommand<T> triggered after clicking the close button.
public IRelayCommand TemplateButtonCommand { get; }
Property Value
Title
Gets or sets the title of the InfoBar.
public string Title { get; set; }