Can I remove or lock so that the user only can use RGB?
2 Answers, 1 is accepted
0
Martin Ivanov
Telerik team
answered on 11 Mar 2021, 05:50 PM
Hello Fredrik,
If you want to hide the combobox that allows you to choose between the different color modes like RGB, CMYK, HLS and HSV, you can subscribe to the Loaded event of the control and then find and hide the corresponding RadComboBox element. For example:
privatevoidRadColorEditor_Loaded(object sender, RoutedEventArgs e)
{
var editor = (RadColorEditor)sender;
var comboBox = editor.FindChildByType<RadComboBox>();
comboBox.Visibility = Visibility.Collapsed;
}
If you want to remove the alpha channel setting, you can set the AlphaSettingsVisibility property of the control.