Class
ToggleButtonBehavior

Provides VisualStateManager behavior for ToggleButton controls.

Definition

Constructors

ToggleButtonBehavior()

Declaration

cs-api-definition
public ToggleButtonBehavior()

Properties

TargetType

This behavior targets ToggleButton derived Controls.

Declaration

cs-api-definition
protected override Type TargetType { get; }

Property Value

Type

Overrides ButtonBaseBehavior.TargetType

Methods

OnAttach(Control)

Attaches to property changes and events.

Declaration

cs-api-definition
protected override void OnAttach(Control control)

Parameters

control

Control

An instance of the control.

Overrides ButtonBaseBehavior.OnAttach(Control)

OnDetach(Control)

Detaches property changes and events.

Declaration

cs-api-definition
protected override void OnDetach(Control control)

Parameters

control

Control

The control

Overrides ButtonBaseBehavior.OnDetach(Control)

UpdateState(Control, bool)

Called to update the control's visual state.

Declaration

cs-api-definition
protected override void UpdateState(Control control, bool useTransitions)

Parameters

control

Control

The instance of the control being updated.

useTransitions

bool

Whether to use transitions or not.

Overrides ButtonBaseBehavior.UpdateState(Control, bool)