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

Provides methods and properties for using the PatternFillControl.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class PatternFillControl : ControlBase

Inheritance: objectControlBasePatternFillControl

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

Constructors

Initializes a new instance of the PatternFillControl class.

C#
public PatternFillControl()

Initializes a new instance of the PatternFillControl class.

C#
public PatternFillControl(PatternFill patternFill, ThemeColorScheme colorScheme)
Parameters:patternFillPatternFill

The pattern fill as PatternFill value.

colorSchemeThemeColorScheme

The color scheme as ThemeColorScheme value.

Fields

BackgroundColorProperty

DependencyProperty

The Dependency property BackgroundColorProperty.

C#
public static readonly DependencyProperty BackgroundColorProperty

ColorSchemeProperty

DependencyProperty

The Dependency property ColorSchemeProperty.

C#
public static readonly DependencyProperty ColorSchemeProperty

PatternColorProperty

DependencyProperty

The Dependency property PatternColorProperty.

C#
public static readonly DependencyProperty PatternColorProperty

PatternTypeProperty

DependencyProperty

The Dependency property PatternTypeProperty.

C#
public static readonly DependencyProperty PatternTypeProperty

Properties

BackgroundColor

ThemableColor

Gets or sets the color of the background.

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

The color of the background.

ColorScheme

ThemeColorScheme

Gets or sets the color scheme.

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

The color scheme.

PatternColor

ThemableColor

Gets or sets the color of the pattern.

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

The color of the pattern.

PatternType

PatternType

Gets or sets the type of the pattern.

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

The type of the pattern.

Methods

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

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

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns:

Size

The size that this element determines it needs during layout, based on its calculations of child element sizes.

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

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.

Sets the clipping of the pattern fill.

C#
public void SetClipping(IEnumerable<Rect> rectangles)
Parameters:rectanglesIEnumerable<Rect>

The rectangles specifying the clipping.

Sets the clipping of the pattern fill.

C#
public void SetClipping(Rect rect)
Parameters:rectRect

The rectangle specifying the clipping.