コード例 #1
0
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            var autoScroller = new AutoScroller();

            dragNDropController = new DragNDropController(autoScroller);
            var selectionMultiple = new SelectionMultiple(this);

            Selection        = selectionMultiple;
            IsEditingManager = new IsEditingManager(this);

            inputEventRouter = new InputEventRouter(this);
            inputEventRouter.Add(IsEditingManager);
            inputEventRouter.Add(autoScroller);
            inputEventRouter.Add(dragNDropController);
            inputEventRouter.Add(selectionMultiple.BorderSelectionLogic);
            inputEventRouter.Add(selectionMultiple);
            isInitialized = true;
        }
コード例 #2
0
ファイル: TreeViewEx.cs プロジェクト: YoshihiroIto/TreeViewEx
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            var autoScroller = new AutoScroller();
            dragNDropController = new DragNDropController(autoScroller);
            var selectionMultiple = new SelectionMultiple(this);
            Selection = selectionMultiple;
            IsEditingManager = new IsEditingManager(this);

            inputEventRouter = new InputEventRouter(this);
            inputEventRouter.Add(IsEditingManager);
            inputEventRouter.Add(autoScroller);
            inputEventRouter.Add(dragNDropController);
            inputEventRouter.Add(selectionMultiple.BorderSelectionLogic);
            inputEventRouter.Add(selectionMultiple);
            isInitialized = true;
        }