New to Telerik UI for WPFStart a free 30-day trial

Provides methods and properties for using RadHexagonColorPicker.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class RadHexagonColorPicker : ControlBase

Inheritance: objectControlBaseRadHexagonColorPicker

Inherited Members ControlBase.GetTemplateChild<T>(string)ControlBase.GetRequiredTemplateChild<T>(string, bool)

Constructors

Initializes a new instance of the RadHexagonColorPicker class.

C#
public RadHexagonColorPicker()

Fields

Occurs when the selected color is changed.

C#
public static readonly RoutedEvent SelectedColorChangedEvent

SelectedColorProperty

DependencyProperty

The Dependency property SelectedColorProperty.

C#
public static readonly DependencyProperty SelectedColorProperty

Properties

Gets or sets the selected color.

C#
public Color SelectedColor { get; set; }
Property Value:

The selected color as Color.

Gets or sets a value indicating whether smooth color transition is used.

C#
public bool UseSmoothColorTransition { get; set; }
Property Value:

The use of smooth color transition.

Methods

Called to re-measure a control.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

The maximum available size of the control.

Returns:

Size

The size of the control, up to the maximum specified by availableSize.

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Raises the event.

C#
protected virtual void OnSelectedColorChanged(ColorChangeEventArgs args)
Parameters:argsColorChangeEventArgs

The ColorChangeEventArgs instance containing the event data.

Events

Occurs when the selected color is changed.

C#
public event EventHandler<ColorChangeEventArgs> SelectedColorChanged