/// <summary> /// ドラッグコントローラを作成する /// </summary> /// <param name="nodes"></param> /// <param name="command"></param> /// <returns></returns> private IDragController BuildController(INodeControl[] nodes, ICommand selectionChangedCommand) { var builder = new DragControllerBuilder(null, MouseButton.Left, ModifierKeys.None, nodes, Array.Empty <ConnectionShape>()); var controller = builder .AddBuildTarget(new RectSelectionDragBuild(builder, 1, null, null)) .SetSelectionChangedCommand(selectionChangedCommand) .Build(); return(controller); }
/// <summary> /// ドラッグコントローラを作成する /// </summary> /// <param name="nodes"></param> /// <param name="command"></param> /// <returns></returns> private IDragController BuildController(INodeControl[] nodes, ICommand command) { var builder = new DragControllerBuilder(null, MouseButton.Left, ModifierKeys.None, nodes, Array.Empty <ConnectionShape>()); var controller = builder .AddBuildTarget(new NodesDragBuild(builder, 1, false, 0)) .SetNodeDragCompletedCommand(command) .Build(); return(controller); }