I have a ItemsControl with its ItemsSource bound to a collection, additionally I have a ItemTemplateSelector set.
It works well however the DataTemplateSelector only allows me to access the items bound by ItemsSource, however I want to use the Parents DataContext to make the decision on what item template should be used.
Is this achievable in SL4??
If so how can it be achieved??
Thanks for your response @Xin but I managed to resolve my problem by doing the following.