예제 #1
0
 private void MovePointerDuringReposition(int i, int j)
 {
     EpPointer.SetValue(Canvas.LeftProperty, (double)(i - 3));
     EpPointer.SetValue(Canvas.TopProperty, (double)(j - 3));
     EpPointer.InvalidateVisual();
     CanColor.InvalidateVisual();
 }
예제 #2
0
 private void MovePointer()
 {
     EpPointer.SetValue(Canvas.LeftProperty, (double)(Mouse.GetPosition(CanColor).X - 5));
     EpPointer.SetValue(Canvas.TopProperty, (double)(Mouse.GetPosition(CanColor).Y - 5));
     CanColor.InvalidateVisual();
 }