Project Description
Some 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
WpfSplitButton - Luna Normal Color.png WpfSplitButton - Luna Normal Color - Drop Down.png


Custom Style (with Luna.NormalColor)
WpfSplitButton - Custom Style.png WpfSplitButton - Custom Style - Drop Down.png

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/
Last edited Jun 24 at 3:57 PM by Thrash505, version 12

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987