locked
Access dynamic templates in design time

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

    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 PM
    Moderator
  • 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

    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