Exemple #1
0
 /// <summary>
 /// Occurs when the value of the IsNotificationVisible property is changed.
 /// </summary>
 /// <param name="e">
 /// The event argument
 /// </param>
 private void OnIsNotificationVisibleChanged(AdvancedPropertyChangedEventArgs e)
 {
     if ((bool)e.NewValue)
     {
         if (_notificationBarViewModel == null)
         {
             var typeFactory = TypeFactory.Default;
             _notificationBarViewModel = typeFactory.CreateInstance <NotificationBarViewModel>();
             _uiVisualizerService.Activate(_notificationBarViewModel, "NotificationRegion");
         }
         else
         {
             _uiVisualizerService.Activate(_notificationBarViewModel);
         }
     }
     else
     {
         _uiVisualizerService.Deactivate(_notificationBarViewModel);
     }
 }