Sorry for the late reply, I must have missed a notification.
So, my second suggestion still won't work. It's only for static templates, meaning once your Items DataTemplate
is loaded, there's no way to change them.
What you can do though, is have the XAML of your normal and selected templates in a style and tweek their visibility based on VisualState
. I've edited the sample disklosr
posted to illustrate what I mean, notice how the StoryBoard
of the CustomUserControl
changes the visibility of the NormalGrid
and SelectedGrid
. You can have any layout you wish inside those two grid's bound to your dataItems.