private void SetState(Iconstate state) { VisualStateManager.GoToState(this, state+"", true); }
private void SetState(Iconstate state) { VisualStateManager.GoToState(this, state+"", true); //switch (state) //{ // case Iconstate.FirstState: // VisualStateManager.GoToState(this, "FirstState", true); // break; // case Iconstate.SecondState: // VisualStateManager.GoToState(this, "SecondState", true); // break; // case Iconstate.ThirdState: // VisualStateManager.GoToState(this, "ThirdState", true); // break; //} }