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

A RadButton implementation that serves as clickable header button. It's MouseOver and Pressed states will be inactive if no Command is attached.

Definition

Constructors

Initializes a new instance of the GroupHeaderButton class.

C#
public GroupHeaderButton()

Fields

IsCommandAttachedProperty

DependencyProperty

Identifies the IsCommandAttached read only DependencyProperty.

C#
public static readonly DependencyProperty IsCommandAttachedProperty

IsTodayProperty

DependencyProperty

Identifies the IsToday DependencyProperty.

C#
public static readonly DependencyProperty IsTodayProperty

OrientationProperty

DependencyProperty

Identifies the Orientation DependencyProperty.

C#
public static readonly DependencyProperty OrientationProperty

Properties

Gets a Boolean property indicating if a command has been set to the button.

C#
public bool IsCommandAttached { get; }

Gets or Sets whether the button should highlight as Today.

C#
public bool IsToday { get; set; }

Orientation

Orientation

Gets or Sets the orientation of the button.

C#
public Orientation Orientation { get; set; }

Methods

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call. .

C#
public override void OnApplyTemplate()

Overrides: RadButton.OnApplyTemplate()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Overrides: RadButton.OnInitialized(EventArgs)

Called when the IsPressed property changes.

C#
protected override void OnIsPressedChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs

Overrides: RadButton.OnIsPressedChanged(DependencyPropertyChangedEventArgs)

Resets the CommonVisual states.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadButton.OnMouseEnter(MouseEventArgs)

Resets the CommonVisual states.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadButton.OnMouseLeave(MouseEventArgs)

Updates the visual states.

C#
protected void UpdateVisualStates(bool useTransitions)
Parameters:useTransitionsbool

If set to true use transitions.