wpf 修改combobox控件鼠标经过时背景颜色

请教各位如何修改combobox控件mouseover时的样式,搜遍了百度也无果

第1个回答  2015-11-09
        <ComboBox Width="100" HorizontalAlignment="Center" VerticalAlignment="Center">
            <ComboBox.Style>
                <Style>
                    <Style.Triggers>
                        <Trigger Property="Border.IsMouseOver" Value="True">
                            <Setter Property="Border.Background" Value="Green" />
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </ComboBox.Style>
        </ComboBox>

本回答被网友采纳
相似回答