I have a view and am trying to use it for multiple scenarios, so i have to load my templates dynamically.
I have a Grid named Content_Panel and i would wish to add a toolkit:LongListPicker to it :
<toolkit:LongListSelector x:Name="_List"
Background="Transparent"
IsFlatList="True"
ItemTemplate="{StaticResource SmallImageTemplate}"
ListHeaderTemplate="{StaticResource ListHeader}"
ListFooterTemplate="{StaticResource ListFooter}" />
I would like to be able to add the templates name dynamically (so, acording to what variables i have on onNavigatedTo i can select the correct template. How can i do so?
Well, you can’t do it just like that. The easiest would be to switch the template, in C#, in your
OnNavigatedToevent.Something like: