In any windows-based application, you can find a toolbar, usually placed just below the main menu of a window. It contains a set of controls to provide easy access to common functions.
WPF offers you a ToolBarTray element to host one or more ToolBar controls, containing various UI controls. It provides you with some extra features, such as an automatic overflowing mechanism and a manual repositioning feature.
In this recipe, we will learn how to work with toolbars in a WPF application.