O'Reilly logo

Silverlight 4 User Interface Cookbook by Vibor Cipan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Split button and creating one from scratch

Unfortunately, WPF lacks a simple Split Button control. Basically, it is the regular button usually used to consolidate a set of variations of a command, especially when one of the commands is used most of the time.

Typical (expanded) split button might look like this one shown from Outlook 2007:

Split button and creating one from scratch

In this recipe we will create a really simple but effective split button with accompanying drop-down menu.

Getting ready

Start your Expression Blend 4 and then select New project... From the dialog that appears select WPF and then WPF Application, make sure that Language is set to C# and Version is 4.0. At the end ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required