Exemplo n.º 1
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(args.draggedItemIDs.Count == 1 && (args.draggedItem is TypeTreeView || args.draggedItem is MemberTreeView || args.draggedItem is NodeTreeView));
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="args">Drag&Dropの対象となるTreeViewItemの情報が含まれる</param>
 /// <returns></returns>
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     Debug.Log("CanStartDrag");
     base.CanStartDrag(args);
     return(true);
 }
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(true);
 }
        // Selection
        //-----------
        //protected override void SelectionClick(TreeViewItem item, bool keepMultiSelection)
        //{
        //}

        // Dragging
        //-----------

        protected override bool CanStartDrag(CanStartDragArgs args) => false;
Exemplo n.º 5
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(((StringTreeViewItem)args.draggedItem).JsonType != JsonType.NotJson);
 }
Exemplo n.º 6
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(args.draggedItem.depth == 0);
 }
Exemplo n.º 7
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(systemSubtreeIDs.Contains(args.draggedItem.id) && systemNames.Contains(playerLoopSystemsByListID[args.draggedItem.id].type.FullName));
 }
 /// <summary>
 /// Can the row be dragged?
 /// </summary>
 /// <param name="args">The row that is trying to be dragged.</param>
 /// <returns>True if the row can be dragged.</returns>
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(!hasSearch);
 }
Exemplo n.º 9
0
 protected override bool OnCanStartDrag(Item item, CanStartDragArgs args) => true;
Exemplo n.º 10
0
 protected virtual bool CanStartDrag(CanStartDragArgs args) =>
 false;
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     // TODO : Implement drag
     return(false);
 }
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(!isPreview);
 }
Exemplo n.º 13
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(args.draggedItemIDs.Where(id => GetGameObject(id) == null).Count() == 0);
 }
Exemplo n.º 14
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(args.draggedItemIDs.Count == 1); // || SelectionOfSameType(args.draggedItemIDs);
 }
Exemplo n.º 15
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(list.CanReorder());
 }
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(HasSelection());
 }
Exemplo n.º 17
0
 /////////////////////////////////////////
 sealed protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(OnCanStartDrag((T)args.draggedItem, args));
 }
Exemplo n.º 18
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(base.CanStartDrag(args));
 }
Exemplo n.º 19
0
 protected virtual bool OnCanStartDrag(T item, CanStartDragArgs args)
 {
     return(false);
 }
Exemplo n.º 20
0
 // Dragging
 protected virtual bool CanStartDrag(CanStartDragArgs args)
 {
     return(false);
 }
Exemplo n.º 21
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(args.draggedItem is EntityItem);
 }
Exemplo n.º 22
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(treeModel.Find(args.draggedItem.id).leafType != MerinoTreeElement.LeafType.File);
 }
Exemplo n.º 23
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(args.draggedItemIDs.Count == 1);
 }
Exemplo n.º 24
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     args.draggedItemIDs = GetSelection();
     return(true);
 }
Exemplo n.º 25
0
 protected override bool CanStartDrag(CanStartDragArgs args)
 {
     return(FindRows(args.draggedItemIDs).All(x => x.depth != 0));
 }