C1MediaPlayer Layout and Appearance > ComponentOne ClearStyle Technology > C1MediaPlayer ClearStyle Properties |
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 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:
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”.
It’s that simple with ComponentOne’s ClearStyle technology. For more information on ClearStyle, see the ComponentOne ClearStyle Technology topic.