Exemple #1
0
        private void DragMoved()
        {
            Point CurrentPosition = System.Windows.Input.Mouse.GetPosition(pnlMap);

            SourceElement.SourcePoint.X = Convert.ToInt32((CurrentPosition.X - _positionOnSource.X) / Zoom);
            SourceElement.SourcePoint.Y = Convert.ToInt32((CurrentPosition.Y - _positionOnSource.Y) / Zoom);
            SourceElement.InvalidateVisual();
        }
Exemple #2
0
 private void tbSize_TextChanged(object sender, TextChangedEventArgs e)
 {
     SourceElement.InvalidateVisual();
 }