# C1MediaPlayer ClearStyle Properties

## Content



**MediaPlayer for WPF and Silverlight** supports ComponentOne's new ClearStyle technology that allows you to easily change control colors without having to change control templates. By just setting a few color properties you can quickly style the entire grid.

The following table outlines the brush properties of the [C1MediaPlayer](/componentone/api/wpf/online-mediaplayer/dotnet-framework-api/C1.WPF.MediaPlayer.4.6.2/C1.WPF.MediaPlayer.C1MediaPlayer.html) control:

|   **Brush**   |   **Description**   |
| --- | --- |
|   Background   |   Gets or sets the brush of the control’s background.   |
|   ButtonBackground   |   Gets or sets thebrush of the buttons’ background color.   |
|   ButtonForeground   |   Gets or sets the brush of the buttons’ foreground color (for example, the symbols on the buttons).   |
|   MouseOverBrush   |   Gets or sets the System.Windows.Media.Brush used to highlight the buttons when the mouse is hovered over them.   |
|   PressedBrush   |   Gets or sets the System.Windows.Media.Brush used to highlight the buttons when they are clicked on.   |

You can completely change the appearance of the **C1MediaPlayer** control by setting a few properties, such as the **Background** property, which sets the background color of the media player. For example, if you set the **Background** property to "#FFE40005", the **C1MediaPlayer** control would appear similar to the following:

![](https://cdn.mescius.io/document-site-files/images/35d97b39-ed23-40ca-bb1b-90a2e9178ac1/graphics/narrative/clearstyle_backgroundsample.png)

If you want the buttons to appear lime green for better contrast against the red, you can also set the **ButtonForeground** and **ButtonBackground** properties. In the following example, the **ButtonForeground** property is set to “#FF5500DE” and the **ButtonBackground** property is set to “#FF00F500”.

![](https://cdn.mescius.io/document-site-files/images/35d97b39-ed23-40ca-bb1b-90a2e9178ac1/graphics/narrative/clearstyle_backgroundbuttonssample.png)

It’s that simple with ComponentOne’s ClearStyle technology. For more information on ClearStyle, see the [ComponentOne ClearStyle Technology](/componentone/docs/wpf/online-mediaplayer/C1MediaPlayer_Layout_and_Appearance/ComponentOne_ClearStyle_Technology) topic.