Class
ControlBehavior

Provides VisualStateManager base behavior for controls.

Definition

Constructors

ControlBehavior()

Declaration

cs-api-definition
public ControlBehavior()

Properties

TargetType

This behavior targets Control derived Controls.

Declaration

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

Property Value

Type

Overrides VisualStateBehavior.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 VisualStateBehavior.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 VisualStateBehavior.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 VisualStateBehavior.UpdateState(Control, bool)

UpdateStateHandler(object, EventArgs)

Declaration

cs-api-definition
protected override void UpdateStateHandler(object o, EventArgs e)

Parameters

o

object

e

EventArgs

Overrides VisualStateBehavior.UpdateStateHandler(object, EventArgs)