Example #1
0
 private void OnNewMessageArrived(object sender, MessageHeaderViewModel newMessageHeaderViewModel)
 {
     Dispatcher.Invoke(() => {
         var balloon    = new NewMessageBalloon(newMessageHeaderViewModel);
         TaskbarIcon tb = Application.Current.Resources["TbIcon"] as TaskbarIcon;
         if (tb != null)
         {
             tb.ShowCustomBalloon(balloon, PopupAnimation.Fade, 10000);
         }
     });
 }
 private void OnNewMessageArrived(object sender, MessageHeaderViewModel newMessageHeaderViewModel)
 {
     Dispatcher.Invoke(() => {
         var balloon = new NewMessageBalloon(newMessageHeaderViewModel);
         TaskbarIcon tb = Application.Current.Resources["TbIcon"] as TaskbarIcon;
         if (tb != null)
         {
             tb.ShowCustomBalloon(balloon, PopupAnimation.Fade, 10000);
         }
     });
 }