Snackbar class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.Snackbar
Modifiers: public
Summary¶
Snackbar inform user of a process that an app has performed or will perform.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class Snackbar
class ContentControl
ContentControl <|-- Snackbar
Inherits from: ContentControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [Snackbar](# class. |
Properties¶
| Name | Summary |
|---|---|
| IsCloseButtonEnabled | Gets or sets a value indicating whether the close button is enabled. |
| IsShown | Gets or sets a value indicating whether the snackbar is shown. |
| Timeout | Gets or sets the timeout. |
| Title | Gets or sets the title. |
| Icon | Gets or sets the icon. |
| Appearance | Gets or sets the appearance. |
| ContentForeground | Gets or sets the content foreground. |
| Presenter | Gets or sets the snackbar presenter. |
Fields¶
| Name | Summary |
|---|---|
| static IsCloseButtonEnabledProperty | Property for [IsCloseButtonEnabled](# |
| static IsShownProperty | Property for [IsShown](# |
| static TimeoutProperty | Property for [Timeout](# |
| static TitleProperty | Property for [Title](# |
| static IconProperty | Property for [Icon](# |
| static AppearanceProperty | Property for [Appearance](# |
| static ContentForegroundProperty | Property for [ContentForeground](# |
Methods¶
| Name | Summary |
|---|---|
| Show | Shows the snackbar. |
| HideAsync | Hides the snackbar asynchronously. |