Show / Hide Table of Contents

Class Toastr

Inheritance
object
Toastr
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: EasySave_Project.Views.Components
Assembly: .dll
Syntax
public class Toastr

Methods

| Edit this page View Source

ShowNotification(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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX