Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
ComboBoxColumn style
posted

I'm really happy that the new comboboxcolumn was added to the latest release, but I can't seem to style it correctly. We're using a theme to apply styles to our different controls but I'm not sure how to get the style set for our ComboBoxColumn. Does anyone know of any examples out there where the combobox for a comboboxcolumn is getting styled in a theme?

Parents
  • 6759
    Suggested Answer
    Offline posted

    Hi,

    what do you mean by

    bhoaglund said:
    a comboboxcolumn is getting styled in a theme
    ?

    You can style the ComboBoxes in ComboBoxColumn by provideing a style to EditorStyle property of the column.

    You could use a style like this:

    <Style x:Key="cbStyle1"
            TargetType="ComboBox">
        <Setter Property="Background">
            <Setter.Value>
                <SolidColorBrush Color="Green" />
            </Setter.Value>
        </Setter>
    </Style>
    

     

    HTH,

Reply Children