0

How to change font in all FlowDocumentReader controls in WPF?

For some selection i do

FontFamily f = new FontFamily("Verdana");
flowDR.Selection.ApplyPropertyValue(TextElement.FontFamilyProperty, f);

But how can I change the font for the whole document?

Andrey Vaganov
  • 1,684
  • 1
  • 12
  • 18

1 Answers1

0

I am ashamed...)

FontFamily f = new FontFamily("Calibri_click");
myFlow.FontFamily = f;

Where is myFlow = FlowDocument

Andrey Vaganov
  • 1,684
  • 1
  • 12
  • 18