예제 #1
0
 private void SetState(Iconstate state)
 {
     VisualStateManager.GoToState(this, state+"", true);
 }
예제 #2
0
 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;
     //}
 }