2012-12-19 195 views
0

我正在做一個wpf項目,並在我的應用程序中,我有一個combobox.Can我知道任何簡單的方法來更改dropDown箭頭顏色?我在這裏找到了resource,但它太複雜了。任何人都可以幫助我?WPF組合框箭頭按鈕

P/S:我是個新手

組合框例如:

enter image description here

回答

0

由於箭頭只是鏈接到系統資源,我相信也沒有辦法去改變它比其他重做整個模板,就像您在鏈接文章中看到的一樣。它看起來很複雜,但並沒有那麼糟糕,特別是如果你有Blend(只是因爲Blend可以很容易地取出當前模板來編輯它)。

0
<Setter Property="Template"> 
    <Setter.Value> 
     <ControlTemplate TargetType="ComboBox"> 
      <Path x:Name="Arrow" Fill="White"/> 
     </ControlTemplate> 
    </Setter.Value> 
</Setter>