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:
TextBlock
<TextBlock> <TextBlock.Inlines> <Run FontWeight="Bold" FontSize="14" Text="Big and bold text " /> <Run FontSize="10" Foreground="Red" Text="next to small red text. " /> </TextBlock.Inlines> </TextBlock>
但是,TextBox不支持内联,仅支持单个文本值,因此在TextBox.
TextBox