コード例 #1
0
ファイル: EntryPoint.xaml.cs プロジェクト: kingpin2k/MCS
 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;
     }
 }
コード例 #2
0
 private void ThemeItemViewModel(object sender, BeginDragEventArgs e)
 {
     this.ViewModel.DoDragDrop((UIElement)sender, e.DragPoint);
 }
コード例 #3
0
ファイル: QuickLink.xaml.cs プロジェクト: kingpin2k/MCS
 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;
     }
 }
コード例 #4
0
 private void CategoryDrag(object sender, BeginDragEventArgs e)
 {
     this.ViewModel.DoDragDrop((UIElement)sender, e.DragPoint);
 }