我知道在XAML中我们可以做到......
<TextBlock FontSize="18"> This is my text <LineBreak/> <Run FontSize="24" FontWeight="Bold">My big bold text</Run> </TextBlock>
问题是,如何以编程方式将Run分配给文本(字符串)属性?
c# wpf xaml
c# ×1
wpf ×1
xaml ×1