Skip to main content Link Search Menu Expand Document (external link)

InfoBar

Namespace: FluentAvalonia.UI.Controls

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, icons, and buttons) and can be configured to be user-dismissable or persistent.

C#

public class InfoBar : ContentControl


Xaml

<ui:InfoBar />


Required Template Parts

Name Control Type
CloseButton Button


Pseudoclasses

:hidden, :closehidden, :success, :warning, :error, :informational, :icon, :standardIcon, :foregroundset, :disabled, :focus, :focus-visible, :focus-within, :pointerover



Examples and Usage Notes

None yet.


API

Note: Inherited members are not shown


Properties

ActionButton Gets or sets the action button of the InfoBar.
ActionButtonProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.ActionButton` property
CloseButtonCommand Gets or sets the command to invoke when the close button is clicked in the InfoBar.
CloseButtonCommandParameter Gets or sets the parameter to pass to the command for the close button in the InfoBar.
CloseButtonCommandParameterProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.CloseButtonCommandParameter` property
CloseButtonCommandProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.CloseButtonCommand` property
IconSource Gets or sets the graphic content to appear alongside the title and message in the InfoBar.
IconSourceProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.IconSource` property
IsClosable Gets or sets a value that indicates whether the user can close the InfoBar.
IsClosableProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.IsClosable` property
IsIconVisible Gets or sets a value that indicates whether the icon is visible in the InfoBar.
IsIconVisibleProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.IsIconVisible` property
IsOpen Gets or sets a value that indicates whether the InfoBar is open.
IsOpenProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.IsOpen` property
Message Gets or sets the message of the InfoBar.
MessageProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.Message` property
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.
SeverityProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.Severity` property
Title Gets or sets the title of the InfoBar.
TitleProperty Defines the `FluentAvalonia.UI.Controls.InfoBar.Title` property


Events

CloseButtonClick Occurs after the close button is clicked in the InfoBar.
Closed Occurs after the InfoBar is closed.
Closing Occurs just before the InfoBar begins to close.


Methods


InfoBarSeverity

Informational Communicates that the InfoBar is displaying general information that requires the user's attention. For assistive technologies, they will follow the behavior set in the Processing_All constant.
Success Communicates that the InfoBar is displaying information regarding a long-running and/or background task that has completed successfully. For assistive technologies, they will follow the behavior set in the Processing_All constant.
Warning Communicates that the InfoBar is displaying information regarding a condition that might cause a problem in the future. For assistive technologies, they will follow the behavior set in the NotificationProcessing_ImportantAll constan
Error Communicates that the InfoBar is displaying information regarding an error or problem that has occurred. For assistive technologies, they will follow the behavior set in the NotificationProcessing_ImportantAll constant.


InfoBarClosingEventArgs

Reason Gets a constant that specifies whether the cause of the Closing event was due to user interaction (Close button click) or programmatic closure.
Cancel Gets or sets a value that indicates whether the Closing event should be canceled in the InfoBar.


InfoBarClosedEventArgs

Reason Gets a constant that specifies whether the cause of the Closed event was due to user interaction (Close button click) or programmatic closure.