Creating Different Views in the ContextViewManager in WPF Diagram (classic)
23 Oct 2019 / 1 minute to read
ContextViewManager can be used to choose any one of the three different views. The nodes and connection will be created based on the view chosen.
- Predecessors View: The predecessors view is used to display all hierarchical parent nodes of the selected node in a layout manner.
- Successors View: The successor view displays all the hierarchical child nodes of the selected node.
- Neighborhood View: This view will be used to show immediate child and parent nodes of the selected node.
The following code example explains how to choose the predecessors view
‘Create ContextViewManager to attach source and target diagrams.
Dim ContextView As New ContextViewManager(source, target)
'Set ContextViewMode as Predecessors.
ContextView.ContextViewMode =ContextViewMode.Predecessors
Context View
NOTE
By default, the context view manager will show the neighborhood view.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page