这是在C#代码中直接粘贴带有HTML标记的TextBlock内联的任何解决方案,像这样:
string example = "Here is <Bold>bold</Bold> text, and here is <Italic>italic</Italic>.";
TextBlock.Inlines.Add(example);发布于 2012-05-04 21:26:23
您可以查看一下this项目
https://stackoverflow.com/questions/10447975
复制相似问题