質問

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?

役に立ちましたか?

解決

I am ashamed...)

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

Where is myFlow = FlowDocument

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top