How to trigger datatemplate selector in Windows Phone?
问题 I have a property and depending upon it's state (say A and B) I either show a usercontrol of animation or a image. Now, if the property changes, I want to trigger the datatemplate selector again. On searching, I found that in WPF I could have used DataTemplate.Trigger but it's not available in WP. So, my question is Is their a way to trigger datatemplate selector so when property changes from state A to B, then appropriate usercontrol gets selected. If yes, then please give some example how