Metro App Style:如何更改ComboBox下拉箭头的颜色/删除/隐藏?

时间:2012-10-12 17:57:58

标签: xaml colors combobox windows-8 microsoft-metro

我有这个简单的ComboBox:

<StackPanel>
    <ComboBox Width="200" Background="Transparent" 
    Foreground="White" BorderBrush="Transparent" 
    UseLayoutRounding="True" SelectedIndex="0">
        <x:String>item 1</x:String>
        <x:String>item 2</x:String>
        <x:String>item 3</x:String>
    </ComboBox>    
</StackPanel>

我想改变下拉箭头的颜色,有什么方法可以改变它吗? 或者至少删除/隐藏它。

1 个答案:

答案 0 :(得分:2)

发布作为未来参考的答案:

您可以通过打开在Blend中定义的xaml文件,右键单击组合框,然后选择编辑模板 - &gt;来编辑组合框样式。编辑副本。从出现的屏幕中,您可以找到要更改的相应值