Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个地铁风格的应用程序。
<TextBlock x:Name="txt_box" TextWrapping="Wrap" Foreground="White" FontSize="20" FontFamily="Times New Roman"/>
在文件后面的代码中,我想添加文本行,其中第一行可以是粗体,第二行斜体等等。
txt_box.Text = "<b>Text1</b>"
这不起作用..任何想法如何做到这一点?