Is there a way to set LineHeight in a Silverlight 4 RichTextBox?
The TextBlock control ha开发者_如何学JAVAs LineHeight. Does anyone know a good way to set LineHeight in the RichTextBox Control in Silverlight 4?
Hack: This seems to cause all the lines (even when wrapped) to be the height that FontSize 26 would cause.
Run run = new Run();
run.FontSize = 26;
run.Text = "";
Par.Inlines.Add(run);
run = new Run();
run.Text = "long text here...";
run.FontSize = 12;
Par.Inlines.Add(run);
精彩评论