Пример #1
0
        void OnUnLoaded(object sender, RoutedEventArgs e)
        {
            DeInitInputEventRouting();

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

            autoScroller = null;

            Selection     = null;
            isInitialized = false;
        }
Пример #2
0
        void OnLoaded(object sender, RoutedEventArgs e)
        {
            if (!isInitialized)
            {
                autoScroller = new AutoScroller(this);

                dragNDropController = new DragNDropController(this, autoScroller)
                {
                    Enabled = IsDragNDropEnabled
                };
                Selection = new SelectionMultiple(this);
                InitInputEventRouting();

                isInitialized = true;
            }
        }
Пример #3
0
 public DragNDropController(TreeViewEx treeViewEx, AutoScroller autoScroller)
     : base(treeViewEx)
 {
     this._AutoScroller = autoScroller;
 }