ButtonContentControl
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
public ButtonContentControl()
Fields
Identifies the ButtonHeight dependency property.
public static readonly RadProperty ButtonHeightProperty
protected Point buttonOrigin
Identifies the ButtonShouldBeVisible dependency property.
public static readonly RadProperty ButtonShouldBeVisibleProperty
Identifies the ButtonWidth dependency property.
public static readonly RadProperty ButtonWidthProperty
Properties
public ContentControlBorder ButtonContainer { get; }
public RadButtonElement ButtonElemement { get; }
Get or sets the value that indicates the height of the button.
public double ButtonHeight { get; set; }
Gets or sets the value that indicates whether the button should be visible or not.
public bool ButtonShouldBeVisible { get; set; }
Gets or sets the value that indicates the width of the button.
public double ButtonWidth { get; set; }
Methods
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF arrangeBounds)
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:
In this method call to the Arrange method of each child must be made.
protected virtual ContentControlBorder CreateButtonContainerElement()
protected virtual bool GetButtonShouldBeVisible(ContentControlState state)
protected override VisualElement GetTemplateChild(string childName)
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
This method is called before an UI element is displayed.
public override void OnApplyTemplate()
Overrides:
protected override void OnStatePropertyChanged(object sender, PropertyChangedEventArgs e)
Overrides:
protected override void SyncDataContextChildState()
Overrides: