ClassButtonContentControl
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ButtonContentControl : ContentControlBase, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IContentControl
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementControlContentControlBaseButtonContentControl
Derived Classes:
Implements:
Inherited Members
Constructors
ButtonContentControl()
Declaration
public ButtonContentControl()
Fields
ButtonHeightProperty
Identifies the ButtonHeight dependency property.
Declaration
public static readonly RadProperty ButtonHeightProperty
Field Value
ButtonShouldBeVisibleProperty
Identifies the ButtonShouldBeVisible dependency property.
Declaration
public static readonly RadProperty ButtonShouldBeVisibleProperty
Field Value
ButtonWidthProperty
Identifies the ButtonWidth dependency property.
Declaration
public static readonly RadProperty ButtonWidthProperty
Field Value
Properties
ButtonContainer
Declaration
public ContentControlBorder ButtonContainer { get; }
Property Value
ButtonElemement
Declaration
public RadButtonElement ButtonElemement { get; }
Property Value
ButtonHeight
Get or sets the value that indicates the height of the button.
ButtonShouldBeVisible
Gets or sets the value that indicates whether the button should be visible or not.
ButtonWidth
Gets or sets the value that indicates the width of the button.
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.
CreateButtonContainerElement()
Declaration
protected virtual ContentControlBorder CreateButtonContainerElement()
Returns
CreateButtonElement()
Declaration
protected virtual RadButtonElement CreateButtonElement()
Returns
GetButtonShouldBeVisible(ContentControlState)
Declaration
protected virtual bool GetButtonShouldBeVisible(ContentControlState state)
Parameters
state
Returns
GetTemplateChild(string)
Declaration
protected override VisualElement GetTemplateChild(string childName)
Parameters
childName
Returns
Overrides
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 override void OnStatePropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
sender
e
Overrides
SyncDataContextChildState()
Declaration
protected override void SyncDataContextChildState()
Overrides