Class
ContentControlBase

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

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public abstract class ContentControlBase : Control, IContentControl

Inheritance: objectContentControlBase

Derived Classes: ButtonContentControlCheckBoxControlContentControlInputPictureControl

Implements: IContentControl

Constructors

ContentControlBase()

Declaration

cs-api-definition
protected ContentControlBase()

Fields

AliasFontSizeProperty

Identifies the AliasFontSize dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AliasFontSizeProperty

Field Value

DependencyProperty

AliasProperty

Identifies the Alias dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AliasProperty

Field Value

DependencyProperty

FocusedProperty

Identifies the Focused dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FocusedProperty

Field Value

DependencyProperty

HoveredProperty

Identifies the Hovered dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HoveredProperty

Field Value

DependencyProperty

LineThicknessProperty

Identifies the LineThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LineThicknessProperty

Field Value

DependencyProperty

OutlineColorProperty

Identifies the OutlineColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OutlineColorProperty

Field Value

DependencyProperty

PolygonPointsProperty

Identifies the PolygonPoints dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PolygonPointsProperty

Field Value

DependencyProperty

SelectCommandProperty

Identifies the SelectCommand dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectCommandProperty

Field Value

DependencyProperty

SelectedProperty

Identifies the Selected dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedProperty

Field Value

DependencyProperty

TextFlowDirectionProperty

Identifies the TextFlowDirection dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextFlowDirectionProperty

Field Value

DependencyProperty

ThumbShouldBeVisibleProperty

Identifies the ThumbShouldBeVisible dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ThumbShouldBeVisibleProperty

Field Value

DependencyProperty

TopThumbButtonShouldBeVisibleProperty

Identifies the TopThumbButtonShouldBeVisible dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TopThumbButtonShouldBeVisibleProperty

Field Value

DependencyProperty

Properties

Alias

Gets or sets the alias text.

Declaration

cs-api-definition
public string Alias { get; set; }

Property Value

string

AliasFontSize

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

Declaration

cs-api-definition
public double AliasFontSize { get; set; }

Property Value

double

Focused

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

Declaration

cs-api-definition
public bool Focused { get; set; }

Property Value

bool

Hovered

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

Declaration

cs-api-definition
public bool Hovered { get; set; }

Property Value

bool

LineThickness

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

Declaration

cs-api-definition
public double LineThickness { get; set; }

Property Value

double

OutlineColor

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

Declaration

cs-api-definition
public Color OutlineColor { get; set; }

Property Value

Color

PolygonPoints

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

Declaration

cs-api-definition
public PointCollection PolygonPoints { get; set; }

Property Value

PointCollection

SelectCommand

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

Declaration

cs-api-definition
public ICommand SelectCommand { get; set; }

Property Value

ICommand

Selected

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

Declaration

cs-api-definition
public bool Selected { get; set; }

Property Value

bool

TextFlowDirection

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

Declaration

cs-api-definition
public FlowDirection TextFlowDirection { get; set; }

Property Value

FlowDirection

ThumbShouldBeVisible

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

Declaration

cs-api-definition
public bool ThumbShouldBeVisible { get; set; }

Property Value

bool

TopThumbButtonShouldBeVisible

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

Declaration

cs-api-definition
public bool TopThumbButtonShouldBeVisible { get; set; }

Property Value

bool

Methods

ArrangeOverride(Size)

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size arrangeBounds)

Parameters

arrangeBounds

Size

Returns

Size

GetBodyElementName()

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

Declaration

cs-api-definition
public string GetBodyElementName()

Returns

string

Implements IContentControl.GetBodyElementName()

GetCurrentState()

Gets the current state of the control.

Declaration

cs-api-definition
public ContentControlState GetCurrentState()

Returns

ContentControlState

Implements IContentControl.GetCurrentState()

Initialize(ContentControlState)

Initializes the content control with provided state.

Declaration

cs-api-definition
public virtual void Initialize(ContentControlState state)

Parameters

state

ContentControlState

The state with which the control should be initialized.

Implements IContentControl.Initialize(ContentControlState)

OnApplyTemplate()

This method is called before an UI element is displayed.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

UpdateState(ContentControlState)

Updates the state of the control.

Declaration

cs-api-definition
public virtual void UpdateState(ContentControlState state)

Parameters

state

ContentControlState

The state to be applied to the control.

Implements IContentControl.UpdateState(ContentControlState)