I’m developing an app (VisualStudio 2010 Express for Windows Phone).
I have a listbox with images and a storyboard with an animation (a projection) that I want to apply to a specific listboxitem/image when the SelectionChanged event gets fired (well not immediatly but inside the event handler).
How can I “link” my animation to this specific ListBoxItem?
well, after try and error i came up with a solution, but it’s not exactly what i wanted (the storyboard defined outside the datatemplate and maybe less code. I think it’s too much for just flipping an image), but very close.
so, the example listbox:
And the Code behind: