Exemple #1
0
        private void OnUnLoaded(object sender, RoutedEventArgs e)
        {
            if (inputEventRouter != null)
            {
                inputEventRouter.Dispose();
                inputEventRouter = null;
            }

            if (dragNDropController != null)
            {
                dragNDropController.Dispose();
                dragNDropController = null;
            }

            Selection = null;
        }
Exemple #2
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;
        }