private void UpdateState(VisualControlState newState)
        {
            switch (newState)
            {
            case VisualControlState.Disabled:
                VisualStateManager.GoToState(this, StateDisabled, false);
                break;

            case VisualControlState.Normal:
                VisualStateManager.GoToState(this, StateNormal, false);
                break;

            case VisualControlState.PointerOver:
                VisualStateManager.GoToState(this, StatePointerOver, false);
                break;
            }
        }
Example #2
0
 virtual public void Pause()
 {
     State = VisualControlState.Paused;
 }
Example #3
0
 virtual public void Stop()
 {
     State = VisualControlState.Stoppped;
 }
Example #4
0
 virtual public void Play()
 {
     State = VisualControlState.Played;
 }
 private void UpdateState(VisualControlState newState)
 {
     switch (newState)
     {
         case VisualControlState.Disabled:
             VisualStateManager.GoToState(this, StateDisabled, false);
             break;
         case VisualControlState.Normal:
             VisualStateManager.GoToState(this, StateNormal, false);
             break;
         case VisualControlState.PointerOver:
             VisualStateManager.GoToState(this, StatePointerOver, false);
             break;
     }
 }