The Background property gets or sets the value of the C1ColorPicker control's background color. This property can be used from the System.Windows.Controls namespace to set the background color of the C1ColorPicker control, in XAML, and in code.
At Design Time
To set the Background property at run time, complete the following steps:
In XAML
For example, to set the Background property to Red add Background="Red" to the <c1: C1ColorPicker> tag so that it appears similar to the following:
XAML |
Copy Code
|
---|---|
<c1:C1ColorPicker Name="C1ColorPicker1" Background="Red" Margin="296,98,273,0" Height="45" VerticalAlignment="Top"/> |
In Code
For example, to set the Background property to Red, add the following code to your project:
Run the application and observe:
The background of the C1ColorPicker control will appear red: