سؤال

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