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;
 }
Exemple #2
0
 public PartViewModel(FormattingProvider formattingProvider, DocumentState documentState)
 {
     _formattingProvider = formattingProvider;
     _documentState = documentState;
 }
Exemple #3
0
 public PartViewModel(FormattingProvider formattingProvider, DocumentState documentState)
 {
     _formattingProvider = formattingProvider;
     _documentState      = documentState;
 }
Exemple #4
0
 public ElementsRibbonGroupViewModel(FlowDocument flowDocument, DocumentState documentState)
     : base(new FormattingProvider(flowDocument), documentState)
 {
 }
 public FormattingRibbonGroupViewModel(FlowDocument flowDocument, DocumentState documentState)
     : base(new FormattingProvider(flowDocument), documentState)
 {
 }