t it is very simple to use and we can easily construct very deep trees since we don't have to construct the category nodes manually. The disadvantage is that we don't have access to the category nodes, thus we cannot control their formatting or define the context used for items inside the category (activity or naming control for example).

\image html tree_docs_categorized_tree.jpg "Tree With Categorized Leaf Nodes"

The actual implementation is show below:

\code
TreeNode* rootNode = new TreeNode("Root");
