2010-03-05 18 views

回答

13

我認爲你必須在結合使用的RelativeSource ...

<Button Background="Red" Command="{Binding ChangeColorCommand}" 
     CommandParameter="{Binding 
      RelativeSource={RelativeSource Self}, 
      Path=Background}"/> 
+0

感謝,正是想要的結果! – 2010-03-05 12:52:22

相關問題