Class Toastr
Inherited Members
Namespace: EasySave_Project.Views.Components
Assembly: .dll
Syntax
public class Toastr
Methods
| Edit this page View SourceShowNotification(string, StackPanel, string)
Displays a notification message in the specified container with different styles based on the type (Success, Warning, Info, Error).
Declaration
public static void ShowNotification(string message, StackPanel notificationContainer = null, string type = "Error")
Parameters
Type | Name | Description |
---|---|---|
string | message | The notification message to display. |
StackPanel | notificationContainer | The container where the notification will be displayed. |
string | type | The type of notification (Success, Warning, Info, Error). |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when notificationContainer is null. |
ShowServeurNotification(string, StackPanel)
Displays a notification message in the specified container with a predefined style. Use for server notification
Declaration
public static void ShowServeurNotification(string message, StackPanel notificationContainer = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The notification message to display. |
StackPanel | notificationContainer | The container where the notification will be displayed. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when notificationContainer is null. |