Archives

Archives / 2009 / January
  • WPF Binding ItemsSource to Enum

    I have found a very neat and simple way of binding an ItemControl to enum values. The trick is to use an ObjectDataProvider class which enables the creation of a XAML object available as a binding source.

  • WPF Control content with curly braces

    For some people it is obvious but for me it was quite a discovery when I’ve found out how to insert curly braces into a Text or Content of a control. Surely you can’t simply write: