private void ShowNotification(string content, Color?backgroundColor = null, TimeSpan?visibilityTime = null) { manager.Show(new SimpleNotification { TimeSpan = visibilityTime, Text = content, Background = new SolidColorBrush { Color = backgroundColor ?? Colors.Gray } }); }
public void RecieveLocalNotificationMessage(LocalNotificationMessageType notif) { notifManager.Show(new SimpleNotification { TimeSpan = TimeSpan.FromSeconds(3), Text = notif.Message, Glyph = notif.Glyph, Action = async() => await new MessageDialog(notif.Message).ShowAsync(), Background = GetSolidColorBrush("60B53BFF"), Foreground = GetSolidColorBrush("FAFBFCFF") }, LocalNotificationCollisionBehaviour.Replace ); }
public void RecieveLocalNotificationMessage(LocalNotificationMessageType notif) { notifManager.Show(new SimpleNotificationPresenter ( TimeSpan.FromSeconds(3), text: notif.Message, action: async() => await new MessageDialog(notif.Message).ShowAsync(), glyph: notif.Glyph ) { Background = GetSolidColorBrush("60B53BFF"), Foreground = GetSolidColorBrush("FAFBFCFF"), }, LocalNotificationCollisionBehaviour.Replace); }
public void ShowNotImplementedNotification() { _manager.Show(new SimpleNotification { TimeSpan = TimeSpan.FromSeconds(3), Text = "This feature is not yet implemented!", Glyph = "\uE783", VerticalAlignment = VerticalAlignment.Bottom, Background = Color.Red.ToBrush() }); }
private void LocalNotice() { string NoticeText = "Saved."; manager.Show(new SimpleNotificationPresenter ( TimeSpan.FromSeconds(2), text: NoticeText, action: async() => await new MessageDialog(NoticeText).ShowAsync(), glyph: "\uE001" ) { Background = ConverHexToColor.GetSolidColorBrush("#ffcb00"), Foreground = new SolidColorBrush(Windows.UI.Colors.White), }, (LocalNotificationCollisionBehaviour)1); }