Class SolidColorSpectrumEditor
Represents a control to pick a Microsoft.UI.Xaml.Media.SolidColorBrush using Microsoft.UI.Xaml.Controls.Primitives.ColorSpectrum.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class SolidColorSpectrumEditor : Control, IDisposable
Constructors
SolidColorSpectrumEditor()
Initializes a new instance of the SolidColorSpectrumEditor class.
Declaration
public SolidColorSpectrumEditor()
Fields
AlphaInputOptionsProperty
Identifies AlphaInputOptions dependency property.
Declaration
public static readonly DependencyProperty AlphaInputOptionsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ColorInfoProperty
Identifies ColorInfo dependency property.
Declaration
public static readonly DependencyProperty ColorInfoProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ColorSpectrumComponentsProperty
Identifies ColorSpectrumComponents dependency property.
Declaration
public static readonly DependencyProperty ColorSpectrumComponentsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ColorSpectrumShapeProperty
Identifies ColorSpectrumShape dependency property.
Declaration
public static readonly DependencyProperty ColorSpectrumShapeProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
AlphaInputOptions
Gets or sets a value that indicates whether the alpha channel can be edited using TextInput, Slider or both.
Declaration
public ColorInputOptions AlphaInputOptions { get; set; }
Property Value
Type | Description |
---|---|
ColorInputOptions | A value of enumeration. The default value is All. |
ColorInfo
Gets or sets a wrapper class for Microsoft.UI.Xaml.Media.SolidColorBrush used for color composition.
Declaration
public SolidColorInfo ColorInfo { get; set; }
Property Value
Type |
---|
SolidColorInfo |
ColorSpectrumComponents
Gets or sets a value that indicates how the Hue-Saturation-Value (HSV) color components are mapped onto the ColorSpectrum.
Declaration
public ColorSpectrumComponents ColorSpectrumComponents { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Controls.ColorSpectrumComponents | A value of the enumeration. The default is SaturationValue. |
ColorSpectrumShape
Gets or sets a value that indicates whether the ColorSpectrum is shown as a square or a circle.
Declaration
public ColorSpectrumShape ColorSpectrumShape { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Controls.ColorSpectrumShape | A value of the enumeration. The default is Box, which shows the spectrum as a square. |
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | finalSize |
Returns
Type |
---|
Windows.Foundation.Size |
Dispose()
Release the unmanaged resources of SolidColorSpectrumEditor.
Declaration
public void Dispose()
Dispose(Boolean)
Release the unmanaged resources of SolidColorSpectrumEditor.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Used to indicate perform dispose or not. |
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()