示例#1
0
        public MainWindow()
        {
            InitializeComponent();

            SampleTreeView.ItemsSource = BuildDepartmentTree();

            SampleTreeView.AllowDragDrop = true;
            dragDrop = new CustomDragDrop(SampleTreeView);
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();

            SampleTreeView.ItemsSource = BuildDepartmentTree();

            SampleTreeView.AllowDragDrop = true;
            dragDrop = new CustomDragDrop(SampleTreeView);
            SampleTreeView.DragOver += dragDrop.HandleDragOver;
            SampleTreeView.DragDrop += dragDrop.HandleDragDrop;
        }