110,534
社区成员
发帖
与我相关
我的任务
分享
TextBlock txt=new TextBlock();
txt.FontSize=32;
txt.Inlines.Add(“This is some ”);
txt.Inlines.Add(new Italic(new Run(“italic”)));
txt.Inlines.Add(“ text, and this is some ”);
txt.Inlines.Add(new Bold(new Run(“bold”)));
txt.Inlines.Add(“ text, and let’s cap it off with some ”);
txt.Inlines.Add(new Bold(new Italic(new Run(“bold italic”))));
txt.Inlines.Add(“ text.”);
txt.TextWrapping=TextWrapping.Wrap;
Content=txt;