WPF - styling comboboxes

Posted by devdigital on Stack Overflow See other posts from Stack Overflow or by devdigital
Published on 2010-03-17T11:46:52Z Indexed on 2010/03/17 11:51 UTC
Read the original article Hit count: 447

Filed under:
|
|

Hi, I'm trying to style Comboboxes in WPF so that they are white, and have the same border as TextBoxes. I have the following style so far, but don't know how to set the border:

<Style TargetType="ComboBox">
    <Setter Property="Margin" Value="0,2,0,2" />
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Background" Value="White" />
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type ComboBox}">
                 ???
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

© Stack Overflow or respective owner

Related posts about wpf

Related posts about combobox