在我的file.xaml中,如何设置TextBlock默认大小,以便我不必在TextBlock元素中包含该属性?
<UserControl.Resources>
<!-- how?/can i set the default font size for textblock element here? -->
</UserControl.Resources>
<Grid>
<StackPanel>
<TextBlock Text="{Binding HelloWorld}" />
</StackPanel>
</Grid>
答案 0 :(得分:2)