Exemplo n.º 1
0
 public ToastNotificationServiceTest()
 {
     _wpfTextView = CreateTextView();
     _editorFormatMap = CompositionContainer.GetExportedValue<IEditorFormatMapService>().GetEditorFormatMap(_wpfTextView);
     _toastNotificationServiceRaw = new ToastNotificationService(_wpfTextView, _editorFormatMap);
     _toastNotificationService = _toastNotificationServiceRaw;
     _toastControl = _toastNotificationServiceRaw.ToastControl;
 }
Exemplo n.º 2
0
 internal ToastNotificationService(IWpfTextView wpfTextView, IEditorFormatMap editorFormatMap)
 {
     _wpfTextView = wpfTextView;
     _editorFormatMap = editorFormatMap;
     _toastControl = new ToastControl();
     _toastControl.Visibility = Visibility.Collapsed;
     _toastControl.ToastNotificationCollection.CollectionChanged += OnToastControlItemsChanged;
     _editorFormatMap.FormatMappingChanged += OnEditorFormatMappingChanged;
     _wpfTextView.Closed += OnTextViewClosed;
     UpdateTheme();
 }
Exemplo n.º 3
0
 internal ToastNotificationService(IWpfTextView wpfTextView, IEditorFormatMap editorFormatMap)
 {
     _wpfTextView             = wpfTextView;
     _editorFormatMap         = editorFormatMap;
     _toastControl            = new ToastControl();
     _toastControl.Visibility = Visibility.Collapsed;
     _toastControl.ToastNotificationCollection.CollectionChanged += OnToastControlItemsChanged;
     _editorFormatMap.FormatMappingChanged += OnEditorFormatMappingChanged;
     _wpfTextView.Closed += OnTextViewClosed;
     UpdateTheme();
 }