public StylesGroupViewModel(FlowDocument flowDocument, DocumentState documentState)
     : base(new FormattingProvider(flowDocument), documentState)
 {
     _flowDocument = flowDocument;
     _textStyles = new ObservableCollection<StylePickerItemViewModel>(_textStyleProvider.LoadTextStyles().Select(s => new StylePickerItemViewModel(s)));
     Application.Current.MainWindow.Closing += MainWindowOnClosing;
 }
Beispiel #2
0
 public PartViewModel(FormattingProvider formattingProvider, DocumentState documentState)
 {
     _formattingProvider = formattingProvider;
     _documentState = documentState;
 }
Beispiel #3
0
 public PartViewModel(FormattingProvider formattingProvider, DocumentState documentState)
 {
     _formattingProvider = formattingProvider;
     _documentState      = documentState;
 }
Beispiel #4
0
 public ElementsRibbonGroupViewModel(FlowDocument flowDocument, DocumentState documentState)
     : base(new FormattingProvider(flowDocument), documentState)
 {
 }
 public FormattingRibbonGroupViewModel(FlowDocument flowDocument, DocumentState documentState)
     : base(new FormattingProvider(flowDocument), documentState)
 {
 }