public static string GetRichContentXaml(this TextRange range) { return(range.GetRichContent(DataFormats.Xaml)); }