WPF Drag & Drop: How to literally drag an element?

This is typically done using an adorner. See here for an example.

Thank you Kent. In the end, I followed Bea's drag and drop implementation beacosta. Com/blog/?

P=53. Your reference led me to his post. – Boris Dec 27 '10 at 10:32.

Most of the times I use this library for my drag ad drop operations. Below is some links to get you started blogs.msdn.com/b/jaimer/archive/2007/07/... codeproject.com/KB/WPF/gong-wpf-dragdrop... codeproject.com/KB/WPF/gong-wpf-dragdrop....

Resize Xaml: ResizeHandle. Xaml ResizeHandle.Xaml. Cs using System; using System.

Windows; using System.Windows. Controls; using System.Windows.Controls. Primitives; namespace ERDesign { public partial class ResizeHandle : UserControl { public ResizeHandle() { InitializeComponent(); } private void Thumb_DragDelta(object sender, DragDeltaEventArgs e) { ResizeHandle resizehandle = (sender as Thumb).

Parent as ResizeHandle; Resize resize = (resizehandle. DataContext as Control). Parent as Resize; UserControl userctrl = (resize.

DataContext as ContentControl). Parent as UserControl; if (userctrl == null) { } else { double X; double Y; switch (this. HorizontalAlignment) { case HorizontalAlignment.

Left: X = Math. Min(e. HorizontalChange, userctrl.

ActualWidth - userctrl. MinWidth); Canvas. SetLeft(userctrl, Canvas.

GetLeft(userctrl) + X); userctrl. Width = userctrl. Width - X; break; case HorizontalAlignment.

Right: X = Math. Min(-e. HorizontalChange, userctrl.

ActualWidth - userctrl. MinWidth); userctrl. Width = userctrl.

Width - X; break; default: break; } switch (this. VerticalAlignment) { case VerticalAlignment. Top: Y = Math.

Min(e. VerticalChange, userctrl. ActualHeight - userctrl.

MinHeight); Canvas. SetTop(userctrl, Canvas. GetTop(userctrl) + Y); userctrl.

Height = userctrl. Height - Y; break; case VerticalAlignment. Bottom: Y = Math.

Min(-e. VerticalChange, userctrl. ActualHeight - userctrl.

MinHeight); userctrl. Height = userctrl. Height - Y; break; default: break; } } } } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions