Esempio n. 1
0
        public CustomCatalogListBox()
        {
            _catalogItemDragHandler = new DataContextDragHandler <NodeCatalogItem, ITreeNode>(this, CustomDragDropFormats.CatalogItemDragDropFormat);

            Loaded   += CustomCatalogListBox_Loaded;
            Unloaded += CustomCatalogListBox_Unloaded;
        }
Esempio n. 2
0
        public CustomTreeViewControl()
        {
            AllowDrop = true;

            _nodeDragHandler        = new DataContextDragHandler <ITreeNode, ITreeNode>(this, CustomDragDropFormats.NodeDragDropFormat);
            _nodeDropHandler        = new DataContextDropHandler <ITreeNode, ITreeNode>(this, CustomDragDropFormats.NodeDragDropFormat);
            _catalogItemDropHandler = new DataContextDropHandler <NodeCatalogItem, ITreeNode>(this, CustomDragDropFormats.CatalogItemDragDropFormat);

            Loaded              += CustomTreeViewControl_Loaded;
            Unloaded            += CustomTreeViewControl_Unloaded;
            ContextMenuOpening  += CustomTreeViewControl_ContextMenuOpening;
            MouseLeftButtonDown += CustomTreeViewControl_MouseLeftButtonDown;
            DragOver            += CustomTreeViewControl_DragOver;
            DragLeave           += CustomTreeViewControl_DragLeave;
        }