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
ISnackbarServiceThe ISnackbarService.
title
stringName displayed on top of snackbar.
message
stringMessage 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
ISnackbarServiceThe ISnackbarService.
title
stringName displayed on top of snackbar.
message
stringMessage inside the snackbar.
timeout
TimeSpanThe 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
ISnackbarServiceThe ISnackbarService.
title
stringName displayed on top of snackbar.
message
stringMessage inside the snackbar.
appearance
ControlAppearanceDisplay 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
ISnackbarServiceThe ISnackbarService.
title
stringName displayed on top of snackbar.
message
stringMessage inside the snackbar.
appearance
ControlAppearanceDisplay style.
timeout
TimeSpanThe 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
ISnackbarServiceThe ISnackbarService.
title
stringName displayed on top of snackbar.
message
stringMessage inside the snackbar.
icon
IconElementAdditional 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
ISnackbarServiceThe ISnackbarService.
title
stringName displayed on top of snackbar.
message
stringMessage inside the snackbar.
icon
IconElementAdditional icon on the left.
timeout
TimeSpanThe time after which the snackbar should disappear.