【发布时间】:2017-06-24 14:07:44
【问题描述】:
<StackPanel TextElement.FontSize="70" TextBlock.FontSize="30" Orientation="Horizontal" HorizontalAlignment="Center">
<Button MinWidth="75" Margin="10" Content="Help"/>
<Button MinWidth="75" Margin="10" Content="OK" Click="Button_Click"/>
</StackPanel>
我在 Stack-Panel 中定义了两个 FontSize,以便使用 PropertyValueInheritance Button 可以获得其 FontSize 的值。但是在运行时应用了哪个 FontSize,为什么?
【问题讨论】:
标签: wpf dependency-properties attached-properties