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

Represents a control used to visualize the structured document tag elements.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public abstract class ContentControlBase : Control, IContentControl

Inheritance: objectContentControlBase

Derived Classes: ButtonContentControlCheckBoxControlContentControlInputPictureControl

Implements: IContentControl

Constructors

C#
protected ContentControlBase()

Fields

AliasFontSizeProperty

DependencyProperty

Identifies the AliasFontSize dependency property.

C#
public static readonly DependencyProperty AliasFontSizeProperty

AliasProperty

DependencyProperty

Identifies the Alias dependency property.

C#
public static readonly DependencyProperty AliasProperty

FocusedProperty

DependencyProperty

Identifies the Focused dependency property.

C#
public static readonly DependencyProperty FocusedProperty

HoveredProperty

DependencyProperty

Identifies the Hovered dependency property.

C#
public static readonly DependencyProperty HoveredProperty

LineThicknessProperty

DependencyProperty

Identifies the LineThickness dependency property.

C#
public static readonly DependencyProperty LineThicknessProperty

OutlineColorProperty

DependencyProperty

Identifies the OutlineColor dependency property.

C#
public static readonly DependencyProperty OutlineColorProperty

PolygonPointsProperty

DependencyProperty

Identifies the PolygonPoints dependency property.

C#
public static readonly DependencyProperty PolygonPointsProperty

SelectCommandProperty

DependencyProperty

Identifies the SelectCommand dependency property.

C#
public static readonly DependencyProperty SelectCommandProperty

SelectedProperty

DependencyProperty

Identifies the Selected dependency property.

C#
public static readonly DependencyProperty SelectedProperty

TextFlowDirectionProperty

DependencyProperty

Identifies the TextFlowDirection dependency property.

C#
public static readonly DependencyProperty TextFlowDirectionProperty

Identifies the ThumbShouldBeVisible dependency property.

C#
public static readonly DependencyProperty ThumbShouldBeVisibleProperty

Identifies the TopThumbButtonShouldBeVisible dependency property.

C#
public static readonly DependencyProperty TopThumbButtonShouldBeVisibleProperty

Properties

Gets or sets the alias text.

C#
public string Alias { get; set; }

Gets or sets the value indicating the font size of the alias text.

C#
public double AliasFontSize { get; set; }

Gets or sets the value that indicates whether or not the control is selected.

C#
public bool Focused { get; set; }

Gets or sets the value that indicates whether or not the control is hovered.

C#
public bool Hovered { get; set; }

Gets or sets the value that indicates the line thickness of the polygon.

C#
public double LineThickness { get; set; }

Gets or sets the value that indicates the color of the control.

C#
public Color OutlineColor { get; set; }

PolygonPoints

PointCollection

Gets or sets the value that indicates the point collection defining the bounding polygon.

C#
public PointCollection PolygonPoints { get; set; }

Gets or sets the value that indicates the command to be executed when the control is selected.

C#
public ICommand SelectCommand { get; set; }

Gets or sets the value that indicates whether the control should be highlighted or not.

C#
public bool Selected { get; set; }

TextFlowDirection

FlowDirection

Gets or sets the value that indicates the text flow direction.

C#
public FlowDirection TextFlowDirection { get; set; }

Gets or sets the value that indicates whether to show the thumb or not.

C#
public bool ThumbShouldBeVisible { get; set; }

Gets or sets the value indicating whether the button inside the top thumb should be visible or not.

C#
public bool TopThumbButtonShouldBeVisible { get; set; }

Methods

C#
protected override Size ArrangeOverride(Size arrangeBounds)
Parameters:arrangeBoundsSizeReturns:

Size

Gets the name of the element holding the content of the control.

C#
public string GetBodyElementName()
Returns:

string

Implements: IContentControl.GetBodyElementName()

Gets the current state of the control.

C#
public ContentControlState GetCurrentState()
Returns:

ContentControlState

Implements: IContentControl.GetCurrentState()

Initializes the content control with provided state.

C#
public virtual void Initialize(ContentControlState state)
Parameters:stateContentControlState

The state with which the control should be initialized.

Implements: IContentControl.Initialize(ContentControlState)

This method is called before an UI element is displayed.

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.

Updates the state of the control.

C#
public virtual void UpdateState(ContentControlState state)
Parameters:stateContentControlState

The state to be applied to the control.

Implements: IContentControl.UpdateState(ContentControlState)