The previous recipe enabled us to show one level of a data tree; this recipe is going to allow us to navigate from one level to another, thus enabling us to explore the entire tree.
Open the files downloaded from the Packt Publishing website for Chapter 8 | Recipe 4 to follow along.
The following are the required steps to allow the user to navigate through the relational network:
PlusButtonclass to allow the user to navigate down the tree.
MinusButtonclass to allow the user to navigate up the tree.
RelationalNetworkEventto indicate to the relational network that the user wants to navigate.
NodeVisual, add the
PlusButtonclass if the node is a child. ...