Advanced Tree View Tricks

The TreeView is a sophisticated control, and it provides a great deal of customization possibilities. Some of the additional ap Table 6-7 TreeView Appearance Properties Table 6-7 TreeView Appearance Properties Specifies the left-to-right distance ShowLines, ShowPlusMinus, and ShowRootLines When set to true, nodes are sorte< sort order, other than to add the nc The TreeNode also provides some useful properties that haven't been discussed yet (Table 6-8). Mainly, these properties allc and...

The View Mediator Pattern

The approach that .NET encourages circumvents this problem by using events. When you create a form in Visual Studio .NI handling logic is inserted as a series of special methods, which are added to the custom form class. In other words, every form acts as a giant switchboard for all the controls it contains. This type of design pattern, which is so View-Mediator pattern. It dictates that one central class organizes each individual window. Here's the same text box example you saw earlier,...