ClassGradientFillControl
Provides methods and properties for using the GradientFillControl.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Controls
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class GradientFillControl : ControlBase
Inheritance: objectControlBaseGradientFillControl
Inherited Members
Constructors
GradientFillControl()
Initializes a new instance of the GradientFillControl class.
Declaration
public GradientFillControl()
GradientFillControl(GradientFill, ThemeColorScheme)
Initializes a new instance of the GradientFillControl class.
Declaration
public GradientFillControl(GradientFill gradientFill, ThemeColorScheme colorScheme)
Parameters
gradientFill
GradientFill
The gradient fill as GradientFill value.
colorScheme
ThemeColorScheme
The color scheme as ThemeColorScheme value.
GradientFillControl(GradientFill, ThemeColorScheme, double, double)
Initializes a new instance of the GradientFillControl class.
Fields
Color1Property
The Dependency property Color1Property, specifying the first color of the Gradient.
Declaration
public static readonly DependencyProperty Color1Property
Field Value
DependencyProperty
Color2Property
The Dependency property Color2Property, specifying the second color of the Gradient.
Declaration
public static readonly DependencyProperty Color2Property
Field Value
DependencyProperty
ColorSchemeProperty
The Dependency property ColorSchemeProperty.
Declaration
public static readonly DependencyProperty ColorSchemeProperty
Field Value
DependencyProperty
GradientTypeProperty
The Dependency property GradientTypeProperty.
Declaration
public static readonly DependencyProperty GradientTypeProperty
Field Value
DependencyProperty
Properties
Color1
Gets or sets the first color of the Gradient.
Declaration
public ThemableColor Color1 { get; set; }
Property Value
ThemableColor
The first color of the Gradient.
Color2
Gets or sets the second color of the Gradient.
Declaration
public ThemableColor Color2 { get; set; }
Property Value
ThemableColor
The second color of the Gradient.
ColorScheme
Gets or sets the color scheme.
Declaration
public ThemeColorScheme ColorScheme { get; set; }
Property Value
ThemeColorScheme
The color scheme.
GradientType
Gets or sets the type of the gradient.
Declaration
public GradientType GradientType { get; set; }
Property Value
GradientType
The type of the gradient.
Methods
MeasureOverride(Size)
Called to re-measure a control.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
The maximum available size of the control.
Returns
Size
The size of the control, up to the maximum specified by availableSize.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.