This topic demonstrates how to use the SmartExplorerTaskPane SmartControl using both the designer and code. The code is provided in a sequential order and can be cut and pasted into your application step-by-step.
To use the SmartExplorerTaskPane in your application, the following steps must be performed:
Add the SmartExplorerTaskPane control to your form.
If you would prefer to add the SmartExplorerTaskPane SmartControl to your form programmatically, the following code can be used:
To each of these Group SmartItems, you can then added the desired number of Task SmartItems by selecting a group and double clicking on the New Task menu.
If you want to add items other than Groups and Tasks, you can click on the drop down arrow and select the SmartItem to add.
To add SmartItems programmatically to the SmartExplorerTaskPane, you can use the following code:
We will start by adding 2 Group SmartItems and then we will add 3 Task SmartItems to the first group. To the second group, we will add a ComboBoxTool SmartItem.
Configure your SmartExplorerTaskPane. You can decide if a Group SmartItem is expanded, enabled or visible and you can change its text, position within the list, etc. You can also configure various properties of each Task SmartItem.
In the following code, we will collapse the second Group SmartItem and move the last Task SmartItem in the first group to the first position:
The SmartExplorerTaskPane SmartControl also allows you to create "special" groups that do not have the same appearance as regular groups. This is done by setting the SpecialGroup property to true.
When you run your application, you end up with an XP-style taskpane quite similar to the one found throughout Windows: