ToolBar.DropDownButton in WPF

If you want create a Toolbar in your WPF project, you have all controls (tags) except the DropDownButton. You can find here a simple code to simulate this button. In future, I’ll post a new article about this code integrated in a new control.

When you execute the code bellow, you can see a toolbar like this.

The first part of the code is in XAML.

And the second part is in C# to display and hide the popup.

You can click here to download this code.

Leave a Reply

Your email address will not be published. Required fields are marked *