Answered by:
Access dynamic templates in design time

Question
-
In Blend, is there way to access your item templates in design mode if your using an ItemTemplateSelector?
- Moved by James Dailey - MSFTMicrosoft employee, Moderator Monday, July 2, 2012 11:04 PM Wrong forum (From:Building Metro style apps with C# or VB )
Sunday, July 1, 2012 5:35 AM
Answers
-
Unfortunately not from the instance of the control. You can however use the resource panel to directly edit the template granted , this might an inferior experience compared to in place editing.
Dev@Mic
- Proposed as answer by Harikrishna Menon Tuesday, July 3, 2012 4:44 PM
- Marked as answer by Brian_76 Tuesday, July 3, 2012 6:17 PM
Tuesday, July 3, 2012 4:44 PM
All replies
-
Hi Brian,
Can you please elaborate on the question? Generally, we create a class that inherits from DataTemplateSelector and then in <Page.Resources> XAML we have the <yourDataTemplateSelector> point to the <DataTemplate> . And the ItemTemplateSelector of the ItemsControl then references the <yourDataTemplateSelector> using StaticResource
-Sagar
Tuesday, July 3, 2012 2:30 PMModerator -
Unfortunately not from the instance of the control. You can however use the resource panel to directly edit the template granted , this might an inferior experience compared to in place editing.
Dev@Mic
- Proposed as answer by Harikrishna Menon Tuesday, July 3, 2012 4:44 PM
- Marked as answer by Brian_76 Tuesday, July 3, 2012 6:17 PM
Tuesday, July 3, 2012 4:44 PM -
I'll try using the resource panel, thanks. It would be nice to allow for this though, since with the resource panel you lose the critical design time data binding.Tuesday, July 3, 2012 6:21 PM
-
Hi Brian,
Thanks for the feedback, will try to fix this in a future release of Blend
Dev@Mic
Monday, July 9, 2012 3:42 PM