PatternFillControl
Provides methods and properties for using the PatternFillControl.
Definition
Namespace:Telerik.Windows.Controls.RichTextBoxUI
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class PatternFillControl : ControlBase
Inheritance: objectControlBasePatternFillControl
Inherited Members
Constructors
Initializes a new instance of the PatternFillControl class.
public PatternFillControl()
Initializes a new instance of the PatternFillControl class.
public PatternFillControl(PatternType patternType, Color backgroundColor, Color patternColor)
Fields
BackgroundColorProperty
DependencyProperty
The Dependency property BackgroundColorProperty.
public static readonly DependencyProperty BackgroundColorProperty
PatternColorProperty
DependencyProperty
The Dependency property PatternColorProperty.
public static readonly DependencyProperty PatternColorProperty
PatternTypeProperty
DependencyProperty
The Dependency property PatternTypeProperty.
public static readonly DependencyProperty PatternTypeProperty
Properties
BackgroundColor
Color
Gets or sets the color of the background.
public Color BackgroundColor { get; set; }
The color of the background.
PatternColor
Color
Gets or sets the color of the pattern.
public Color PatternColor { get; set; }
The color of the pattern.
Gets or sets the type of the pattern.
public PatternType PatternType { get; set; }
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.
protected override Size MeasureOverride(Size constraint)
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.
public override void OnApplyTemplate()
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.