Archive for the ‘Uncategorized’ Category

Silverlight 2 Combo Box binding sublety!

October 9, 2008

It is vital to bind the ItemsSource before Binding to the SelectedItem!!! Wow, that’s a tough one

This works:

<ComboBox ItemsSource=”{Binding AllCurrencyStrings}” SelectedItem=”{Binding Path=Currency, Mode=TwoWay, Converter={StaticResource ConverterEnumToString}}”/>

this does NOT work:

<ComboBox SelectedItem=”{Binding Path=Currency, Mode=TwoWay, Converter={StaticResource ConverterEnumToString}}” ItemsSource=”{Binding AllCurrencyStrings}” />

I hope someone finds this helpful

-Brant

Advertisements

XAML PowerTools error revisited

October 7, 2008

Even after a rebuild, I’m getting the following error when trying to generate xaml from a class in an RC0 SilverLight project. 

 

An intermittent fix seems to be to add a WPF project, and generate xaml from one of those classes – but now I’m stuck (the workaround doesn’t work).  

Does anyone know if these add-ins are easy to debug? Karl did publish the source.  At any rate, any feedback is welcome.

Thanks,

Brant

Hello world!

October 6, 2008

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!