ClassContentControlBase
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class ContentControlBase : Control, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IContentControl
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementControlContentControlBase
Derived Classes:
Implements:
Inherited Members
Constructors
ContentControlBase()
Declaration
protected ContentControlBase()
Fields
AliasFontSizeProperty
Identifies the AliasFontSize dependency property.
Declaration
public static readonly RadProperty AliasFontSizeProperty
Field Value
AliasProperty
Identifies the Alias dependency property.
Declaration
public static readonly RadProperty AliasProperty
Field Value
FocusedProperty
Identifies the Focused dependency property.
Declaration
public static readonly RadProperty FocusedProperty
Field Value
HoveredProperty
Identifies the Hovered dependency property.
Declaration
public static readonly RadProperty HoveredProperty
Field Value
LineThicknessProperty
Identifies the LineThickness dependency property.
Declaration
public static readonly RadProperty LineThicknessProperty
Field Value
OutlineColorProperty
Identifies the OutlineColor dependency property.
Declaration
public static readonly RadProperty OutlineColorProperty
Field Value
PolygonPointsProperty
Identifies the PolygonPoints dependency property.
Declaration
public static readonly RadProperty PolygonPointsProperty
Field Value
SelectCommandProperty
Identifies the SelectCommand dependency property.
Declaration
public static readonly RadProperty SelectCommandProperty
Field Value
SelectedProperty
Identifies the Selected dependency property.
Declaration
public static readonly RadProperty SelectedProperty
Field Value
TextFlowDirectionProperty
Identifies the TextFlowDirection dependency property.
Declaration
public static readonly RadProperty TextFlowDirectionProperty
Field Value
ThumbShouldBeVisibleProperty
Identifies the ThumbShouldBeVisible dependency property.
Declaration
public static readonly RadProperty ThumbShouldBeVisibleProperty
Field Value
TopThumbButtonShouldBeVisibleProperty
Identifies the TopThumbButtonShouldBeVisible dependency property.
Declaration
public static readonly RadProperty TopThumbButtonShouldBeVisibleProperty
Field Value
Properties
Alias
Gets or sets the alias text.
AliasFontSize
Gets or sets the value indicating the font size of the alias text.
DataContext
Gets or sets the value indicating whether the button inside the top thumb should be visible or not.
Focused
Gets or sets the value that indicates whether or not the control is selected.
Hovered
Gets or sets the value that indicates whether or not the control is hovered.
LeftThumb
Declaration
public RadToggleButtonElement LeftThumb { get; }
Property Value
LeftThumbContainer
Declaration
public ContentControlBorder LeftThumbContainer { get; }
Property Value
LineThickness
Gets or sets the value that indicates the line thickness of the polygon.
OutlineColor
Gets or sets the value that indicates the color of the control.
PolygonPoints
Gets or sets the value that indicates the point collection defining the bounding polygon.
Declaration
public PointCollection PolygonPoints { get; set; }
Property Value
SelectCommand
Gets or sets the value that indicates the command to be executed when the control is selected.
Selected
Gets or sets the value that indicates whether the control should be highlighted or not.
TextFlowDirection
Gets or sets the value that indicates the text flow direction.
Declaration
public FlowDirection TextFlowDirection { get; set; }
Property Value
ThumbShouldBeVisible
Gets or sets the value that indicates whether to show the thumb or not.
TopThumb
Declaration
public RadToggleButtonElement TopThumb { get; }
Property Value
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
TopThumbContainer
Declaration
public ContentControlBorder TopThumbContainer { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF arrangeBounds)
Parameters
arrangeBounds
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CreateMainBodyBorderElement()
Declaration
protected virtual Polygon CreateMainBodyBorderElement()
Returns
CreateThumb()
Declaration
protected virtual RadToggleButtonElement CreateThumb()
Returns
CreateThumbContainer()
Declaration
protected virtual ContentControlBorder CreateThumbContainer()
Returns
ForceUpdateUIState()
Declaration
protected virtual void ForceUpdateUIState()
GetBodyElementName()
Gets the name of the element holding the content of the control.
GetCurrentState()
Gets the current state of the control.
Declaration
public ContentControlState GetCurrentState()
Returns
Implements
GetTemplateChild(string)
Declaration
protected virtual VisualElement GetTemplateChild(string childName)
Parameters
childName
Returns
GetTopThumbButtonShouldBeVisible(ContentControlState)
Declaration
protected virtual bool GetTopThumbButtonShouldBeVisible(ContentControlState state)
Parameters
state
Returns
Initialize(ContentControlState)
Initializes the content control with provided state.
Declaration
public virtual void Initialize(ContentControlState state)
Parameters
state
The state with which the control should be initialized.
Implements
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnApplyTemplate()
This method is called before an UI element is displayed.
Declaration
public override void OnApplyTemplate()
Overrides
OnStatePropertyChanged(object, PropertyChangedEventArgs)
Declaration
protected virtual void OnStatePropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
sender
e
SyncDataContextChildState()
Declaration
protected virtual void SyncDataContextChildState()
SyncDataContextState()
Declaration
protected virtual void SyncDataContextState()
UpdateChildrenPolygonPoints()
Declaration
protected virtual void UpdateChildrenPolygonPoints()
UpdateChildrenVisibleUIState()
Declaration
protected virtual void UpdateChildrenVisibleUIState()
UpdateMainBodyFillOpacity()
Declaration
protected virtual void UpdateMainBodyFillOpacity()
UpdateState(ContentControlState)
Updates the state of the control.
Declaration
public virtual void UpdateState(ContentControlState state)
Parameters
state
The state to be applied to the control.
Implements
UpdateToggleUIState()
Declaration
protected virtual void UpdateToggleUIState()