Question: How do I change the border color of a WPF combo box, I've tried everything but it remains the same.

[![ComboBox with default border](https://i.stack.imgur.com/8cXDd.png)](https://i.stack.imgur.com/8cXDd.png)

My Mark up:

```
<ComboBox Canvas.Left="12" Canvas.Top="44" Height="32"Name="cmbDeviceList" Width="158" Foreground="#000000" BorderBrush="#2071B9" BorderThickness="2" FontFamily="Microsoft Sans Serif" FontSize="15" IsEditable="True" IsReadOnly="True" />

```

Answer: 
Set the property `BorderBrush` to the desired color or brush:

```
<ComboBox Margin="10" BorderBrush="Red">
  <ComboBoxItem>No Device Selected</ComboBoxItem>
</ComboBox>

```

Screenshot:

[![Screenshot of combo box with red border](https://i.stack.imgur.com/bPLWu.png)](https://i.stack.imgur.com/bPLWu.png)
The below XAML snippet is for combobox. The BorderBrush will define the color and Border Thickness will define the thickness of line

```
<ComboBox Width="200" Height="30" BorderBrush="Blue" BorderThickness="3"></ComboBox>

```