New to Telerik UI for WPFStart a free 30-day trial

Represents a content control containing button.

Definition

Constructors

C#
public ButtonContentControl()

Fields

ButtonHeightProperty

DependencyProperty

Identifies the ButtonHeight dependency property.

C#
public static readonly DependencyProperty ButtonHeightProperty

Identifies the ButtonShouldBeVisible dependency property.

C#
public static readonly DependencyProperty ButtonShouldBeVisibleProperty

ButtonWidthProperty

DependencyProperty

Identifies the ButtonWidth dependency property.

C#
public static readonly DependencyProperty ButtonWidthProperty

Properties

Get or sets the value that indicates the height of the button.

C#
public double ButtonHeight { get; set; }

Gets or sets the value that indicates whether the button should be visible or not.

C#
public bool ButtonShouldBeVisible { get; set; }

Gets or sets the value that indicates the width of the button.

C#
public double ButtonWidth { get; set; }

Methods

C#
protected override Size ArrangeOverride(Size arrangeBounds)
Parameters:arrangeBoundsSizeReturns:

Size

Overrides: ContentControlBase.ArrangeOverride(Size)

Initializes the button content control with provided state.

C#
public override void Initialize(ContentControlState state)
Parameters:stateContentControlState

The state with which the control should be initialized.

Overrides: ContentControlBase.Initialize(ContentControlState)

Called when the control's template is applied. This method allows for additional setup and initialization after the control's visual tree has been constructed.

C#
public override void OnApplyTemplate()

Overrides: ContentControlBase.OnApplyTemplate()