Hello Ching-Yen,
Thank you for writing.
Currently, the RadColorDialog cannot be styled as a unit, and no themes are available for it. However, you might be able to achieve the desired appearance by setting properties of its elements yourself.
The
RadColorSelector encapsulates the color selection logic. It is typically hosted by the
RadColorDialogForm. However, you can customize the appearance and behavior of the component by initializing an instance manually, setting its appearance properties, and adding it to your own form to show it to the user. This approach is illustrated below, where the customization is the setting of the back color of the color selector to red.
Please refer to the codeblock below:
| 1 |
Form colorDialogForm = new Form(); |
| 2 |
RadColorSelector cs = new RadColorSelector(); |
| 3 |
cs.BorderStyle = BorderStyle.Fixed3D; |
| 4 |
cs.BackColor = Color.Red; |
| 5 |
colorDialogForm.Controls.Add(cs); |
| 6 |
colorDialogForm.Size = cs.Size; |
| 7 |
cs.Dock = DockStyle.Fill; |
| 8 |
DialogResult dr = colorDialogForm.ShowDialog(); |
In this fashion, you can set backcolors (and themes) to elements in the
RadColorSelector, such as the buttons, or the tabstrip controlling the color selection mode. In the future, the
RadColorSelector will be available in the toolbox, and you'll be able to modify it at design-time.
I hope this helps. If you have any additional questions, please let me know.
Best wishes,
Kiril
the Telerik team