예제 #1
0
 public static void ShowOperationFinishedNotification(this GlobalNotificationManager manager)
 {
     manager.Show(new SimpleNotification
     {
         TimeSpan          = TimeSpan.FromSeconds(3),
         Text              = "Operation Finished!",
         Glyph             = "\uE001",
         VerticalAlignment = VerticalAlignment.Bottom,
     });
 }
예제 #2
0
        public static void ShowLinkClickedNotification(this GlobalNotificationManager manager, string link)
        {
            Logger.Debug("Show link clicked notification");

            manager.Show(new SimpleNotification
            {
                Text = $"Link \"{link}\" clicked.",
                VerticalAlignment = VerticalAlignment.Bottom,
                TimeSpan          = TimeSpan.FromSeconds(3)
            });
        }
예제 #3
0
 public static void ShowNotImplementedNotification(this GlobalNotificationManager manager)
 {
     manager.Show(new SimpleNotification
     {
         TimeSpan          = TimeSpan.FromSeconds(3),
         Text              = "This feature is not yet implemented!",
         Glyph             = "\uE783",
         VerticalAlignment = VerticalAlignment.Bottom,
         Background        = Color.Red.ToBrush()
     });
 }
예제 #4
0
 public static void ShowPageExistsNotificationOnUIThread(this GlobalNotificationManager manager)
 {
     Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
                                                                                           () =>
     {
         manager.Show(new SimpleNotification
         {
             Text = "Page exists already",
             VerticalAlignment = VerticalAlignment.Bottom,
             Background        = Color.Red.ToBrush()
         });
     });
 }
예제 #5
0
        public static void ShowPageLockedNotification(this GlobalNotificationManager manager)
        {
            Logger.Debug("Show Page locked notification");

            manager.Show(new SimpleNotification
            {
                TimeSpan          = TimeSpan.FromSeconds(3),
                Text              = "Page is locked!",
                Glyph             = "\uE1F6",
                VerticalAlignment = VerticalAlignment.Bottom,
                Background        = new SolidColorBrush(Color.Red.ToWindowsUiColor())
            });
        }
예제 #6
0
 public static void ShowOnUIThread(this GlobalNotificationManager manager, NotificationDelegate d)
 {
     Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
                                                                                           () => { manager.Show(d.Invoke()); });
 }