【发布时间】:2013-05-29 11:24:37
【问题描述】:
如何在 xaml 中获取样式设置器属性的值?
例如,我有下一个样式:
<Style TargetType="TextBox">
<Setter Property="Background" Value="YellowGreen" />
</Style>
如何从 TextBox 默认样式中获取 Background 属性的值?
<Style TargetType="Button">
<Setter Property="Background" Value="{Binding ???}" />
</Style>
我需要这个,因为我无法访问TextBox 样式..
【问题讨论】:
标签: wpf