时间:2010-07-16 10:20:17

标签: c# xaml formatting

在我的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>

1 个答案:

答案 0 :(得分:2)