Snackbar class¶
Defined in
Namespace: CrissCross.WPF.UI.Controls
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Controls.Snackbar
Modifiers: public
Summary¶
Snackbar inform user of a process that an app has performed or will perform. It appears temporarily, towards the bottom of the window.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class Snackbar
class ContentControl
ContentControl <|-- Snackbar
class IAppearanceControl {
<>
}
IAppearanceControl <|.. Snackbar
class IIconControl {
<>
}
IIconControl <|.. Snackbar
Inherits from: ContentControl
Implements: IAppearanceControl, IIconControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [Snackbar](# class. |
Properties¶
| Name | Summary |
|---|---|
| IsCloseButtonEnabled | Gets or sets a value indicating whether the [Snackbar](# close button should be visible. |
| SlideTransform | Gets or sets the transform. |
| IsShown | Gets or sets a value indicating whether gets the information whether the [Snackbar](# is visible. |
| Timeout | Gets or sets a time for which the [Snackbar](# should be visible. |
| Title | Gets or sets the title of the [Snackbar](# |
| TitleTemplate | Gets or sets the title template of the [Snackbar](# |
| Icon | Gets or sets displayed [IconElement](# |
| Appearance | Gets or sets the [Appearance](# of the control, if available. |
| ContentForeground | Gets or sets foreground of the Content. |
| TemplateButtonCommand | Gets command triggered after clicking the button in the template. |
| HideCommand | Hides the [Snackbar](# |
Fields¶
| Name | Summary |
|---|---|
| static IsCloseButtonEnabledProperty | Property for [IsCloseButtonEnabled](# |
| static SlideTransformProperty | Property for [SlideTransform](# |
| static IsShownProperty | Property for [IsShown](# |
| static TimeoutProperty | Property for [Timeout](# |
| static TitleProperty | Property for [Title](# |
| static TitleTemplateProperty | Property for [TitleTemplate](# |
| static IconProperty | Property for [Icon](# |
| static AppearanceProperty | Property for [Appearance](# |
| static TemplateButtonCommandProperty | Property for [TemplateButtonCommand](# |
| static ContentForegroundProperty | Property for [ContentForeground](# |
| static OpenedEvent | Property for [Opened](# |
| static ClosedEvent | Property for [Closed](# |
| Presenter |
Methods¶
| Name | Summary |
|---|---|
| Show | Shows the [Snackbar](# |
| ShowAsync | Shows the [Snackbar](# |
| Hide | Hides the [Snackbar](# |
| OnOpened | This virtual method is called when [Snackbar](# is opening and it raises the [Opened](# event. |
| OnClosed | This virtual method is called when [Snackbar](# is closing and it raises the [Closed](# event. |
Events¶
| Name | Summary |
|---|---|
| Closed | Occurs when the snackbar is about to close. |
| Opened | Occurs when the snackbar is about to open. |