예제 #1
0
        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);
        }
예제 #2
0
 public static void Show(string message, string title, int delay, Position position,
     IToastAction action)
 {
     new ToastMessage(message, title, delay, position, action).Show();
 }