TextRunProperties GetDefaultTextRunProperties() { return(new TextProps { background = (Brush)parent.GetValue(TextElement.BackgroundProperty), foreground = TextElement.GetForeground(parent), typeface = new Typeface( TextElement.GetFontFamily(parent), TextElement.GetFontStyle(parent), TextElement.GetFontWeight(parent), TextElement.GetFontStretch(parent) ), fontSize = TextElement.GetFontSize(parent), }); }