This project has moved and is read-only. For the latest updates, please go here.
1
Vote

No effect of ItemTemplate property change at runtime

description

I use LongListMultiSelector and I want to change the ItemTemplate property at run time like this:

MyListMultiSelector.ItemTemplate = (DataTemplate)this.Resources["MyItemDefaultTemplate"];

The new template assignment does not change the appearance of the LongListMultiSelector . It does work as expected if I try the same code on a LongListSelector.

If I navigate away from the page containing this LongListMultiSelector and go back - then the list is shown using the newly assigned item template.

Maybe this the same issue as with LayoutMode - ItemTemplate is not a dependency property?

comments