skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ContentControlBase

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

Inheritance
System.Object
ContentControlBase
ButtonContentControl
CheckBoxControl
ContentControlInput
PictureControl
Namespace: Telerik.Windows.Controls.RichTextBoxUI
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public abstract class ContentControlBase : Control, IContentControl

Constructors

ContentControlBase()

Declaration
protected ContentControlBase()

Fields

AliasFontSizeProperty

Identifies the AliasFontSize dependency property.

Declaration
public static readonly DependencyProperty AliasFontSizeProperty
Field Value
System.Windows.DependencyProperty

AliasProperty

Identifies the Alias dependency property.

Declaration
public static readonly DependencyProperty AliasProperty
Field Value
System.Windows.DependencyProperty

FocusedProperty

Identifies the Focused dependency property.

Declaration
public static readonly DependencyProperty FocusedProperty
Field Value
System.Windows.DependencyProperty

HoveredProperty

Identifies the Hovered dependency property.

Declaration
public static readonly DependencyProperty HoveredProperty
Field Value
System.Windows.DependencyProperty

LineThicknessProperty

Identifies the LineThickness dependency property.

Declaration
public static readonly DependencyProperty LineThicknessProperty
Field Value
System.Windows.DependencyProperty

OutlineColorProperty

Identifies the OutlineColor dependency property.

Declaration
public static readonly DependencyProperty OutlineColorProperty
Field Value
System.Windows.DependencyProperty

PolygonPointsProperty

Identifies the PolygonPoints dependency property.

Declaration
public static readonly DependencyProperty PolygonPointsProperty
Field Value
System.Windows.DependencyProperty

SelectCommandProperty

Identifies the SelectCommand dependency property.

Declaration
public static readonly DependencyProperty SelectCommandProperty
Field Value
System.Windows.DependencyProperty

SelectedProperty

Identifies the Selected dependency property.

Declaration
public static readonly DependencyProperty SelectedProperty
Field Value
System.Windows.DependencyProperty

TextFlowDirectionProperty

Identifies the TextFlowDirection dependency property.

Declaration
public static readonly DependencyProperty TextFlowDirectionProperty
Field Value
System.Windows.DependencyProperty

ThumbShouldBeVisibleProperty

Identifies the ThumbShouldBeVisible dependency property.

Declaration
public static readonly DependencyProperty ThumbShouldBeVisibleProperty
Field Value
System.Windows.DependencyProperty

TopThumbButtonShouldBeVisibleProperty

Identifies the TopThumbButtonShouldBeVisible dependency property.

Declaration
public static readonly DependencyProperty TopThumbButtonShouldBeVisibleProperty
Field Value
System.Windows.DependencyProperty

Properties

Alias

Gets or sets the alias text.

Declaration
public string Alias { get; set; }
Property Value
System.String

AliasFontSize

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

Declaration
public double AliasFontSize { get; set; }
Property Value
System.Double

Focused

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

Declaration
public bool Focused { get; set; }
Property Value
System.Boolean

Hovered

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

Declaration
public bool Hovered { get; set; }
Property Value
System.Boolean

LineThickness

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

Declaration
public double LineThickness { get; set; }
Property Value
System.Double

OutlineColor

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

Declaration
public Color OutlineColor { get; set; }
Property Value
System.Windows.Media.Color

PolygonPoints

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

Declaration
public PointCollection PolygonPoints { get; set; }
Property Value
System.Windows.Media.PointCollection

SelectCommand

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

Declaration
public ICommand SelectCommand { get; set; }
Property Value
System.Windows.Input.ICommand

Selected

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

Declaration
public bool Selected { get; set; }
Property Value
System.Boolean

TextFlowDirection

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

Declaration
public FlowDirection TextFlowDirection { get; set; }
Property Value
System.Windows.FlowDirection

ThumbShouldBeVisible

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

Declaration
public bool ThumbShouldBeVisible { get; set; }
Property Value
System.Boolean

TopThumbButtonShouldBeVisible

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

Declaration
public bool TopThumbButtonShouldBeVisible { get; set; }
Property Value
System.Boolean

Methods

ArrangeOverride(Size)

Declaration
protected override Size ArrangeOverride(Size arrangeBounds)
Parameters
System.Windows.Size arrangeBounds

Returns
System.Windows.Size

GetBodyElementName()

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

Declaration
public string GetBodyElementName()
Returns
System.String

Implements
IContentControl.GetBodyElementName()

GetCurrentState()

Gets the current state of the control.

Declaration
public ContentControlState GetCurrentState()
Returns
ContentControlState

Implements
IContentControl.GetCurrentState()

Initialize(ContentControlState)

Initializes the content control with provided state.

Declaration
public virtual void Initialize(ContentControlState state)
Parameters
ContentControlState state

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
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

UpdateState(ContentControlState)

Updates the state of the control.

Declaration
public virtual void UpdateState(ContentControlState state)
Parameters
ContentControlState state

The state to be applied to the control.

Implements
IContentControl.UpdateState(ContentControlState)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.