Class LinearGradientEditor
Represents a control to pick a Microsoft.UI.Xaml.Media.LinearGradientBrush using Microsoft.UI.Xaml.Controls.Primitives.ColorSpectrum and GradientStopsEditor.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class LinearGradientEditor : Control, IDisposable
Constructors
LinearGradientEditor()
Initializes a new instance of the LinearGradientEditor class.
Declaration
public LinearGradientEditor()
Fields
ActiveStopProperty
Identifies ActiveStop dependency property.
Declaration
public static readonly DependencyProperty ActiveStopProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
AlphaInputOptionsProperty
Identifies AlphaInputOptions dependency property.
Declaration
public static readonly DependencyProperty AlphaInputOptionsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
AxisInputOptionProperty
Identifies AxisInputOption dependency property.
Declaration
public static readonly DependencyProperty AxisInputOptionProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
BrushTypeOptionsProperty
Identifies BrushTypeOptions dependency property.
Declaration
public static readonly DependencyProperty BrushTypeOptionsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ColorChannelInputOptionsProperty
Identifies ColorChannelInputOptions dependency property.
Declaration
public static readonly DependencyProperty ColorChannelInputOptionsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ColorChannelOptionsProperty
Identifies ColorChannelOptions dependency property.
Declaration
public static readonly DependencyProperty ColorChannelOptionsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ColorEditorsVisibilityModeProperty
Identifies ColorEditorsVisibilityMode dependency property.
Declaration
public static readonly DependencyProperty ColorEditorsVisibilityModeProperty
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
ActiveStop
Gets the selected stop to which color can be picked using SolidColorSpectrumEditor.
Declaration
public ColorInfo ActiveStop { get; }
Property Value
Type |
---|
ColorInfo |
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. |
AxisInputOption
Gets or sets a value that indicates whether the alpha channel can be edited using TextInput, Slider or both.
Declaration
public AxisInputOption AxisInputOption { get; set; }
Property Value
Type | Description |
---|---|
AxisInputOption | A value of enumeration. The default value is All. |
ColorChannelInputOptions
Gets or sets a value that indicates the type of editor (TextInput, Slider or both) to edit the color value.
Declaration
public ColorInputOptions ColorChannelInputOptions { get; set; }
Property Value
Type | Description |
---|---|
ColorInputOptions | A value of enumeration. The default value in All. |
Remarks
When TextInput is set, value can be edited using a text editor. When Slider is set, value can be edited using a slider. When All is set, value can be edited using a slider and text editor.
ColorInfo
Gets or sets a wrapper class for Microsoft.UI.Xaml.Media.LinearGradientBrush used for color composition.
Declaration
public LinearGradientInfo ColorInfo { get; set; }
Property Value
Type |
---|
LinearGradientInfo |
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
Dispose()
Release the unmanaged resources of LinearGradientEditor.
Declaration
public void Dispose()
Dispose(Boolean)
Release the unmanaged resources of LinearGradientEditor.
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()