This demo shows how to bind to tool events in ToolBar.
Modify the shape by changing the options in the toolbar