Esempio n. 1
0
        private void MouseManagerOnLeftButtonDoubleClick(object sender, MouseManagerEventArgs mouseManagerEventArgs)
        {
            var collection = new ChildrenControlCollection(NodeControl);

            if (collection.NodeControls.Any(q => q.IsCollapsed))
            {
                ExpandNodes(new ChildrenControlCollection(NodeControl));
            }
            else
            {
                CollapseNodes(new ChildrenControlCollection(NodeControl));
            }
            NodeControl.ParentSurface.Selector.Clear();
            NodeControl.ParentSurface.Selector.AddNode(NodeControl);
        }
Esempio n. 2
0
 private void CollapseNodes(ChildrenControlCollection collection)
 {
     State = CollapseState.Collapsed;
     foreach (var nodecontrol in collection.NodeControls)
     {
         nodecontrol.IsCollapsed = true;
     }
     foreach (var arrowControl in collection.ArrowControls)
     {
         arrowControl.IsCollapsed = true;
         arrowControl.DeSelect();
     }
     NodeControl.ParentSurface.ReScanForCollapseStates();
     AutoRealignIfInExplorerMode();
 }
Esempio n. 3
0
        public void ExpandNodes(ChildrenControlCollection collection)
        {
            State = CollapseState.Expanded;
            foreach (var nodecontrol in collection.NodeControls)
            {
                nodecontrol.IsCollapsed = false;
            }

            foreach (var arrowControl in collection.ArrowControls)
            {
                if (!arrowControl.From.IsCollapsed && !arrowControl.To.IsCollapsed)
                {
                    arrowControl.IsCollapsed = false;
                }
            }
            NodeControl.ParentSurface.ReScanForCollapseStates();
            AutoRealignIfInExplorerMode();
        }
Esempio n. 4
0
 private void MouseManagerOnLeftButtonDoubleClick(object sender, MouseManagerEventArgs mouseManagerEventArgs)
 {
     var collection = new ChildrenControlCollection(NodeControl);
     if (collection.NodeControls.Any(q => q.IsCollapsed))
     {
         ExpandNodes(new ChildrenControlCollection(NodeControl));
     }
     else
     {
         CollapseNodes(new ChildrenControlCollection(NodeControl));
     }
     NodeControl.ParentSurface.Selector.Clear();
     NodeControl.ParentSurface.Selector.AddNode(NodeControl);
 }
Esempio n. 5
0
 private void CollapseNodes(ChildrenControlCollection collection)
 {
     State = CollapseState.Collapsed;
     foreach (var nodecontrol in collection.NodeControls)
     {
         nodecontrol.IsCollapsed = true;
     }
     foreach (var arrowControl in collection.ArrowControls)
     {
         arrowControl.IsCollapsed = true;
         arrowControl.DeSelect();
     }
     NodeControl.ParentSurface.ReScanForCollapseStates();
     AutoRealignIfInExplorerMode();
 }
Esempio n. 6
0
        public void ExpandNodes(ChildrenControlCollection collection)
        {
            State = CollapseState.Expanded;
            foreach (var nodecontrol in collection.NodeControls)
            {
                nodecontrol.IsCollapsed = false;
            }

            foreach (var arrowControl in collection.ArrowControls)
            {
                if (!arrowControl.From.IsCollapsed && !arrowControl.To.IsCollapsed)
                {
                    arrowControl.IsCollapsed = false;
                }
            }
            NodeControl.ParentSurface.ReScanForCollapseStates();
            AutoRealignIfInExplorerMode();
        }