Monthly Archives: April 2008

SilverBites 1: Adding metadata to Xaml in design-time

Posted by Szili on April 15, 2008 at 6:22 pm.

This little lolcat will show you a cool feature I discovered recently.
Using its ‘Tag’ property you can add metadata to a FrameworkElement (so practically every graphical element Silverlight provides) and read it out in code as a string.
Even better, you can set Tag property in design-time with Expression Blend support!
This is a start of my […]

Data Binding in Silverlight and XamlParseException

Posted by Szili on April 4, 2008 at 2:16 pm.

Playing with data binding I had the System.Windows.Markup.XamlParseException whenever I ran my app.
It turns out the problem was putting a binding statement into a <Run … /> element. Silverlight supports data binding only on FrameworkElements and the Run class contrary to the Textblock is not a descendant.