SnackbarServiceExtensions.Show(ISnackbarService, string, string) method¶
Defined in
Type: SnackbarServiceExtensions
Namespace: CrissCross.WPF.UI.Extensions
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public static void Show(this ISnackbarService snackbarService, string title, string message) - 2.
public static void Show(this ISnackbarService snackbarService, string title, string message, ControlAppearance appearance) - 3.
public static void Show(this ISnackbarService snackbarService, string title, string message, IconElement icon) - 4.
public static void Show(this ISnackbarService snackbarService, string title, string message, TimeSpan timeout) - 5.
public static void Show(this ISnackbarService snackbarService, string title, string message, ControlAppearance appearance, TimeSpan timeout) - 6.
public static void Show(this ISnackbarService snackbarService, string title, string message, IconElement icon, TimeSpan timeout)
1. Overload¶
public static void Show(this ISnackbarService snackbarService, string title, string message)
Summary: Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.
Parameters
| Name | Type | Description |
|---|---|---|
snackbarService | [ISnackbarService](# | The [ISnackbarService](# |
title | string | Name displayed on top of snackbar. |
message | string | Message inside the snackbar. |
2. Overload¶
public static void Show(this ISnackbarService snackbarService, string title, string message, ControlAppearance appearance)
Summary: Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.
Parameters
| Name | Type | Description |
|---|---|---|
snackbarService | [ISnackbarService](# | The [ISnackbarService](# |
title | string | Name displayed on top of snackbar. |
message | string | Message inside the snackbar. |
appearance | [ControlAppearance](# | Display style. |
3. Overload¶
public static void Show(this ISnackbarService snackbarService, string title, string message, IconElement icon)
Summary: Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.
Parameters
| Name | Type | Description |
|---|---|---|
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. |
4. Overload¶
public static void Show(this ISnackbarService snackbarService, string title, string message, TimeSpan timeout)
Summary: Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.
Parameters
| Name | Type | Description |
|---|---|---|
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. |
5. Overload¶
public static void Show(this ISnackbarService snackbarService, string title, string message, ControlAppearance appearance, TimeSpan timeout)
Summary: Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.
Parameters
| Name | Type | Description |
|---|---|---|
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. |
6. Overload¶
public static void Show(this ISnackbarService snackbarService, string title, string message, IconElement icon, TimeSpan timeout)
Summary: Shows the snackbar. If it is already visible, firstly hides it for a moment, changes its content, and then shows it again.
Parameters
| Name | Type | Description |
|---|---|---|
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. |