microsoft / microsoft/automatic-graph-layout
Expand/Collapse subgraph in Windows Form
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 319
- Avg merge
- 38m
- Merged PRs (30d)
- 1
Description
I have noticed that this functionality is only available for Wpf. Is there any method which can hide a specific node? I know there is the 'IsVisible' property for Nodes and Edges but it only sets its visibility without affecting its size. For example, this code:
foreach (Node t in mysubgraph.Nodes) t.IsVisible = false;
gViewer.DrawingPanel.Invalidate();
correctly hides my nodes, but the size of mysubgraph remains the same, as if the invisible nodes still occupy the same area.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the existing WPF expand/collapse functionality with the Windows Forms viewer behavior described in the issue. Verify how hiding nodes affects subgraph sizing and redraw; done when collapsing a subgraph in Windows Forms removes hidden nodes from its occupied layout area.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100