microsoft / microsoft/automatic-graph-layout
Issue updating an Edge arrows at runtime ( making it bidirectional )
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 319
- Avg merge
- 38m
- Merged PRs (30d)
- 1
Description
Hi!
I'm using WPFGraphControl and trying to modify an edge with a singular target arrow to a bidirectionnal one, which would have both source and target Arrow.
I tried modifying its attribute (ArrowheadAtSource), but if this was at None or NonSpecified when the Graph was generated, it lacks some critical structure ( the arrow itself and the arrowPath ).
And modifying its attribute triggers ValueChanged -> Invalidate, which tries to access unexisting value.
Am I using the wrong flow to modify the arrow of an edge ? Is that not doable at runtime ?
Do I need to fully redo the graph for it to work ?
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 at WPFGraphControl's runtime edge-arrow update path, focusing on ArrowheadAtSource and the ValueChanged -> Invalidate flow. Reproduce changing a singular target arrow to a bidirectional arrow after graph creation. Done means the update works without missing arrow or arrowPath structures, or the runtime limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100