This archiv should have everything you need for that. I added a menu item "Image" to insert an image.
Thank you for your time, I will look into the given file.
The scaling problem is easy to reproduce. Insert a image. Maybe move it to an other location. First scale it in the vertical and than in the horizontal direction. You will notice, that the last scale attempt doesn't work.
To the first problem. An easy fix is to extend the class Image an implement the following code:
Thanks for the Programm "NoteTable". It shows a lot of possibilities how I can maybe improve my code.
public class MyImage : Image
private bool _mouseDown;
private Point _point;
this.Cursor = Cursors.SizeAll;
this.ForceCursor = true;
protected override void OnMouseDown(System.Windows.Input.MouseButtonEventArgs e)
_mouseDown = true;
_point = e.GetPosition(this);
protected override void OnMouseMove(System.Windows.Input.MouseEventArgs e)
Point point = e.GetPosition((IInputElement)Parent);
protected override void OnMouseUp(System.Windows.Input.MouseButtonEventArgs e)
_mouseDown = false;