Skip to content

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

NameSummary
.ctorInitializes a new instance of the [Snackbar](# class.

Properties

NameSummary
IsCloseButtonEnabledGets or sets a value indicating whether the [Snackbar](# close button should be visible.
SlideTransformGets or sets the transform.
IsShownGets or sets a value indicating whether gets the information whether the [Snackbar](# is visible.
TimeoutGets or sets a time for which the [Snackbar](# should be visible.
TitleGets or sets the title of the [Snackbar](#
TitleTemplateGets or sets the title template of the [Snackbar](#
IconGets or sets displayed [IconElement](#
AppearanceGets or sets the [Appearance](# of the control, if available.
ContentForegroundGets or sets foreground of the Content.
TemplateButtonCommandGets command triggered after clicking the button in the template.
HideCommandHides the [Snackbar](#

Fields

NameSummary
static IsCloseButtonEnabledPropertyProperty for [IsCloseButtonEnabled](#
static SlideTransformPropertyProperty for [SlideTransform](#
static IsShownPropertyProperty for [IsShown](#
static TimeoutPropertyProperty for [Timeout](#
static TitlePropertyProperty for [Title](#
static TitleTemplatePropertyProperty for [TitleTemplate](#
static IconPropertyProperty for [Icon](#
static AppearancePropertyProperty for [Appearance](#
static TemplateButtonCommandPropertyProperty for [TemplateButtonCommand](#
static ContentForegroundPropertyProperty for [ContentForeground](#
static OpenedEventProperty for [Opened](#
static ClosedEventProperty for [Closed](#
Presenter

Methods

NameSummary
ShowShows the [Snackbar](#
ShowAsyncShows the [Snackbar](#
HideHides the [Snackbar](#
OnOpenedThis virtual method is called when [Snackbar](# is opening and it raises the [Opened](# event.
OnClosedThis virtual method is called when [Snackbar](# is closing and it raises the [Closed](# event.

Events

NameSummary
ClosedOccurs when the snackbar is about to close.
OpenedOccurs when the snackbar is about to open.
Inherited members