<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<!--這裏是用run元素來進行對於一個textblock中的文字來設置不同的格式-->
<TextBlock VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="Auto">
<Run Foreground="SeaShell" FontSize="60" FontWeight="Bold" FontStyle="Normal">
第一個run標籤
</Run>
<LineBreak/>
--------------------------------------------------------
<LineBreak/>
<Run Foreground="#cccccc" FontSize="35">
第二個run標籤
</Run>
<LineBreak/>
<Run Foreground="LightBlue">
呵呵,就是可以這樣嵌入run的標籤
</Run>
</TextBlock>
</Grid>
來設置多個格式