Default font size of WPF Run object?

274 Views Asked by At

Why default font size of WPF Run object is 12 (on my machine). How can I change it? How can I set to "same as parent"?

Run r0 = new Run("hi");
// now r0.fontsize is 12
1

There are 1 best solutions below

2
On BEST ANSWER

ro.FontSize=(ro.Parent as Textblock).FontSize;