public void OnDragBegin(DragBeginEventArgs e) { if (this.nodePath == null) { return; } List <DataSchemaItem> list1 = new List <DataSchemaItem>(Enumerable.OfType <DataSchemaItem>((IEnumerable)this.SelectionContext)); if (list1.Count <= 0 || list1.Count != this.SelectionContext.Count || !list1.Contains(this)) { return; } DataSchemaNode parent = list1[0].DataSchemaNode.Parent; DataSourceNode dataSourceNode = list1[0].DataSourceNode; List <DataSchemaNodePath> list2 = new List <DataSchemaNodePath>(); list2.Add(list1[0].nodePath.AbsolutePath); for (int index = 1; index < list1.Count; ++index) { if (parent != list1[index].DataSchemaNode.Parent || dataSourceNode != list1[index].DataSourceNode) { return; } list2.Add(list1[index].nodePath.AbsolutePath); } DataSchemaNodePathCollection nodePathCollection = new DataSchemaNodePathCollection((IEnumerable <DataSchemaNodePath>)list2); using (DataBindingDragDropManager.GetDragDropToken()) { int num = (int)DragSourceHelper.DoDragDrop(e.DragSource, (object)nodePathCollection, DragDropEffects.Copy | DragDropEffects.Move); } }
public virtual void OnDragBegin(DragBeginEventArgs e) { if (this.DragAction == null) { return; } this.DragAction(e.DragSource); e.Handled = true; }
public override void OnDragBegin(DragBeginEventArgs e) { if (this.Container.Document == null || !this.Container.Document.IsEditable || (Mouse.Captured != null || this.IsEditing)) { return; } DataObject dataObject = new DataObject(); dataObject.SetData("ResourceEntryItem", (object)this, true); int num = (int)DragDrop.DoDragDrop((DependencyObject)e.DragSource, (object)dataObject, DragDropEffects.Copy | DragDropEffects.Move); }
public override void OnDragBegin(DragBeginEventArgs e) { if (!e.Handled && this.TimelineTreeRow != null && (!this.TimelineTreeRow.IsEditingTitle && this.TimelineItem != null) && this.TimelineItem.CanDrag()) { object dragData = this.TimelineItem.DragData; if (dragData != null) { int num = (int)DragSourceHelper.DoDragDrop((UIElement)this.TimelineTreeRow, dragData, DragDropEffects.All); } e.Handled = true; } base.OnDragBegin(e); }
public override void OnDragBegin(DragBeginEventArgs e) { if (Mouse.Captured == null && !this.IsRenaming) { DataObject dataObject = new DataObject(); dataObject.SetData("BlendProjectItem", base.Services.ProjectManager().ItemSelectionSet, true); try { DragDrop.DoDragDrop(e.DragSource, dataObject, DragDropEffects.Move); } catch (COMException cOMException) { } } }
void HandleDragBegin(DragBeginEventArgs args) { var element = args.Element; int lx = args.X; int ly = args.Y; IntVector2 p = element.Position; elements[element] = new ElementInfo(element, p, new IntVector2(p.X - lx, p.Y - ly), args.Buttons); int buttons = args.Buttons; var t = (Text)element.GetChild("Text", false); t.Value = "Drag Begin Buttons: " + buttons; t = (Text)element.GetChild("Num Touch", false); t.Value = "Number of buttons: " + args.NumButtons; }
private void HandleDragBegin(DragBeginEventArgs args) { // Get UIElement relative position where input (touch or click) occured (top-left = IntVector2(0,0)) dragBeginPosition = new IntVector2(args.ElementX, args.ElementY); }
void HandleDragBegin(DragBeginEventArgs args) { var element = args.Element; int lx = args.X; int ly = args.Y; IntVector2 p = element.Position; elements[element] = new ElementInfo(element, p, new IntVector2(p.X - lx, p.Y - ly), args.Buttons); int buttons = args.Buttons; var t = (Text)element.GetChild("Text", false); t.Value = "Drag Begin Buttons: " + buttons; t = (Text)element.GetChild("Num Touch", false); t.Value = "Number of buttons: " + args.NumButtons; }
void HandleDragBegin(DragBeginEventArgs args) { // Get UIElement relative position where input (touch or click) occured (top-left = IntVector2(0,0)) dragBeginPosition = new IntVector2(args.ElementX, args.ElementY); }
public virtual void OnDragBegin(DragBeginEventArgs e) { }
public override void OnDragBegin(DragBeginEventArgs e) { }