Example #1
0
        public static void Notify(string title, string message, int autoClose, string icon = null, Action action = null)
        {
            if (_notificationFlyout == null)
            {
                _notificationFlyout = CreateDialogFlyout();
            }
            var view = new DialogView(_notificationFlyout, title, message, autoClose);

            if (!string.IsNullOrEmpty(icon))
            {
                view.SetUtilityButton(action, icon);
            }
            _notificationFlyout.Content = view;
            _notificationFlyout.IsOpen  = true;
        }