Offering Commands with the ToolBar Control
The ToolBar
control enables you to create 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:
<ToolBarTray> <ToolBar> <Button Name="NewButton" Click="NewButton_Click"> <Image Source=NewDocument.png" /> </Button> <Button Name="OpenButton" Click="OpenButton_Click"> <Image Source="OpenFolder.png" /> </Button> <Button Name="SaveButton" Click="SaveButton_Click"> <Image Source="Save.png" /> </Button> ...
Get Visual Basic 2015 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.