views:

39

answers:

1

I need a toolbar button similiar to the "New Project" button in the standard Visual Studio toolbar. When clicked, it pops up a dialog. However, it also has a small little down-arrow next to the icon graphic that, when clicked, expands a context menu with more options.

Is there a standard control available with this functionality?

A: 

I don't think there's built in functionality for a SplitButton in WPF currently. Here's another thread that may help you out though:

http://stackoverflow.com/questions/1413536/wpf-splitbutton

You could combine a couple of controls together to make one fairly quickly. Might as well make a new UserContol out of it that can be re-used throughout your app as well.

Also, a quick search on WPF SplitButton will return a lot of examples on how to make one or you could get one off of CodeProject or CodePlex (though I'm not sure if they'll come with a image property automatically).

Scott