ToolBar

The ToolBar control enables creating toolbars for your WPF applications. You can add multiple ToolBar objects within a ToolBarTray object. The following XAML code shows how you can define a simple toolbar; you have to replace image files with valid ones:

image

Notice how the code implements primitive Button controls that you can manage in Visual Basic code with classic event handlers for the Click event. Following this logic you can place additional ToolBar objects inside the ToolBarTray. Figure 32.22 shows how the ToolBar looks.

Figure 32.22 Implementing a ToolBar.

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.