Objectives
In previous tutorial [Using ToolCommand Types], it show some predefined WebToolBar command. Furthermore, WebToolBar also gives a flexibility to use a Customized Command which can be anything.
This tutorial will show you how to use a Templated command in WebToolBar (we will use WebCombo as customized command for WebToolBar). The steps are as follows:
- Drag WebToolBar to WebForm.
- Open WebToolBar's Property Window.
- In Behavior Property Set, Open ToolCommand Collection Editor at Command Property.
- Click "Add" to add New Item and "Remove" to Remove the Selected Item
- Change the ToolCommand Types to "Custom", find "Type" Property at the "ToolCommand Collection Editor"'s Property Window
- To add theTemplatedCommand Right click the WebToolBar and Expand Edit Template -> WebToolBar Items.
- This will show the Edit Template's sub window, where you can put any TemplatedCommand there.
- Drag WebCombo to Edit Template's sub window.
- When you done, Right click the Edit Template's sub window and Click End Template Editing.
- Run the Project and you will get something like this.
Related Articles
{Using ToolCommand Types}
{Creating Standalone Toolbar}