2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
In the ColorPickerUIAdv, you can get the color group for the selected item by using the Picked event handler. The property, ActiveGroup helps to get the color group of the selected item in the ColorPickerUIAdv.
The following code example demonstrates the same. C# //The event is raised when the ColorItem is picked. this.colorPickerUIAdv1.Picked += new Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.ColorPickedEventHandler(colorPickerUIAdv1_Picked); void colorPickerUIAdv1_Picked(object sender, Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.ColorPickedEventArgs args) { // Gets the color group of the selected item. MessageBoxAdv.Show(this.colorPickerUIAdv1.ActiveGroup.Name, "Selected ColorGroup"); } VB 'The event is raised when the ColorItem is picked. AddHandler colorPickerUIAdv1.Picked, AddressOf colorPickerUIAdv1_Picked Private Sub colorPickerUIAdv1_Picked(ByVal sender As Object, ByVal args As Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.ColorPickedEventArgs) ' Gets the color group of the selected item MessageBoxAdv.Show(Me.colorPickerUIAdv1.ActiveGroup.Name, "Selected ColorGroup") End Sub
Figure 1: ColorItem selected on the Theme Colors
Figure 2: ColorItem selected on the Standard Colors
Figure 3: ColorItem selected on the Recent Colors Sample Links: |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.