2011-08-31 57 views

回答

2

不使用您僅限於使用一個TextBlock內Run流元素,比如這個RichTextBox

<TextBlock> 
    <Run Foreground="Blue" Content="blue text" /> 
    <Run Foreground="Red" Background="Yellow" Content="red on yellow" /> 
    <Run FontStyle="Bold" Background="Yellow" Content="bold yellow text" /> 
</TextBlock> 
相關問題