WPF theme - changing combobox background color

Sep 28, 2010 at 12:24 PM

Hi,

I am using the themes given with WPF toolkit (WhistlerBlue most times) but I need to set the background color of comboboxes by code and whatever I do, the color does not change.

What property should I set to change the BackGround Color ?

        <ComboBox Name="cbFindings" Grid.Column="3" Grid.Row="2" FontSize="14"
                  Margin="10" HorizontalAlignment="Stretch" SelectedValuePath="MOBFND_CODE"
                  TabIndex="3" SnapsToDevicePixels="False" Background="LightYellow">
             <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding MOBFND_DESC}" FontSize="14" ></TextBlock>
                </DataTemplate>
            </ComboBox.ItemTemplate>
       </ComboBox>

The code copied here have no effect on the UI.

Best regards.