如何獲取xaml中樣式設置器屬性的值?從xaml中的樣式設置器屬性獲取值
例如,我有一個樣式:
<Style TargetType="TextBox">
<Setter Property="Background" Value="YellowGreen" />
</Style>
我怎樣才能得到背景屬性從文字框默認樣式的價值?
<Style TargetType="Button">
<Setter Property="Background" Value="{Binding ???}" />
</Style>
我需要這個,因爲我沒有訪問TextBox
風格 ..
它的工作原理!非常感謝! – Chepene