public static void ShowOperationFinishedNotification(this GlobalNotificationManager manager) { manager.Show(new SimpleNotification { TimeSpan = TimeSpan.FromSeconds(3), Text = "Operation Finished!", Glyph = "\uE001", VerticalAlignment = VerticalAlignment.Bottom, }); }
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) }); }
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() }); }
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() }); }); }
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()) }); }
public static void ShowOnUIThread(this GlobalNotificationManager manager, NotificationDelegate d) { Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { manager.Show(d.Invoke()); }); }