如何从后面的代码更改视觉状态?
How to change visualstate from code behind?
如何从后台代码更改视觉状态?
我尝试了以下。但它不工作。请帮助我。
VisualStateManager.GoToState(Control, "Checked", true);
试试这个,
VisualStateManager.GoToElementState(Control, "Checked", true);
如何从后台代码更改视觉状态? 我尝试了以下。但它不工作。请帮助我。
VisualStateManager.GoToState(Control, "Checked", true);
试试这个,
VisualStateManager.GoToElementState(Control, "Checked", true);