private void OnDrag(object sender, BeginDragEventArgs e) { OemQuickLink link = new OemQuickLink(this.OemEntryPoint.Manager); link.BeginInit(); link.Application = this.OemEntryPoint.Application; link.EntryPoint = this.OemEntryPoint; link.EndInit(); IDataObject dataObject = Advent.Common.Interop.DataObject.CreateDataObject(); VmcStudioUtil.DragDropObject = new QuickLinkDrag(link); try { dataObject.DoDragDrop(this, e.DragPoint, DragDropEffects.Move); } finally { VmcStudioUtil.DragDropObject = null; } }
private void ThemeItemViewModel(object sender, BeginDragEventArgs e) { this.ViewModel.DoDragDrop((UIElement)sender, e.DragPoint); }
private void OnDrag(object sender, BeginDragEventArgs e) { IDataObject dataObject = Advent.Common.Interop.DataObject.CreateDataObject(); VmcStudioUtil.DragDropObject = new QuickLinkDrag(this.Link); try { dataObject.DoDragDrop(this, e.DragPoint, DragDropEffects.Move); } finally { VmcStudioUtil.DragDropObject = null; } }
private void CategoryDrag(object sender, BeginDragEventArgs e) { this.ViewModel.DoDragDrop((UIElement)sender, e.DragPoint); }