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 |
	DataFormCommandButtonsVisibility.Edit;

), 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:

CommandButtonsVisibility="Add,Cancel,Edit"

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 http://www.silverlight.bg.

RSVP in the Facebook event http://www.facebook.com/event.php?eid=121538788987

Meet you there.

Where Am I?

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