2011-12-22 101 views

回答

0

如果你看看標準ComboBox control templates,你會看到一個System.Windows.Shapes.Path用於創建箭頭。見下面的ComboBoxToggleButton的部分捕集......

<Path 
    x:Name="Arrow" 
    Grid.Column="1"  
    Fill="{StaticResource GlyphBrush}" 
    HorizontalAlignment="Center" 
    VerticalAlignment="Center" 
    Data="M 0 0 L 4 4 L 8 0 Z"/> 

你將不得不改變Data attribute改變吸引到創建控件模板的箭頭幾何路徑。

+0

切換按鈕是否代表下拉箭頭? – Relativity 2011-12-22 23:53:28

+0

是的WPF組合框本身完全是一個togglebutton **模板**,只顯示它的箭頭部分作爲實際的按鈕。 – 2011-12-23 10:00:19