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(); }
private void tbSize_TextChanged(object sender, TextChangedEventArgs e) { SourceElement.InvalidateVisual(); }