user4472761
user4472761

Reputation:

How to change visualstate from code behind?

How to change visualstate from code behind? I tried the following. But itz not working. Help me please.

VisualStateManager.GoToState(Control, "Checked", true);

Upvotes: 1

Views: 946

Answers (1)

itzmebibin
itzmebibin

Reputation: 9439

Try this,

VisualStateManager.GoToElementState(Control, "Checked", true);

Upvotes: 1

Related Questions