public ToastMessage(string message, string title, int delay, Position position, IToastAction action) { InitializeComponent(); textToastMessage.Text = message; labelToastTitle.Content = title; setPosition(position); _action = action; SetupTimer(delay); }
public static void Show(string message, string title, int delay, Position position, IToastAction action) { new ToastMessage(message, title, delay, position, action).Show(); }