문제

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