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

Provides methods and properties for using the GradientFillControl.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class GradientFillControl : ControlBase

Inheritance: objectControlBaseGradientFillControl

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

Constructors

Initializes a new instance of the GradientFillControl class.

C#
public GradientFillControl()

Initializes a new instance of the GradientFillControl class.

C#
public GradientFillControl(GradientFill gradientFill, ThemeColorScheme colorScheme, double width, double height)
Parameters:gradientFillGradientFill

The gradient fill.

colorSchemeThemeColorScheme

The color scheme.

widthdouble

The width.

heightdouble

The height.

Initializes a new instance of the GradientFillControl class.

C#
public GradientFillControl(GradientFill gradientFill, ThemeColorScheme colorScheme)
Parameters:gradientFillGradientFill

The gradient fill as GradientFill value.

colorSchemeThemeColorScheme

The color scheme as ThemeColorScheme value.

Fields

Color1Property

DependencyProperty

The Dependency property Color1Property, specifying the first color of the Gradient.

C#
public static readonly DependencyProperty Color1Property

Color2Property

DependencyProperty

The Dependency property Color2Property, specifying the second color of the Gradient.

C#
public static readonly DependencyProperty Color2Property

ColorSchemeProperty

DependencyProperty

The Dependency property ColorSchemeProperty.

C#
public static readonly DependencyProperty ColorSchemeProperty

GradientTypeProperty

DependencyProperty

The Dependency property GradientTypeProperty.

C#
public static readonly DependencyProperty GradientTypeProperty

Properties

Color1

ThemableColor

Gets or sets the first color of the Gradient.

C#
public ThemableColor Color1 { get; set; }
Property Value:

The first color of the Gradient.

Color2

ThemableColor

Gets or sets the second color of the Gradient.

C#
public ThemableColor Color2 { get; set; }
Property Value:

The second color of the Gradient.

ColorScheme

ThemeColorScheme

Gets or sets the color scheme.

C#
public ThemeColorScheme ColorScheme { get; set; }
Property Value:

The color scheme.

GradientType

GradientType

Gets or sets the type of the gradient.

C#
public GradientType GradientType { get; set; }
Property Value:

The type of the gradient.

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.