Table of Contents

Class SnackbarServiceExtensions

Namespace
Wpf.Ui.Extensions
Assembly
Wpf.Ui.dll

Extensions for the ISnackbarService.

public static class SnackbarServiceExtensions
Inheritance
SnackbarServiceExtensions
Inherited Members

Methods

Show(ISnackbarService, string, string)

Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.

public static void Show(this ISnackbarService snackbarService, string title, string message)

Parameters

snackbarService ISnackbarService

The ISnackbarService.

title string

Name displayed on top of snackbar.

message string

Message inside the snackbar.

Show(ISnackbarService, string, string, TimeSpan)

Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.

public static void Show(this ISnackbarService snackbarService, string title, string message, TimeSpan timeout)

Parameters

snackbarService ISnackbarService

The ISnackbarService.

title string

Name displayed on top of snackbar.

message string

Message inside the snackbar.

timeout TimeSpan

The time after which the snackbar should disappear.

Show(ISnackbarService, string, string, ControlAppearance)

Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.

public static void Show(this ISnackbarService snackbarService, string title, string message, ControlAppearance appearance)

Parameters

snackbarService ISnackbarService

The ISnackbarService.

title string

Name displayed on top of snackbar.

message string

Message inside the snackbar.

appearance ControlAppearance

Display style.

Show(ISnackbarService, string, string, ControlAppearance, TimeSpan)

Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.

public static void Show(this ISnackbarService snackbarService, string title, string message, ControlAppearance appearance, TimeSpan timeout)

Parameters

snackbarService ISnackbarService

The ISnackbarService.

title string

Name displayed on top of snackbar.

message string

Message inside the snackbar.

appearance ControlAppearance

Display style.

timeout TimeSpan

The time after which the snackbar should disappear.

Show(ISnackbarService, string, string, IconElement)

Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.

public static void Show(this ISnackbarService snackbarService, string title, string message, IconElement icon)

Parameters

snackbarService ISnackbarService

The ISnackbarService.

title string

Name displayed on top of snackbar.

message string

Message inside the snackbar.

icon IconElement

Additional icon on the left.

Show(ISnackbarService, string, string, IconElement, TimeSpan)

Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.

public static void Show(this ISnackbarService snackbarService, string title, string message, IconElement icon, TimeSpan timeout)

Parameters

snackbarService ISnackbarService

The ISnackbarService.

title string

Name displayed on top of snackbar.

message string

Message inside the snackbar.

icon IconElement

Additional icon on the left.

timeout TimeSpan

The time after which the snackbar should disappear.