Exemplo n.º 1
0
 private void OnPanningStateChanged(Viewport2DPanningState prevState, Viewport2DPanningState currState)
 {
     PanningStateChanged.Raise(this, prevState, currState);
     if (currState == Viewport2DPanningState.Panning)
     {
         BeginPanning.Raise(this);
     }
     else if (currState == Viewport2DPanningState.NotPanning)
     {
         EndPanning.Raise(this);
     }
 }
Exemplo n.º 2
0
 private void OnPanningStateChanged(Viewport2DPanningState prevState, Viewport2DPanningState currState)
 {
     PanningStateChanged.Raise(this, prevState, currState);
     if (currState == Viewport2DPanningState.Panning)
         BeginPanning.Raise(this);
     else if (currState == Viewport2DPanningState.NotPanning)
         EndPanning.Raise(this);
 }