Events Overview

This topic covers the specific events exposed by the RadColorEditor control.

  • SelectedColorChanging - raised while the SelectedColor property is changing its value. The SelectedColorChanging event handler receives two arguments:

    • The sender argument contains the RadColorEditor. This argument is of type object, but can be cast to the RadColorEditor type.
    • A ColorChangeEventArgs object. You can use it to find the color that is getting selected through the Color property. Or you can use it to handle the event by setting the Handled property to True thus canceling the selection.
  • SelectedColorChanged - occurs when the selected color is changed. The SelectedColorChanged event handler receives two arguments:

    • The sender argument contains the RadColorEditor. This argument is of type object, but can be cast to the RadColorEditor type.
    • A ColorChangeEventArgs object. You can use it to find the selected color through the Color property.
  • PreviousColorChanged - occurs after the PreviousColor property has changed its value. The PreviousColorChanged event handler receives two arguments:

    • The sender argument contains the RadColorEditor. This argument is of type object, but can be cast to the RadColorEditor type.
    • A ColorChangeEventArgs object.
  • HistoryChanged - occurs after a color has been added or removed from the ColorHistory collection. The HistoryChanged event handler receives two arguments:

    • The sender argument contains the RadColorEditor. This argument is of type object, but can be cast to the RadColorEditor type.
    • A HistoryChangedEventArgs object. You can use it to access the selected colors added to the ColorHistory collection through the AddedItems collection. The HistoryChangedEventArgs object also exposes a collection of the colors removed from the ColorHistory - RemovedItems.

See Also

In this article