Your question is not very clear, but as far as I understand you want to be able to drag "stuff" around in a wpf window.
You'll need to
1) handle the
MouseLeftButtonDown
event; store the current mouse position and capture the mouse
2) handle the
MouseMove
event; calculate the horizontal and vertical change and move the item accordingly this is more easily done if the items is in a
Canvas
, so you can use
Canvas.SetLeft
and
Canvas.SetTop
. And finally store the current position of the mouse.
3) handle the
MouseLeftButtonUp
event; Release the mouse capture.
WPF Draggable Label[
^] the article doesn't explain this very well but you might be able to use the code, also it doesn't seem like he uses the approach I just suggested which I beleave to be the best.
Dragging Elements in a Canvas[
^] This one is probably better, haven't read it myself but I have the utmost respect for Josh, he knows what he's talking about.