# Step 4 of 4: Adjust the Chart's Appearance

## Content



In this last step, you will adjust the chart's appearance using the **Theme** property.

**To set the chart’s theme in Visual Studio using XAML**:

To specifically define the **Office2007Blue** theme in your chart, add the following **Theme** markup to the <c1chart:C1Chart> tag so that it appears similar to the following:

```xml
<c1chart:C1Chart Margin="0,0,8,8" MinHeight="160" MinWidth="240" Content="C1Chart" ChartType="Bar" Theme="Office2007Blue">
```

**To set the chart's theme in Visual Studio in code**:

### In WPF

```vbnet
C1Chart1.Theme = TryCast(C1Chart1.TryFindResource(New ComponentResourceKey(GetType(C1Chart), "Office2007Blue")), ResourceDictionary)
```

```csharp
C1Chart1.Theme = c1Chart1.TryFindResource( new ComponentResourceKey(typeof(C1.WPF.C1Chart.C1Chart),   "Office2007Blue")) as ResourceDictionary;
```

### In Silverlight

```vbnet
c1Chart1.Theme = ChartTheme.
```

```csharp
c1Chart1.Theme = ChartTheme.Office2007Blue;
```

**![](https://cdn.mescius.io/document-site-files/images/9e1b6c55-78c5-4648-896a-23e777db9f27/images/graphics/10.png)What You've Accomplished**:<br />

The **Office 2007 Blue** theme is applied to the **C1Chart** control.

Congratulations! You've completed the **Chart for WPF** quick start and created a chart application, added data to the chart, set the axes bounds, formatted the axes annotation, and customized the appearance of the chart.

## See Also

[Key Hints for Chart WPF](/componentone/docs/wpf/online-chart/overview/getting-started/Key)