private void thumb_DragDelta(object sender, DragDeltaEventArgs e) { posx += e.HorizontalChange; posy += e.VerticalChange; } public double posx { get { return Canvas.GetLeft(thumb); } set { Canvas.SetLeft(thumb, value); } } public double posy { get { return Canvas.GetTop(thumb); } set { Canvas.SetTop(thumb, value); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)