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
snackbarServiceISnackbarServiceThe ISnackbarService.
titlestringName displayed on top of snackbar.
messagestringMessage 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
snackbarServiceISnackbarServiceThe ISnackbarService.
titlestringName displayed on top of snackbar.
messagestringMessage inside the snackbar.
timeoutTimeSpanThe 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
snackbarServiceISnackbarServiceThe ISnackbarService.
titlestringName displayed on top of snackbar.
messagestringMessage inside the snackbar.
appearanceControlAppearanceDisplay 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
snackbarServiceISnackbarServiceThe ISnackbarService.
titlestringName displayed on top of snackbar.
messagestringMessage inside the snackbar.
appearanceControlAppearanceDisplay style.
timeoutTimeSpanThe 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
snackbarServiceISnackbarServiceThe ISnackbarService.
titlestringName displayed on top of snackbar.
messagestringMessage inside the snackbar.
iconIconElementAdditional 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
snackbarServiceISnackbarServiceThe ISnackbarService.
titlestringName displayed on top of snackbar.
messagestringMessage inside the snackbar.
iconIconElementAdditional icon on the left.
timeoutTimeSpanThe time after which the snackbar should disappear.