How to set multiple enum members (flags) in XAML

September 18th, 2009 § 1 Comment

I was dealing with the DataForm control and I wanted to show multiple command buttons through the CommandButtonsVisibility property. CommandButtonsVisibility is enum. While it was perfectly clear how to do this in code (

dataForm.CommandButtonsVisibility =
	DataFormCommandButtonsVisibility.Add |
	DataFormCommandButtonsVisibility.Cancel |

), that wasn’t the case with XAML.

I tried to apply the same technique in XAML, but with no luck. Turns out it is even easier to set this in XAML:


That’s just a little tip that I thought it’d be useful to share.

Silverlight User Group Bulgaria Meeting

September 4th, 2009 § Leave a Comment

The summer is ending and its time to start the new season for the Silverlight User Group meetings.

Next meeting is scheduled for next Tuesday, 08 September, 18:30h at the local Microsoft Office. There will be 2 sessions:

  • What’s new in Silverlight 3 and Blend 3
  • Routed and attached events in Silverlight 3.0 (commanding framework)

More information is available on

RSVP in the Facebook event

Meet you there.

Where Am I?

You are currently viewing the archives for September, 2009 at Emil Stoychev.