Exemplo n.º 1
0
 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
         }
     });
 }
Exemplo n.º 2
0
 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
                       );
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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()
     });
 }
Exemplo n.º 5
0
        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);
        }