Project DescriptionSome of you may have noticed that there is no built-in SplitButton control for WPF. Here you'll find my implementation.
Screenshots
Here's some screenshots so you can see what the control looks like.
Luna.NormalColor
Custom Style (with Luna.NormalColor)
Notes
- AlternationCount is not currently supported.
- ItemTemplate is not currently supported.
- ItemTemplateSelector is not currently supported.
- The only way to remove the "Chrome" is to define a new ControlTemplate (just copy from the existing templates...)
- The drop down does not stay open when you release the left mouse button; left-click drop down button then drag and release over the item to select it.
- This control was designed to work with MenuItems only.
- Handle the Click routed event on the SplitButton for notification when the SplitButtonHeader is clicked.
- Handle the ItemSelected routed event on the SplitButton for notification when a MenuItem is selected.
- AutoUpdateHeader dependency property will update the SplitButton's, SplitButtonHeader's, Content property automatically when set to True.
Comments, Questions, and Bugs
- Please leave comments and/or questions in the Discussions area of the site.
- Please report any bugs you find in the Issue Tracker, so they can be fixed.
My WordPress Blog
You can find my blog at:
http://thrash505.wordpress.com/