Ok so I have a GridView with a DataTemplate and the ItemSource set to Binding. The GridView is populated perfectly and I have no issues there.
My problem is as follows
- User taps on an image inside the DataTemplate
- A Flyout is displayed showing a simple ListView of the GridView items (works)
- User taps on a ListView item inside the flyout
- The GridView item matching the ListView item is then updated (works fine)
- A StoryBoard should be started (doesn't work)
The idea is that one player has attacked another player and I would like an animation to be started on the attacked player, but I can only access the attacking player using (sender).
The storyboard is defined within the GridViewItem DataTemplate, I can access this if that GridViewItem was tapped by using the sender and .Find() However I cannot use this I want to start a storyboard on a GridViewItem that hasn't been tapped.
I had a thought that maybe the Storyboard could be written inside the class used for the GridViewItem Bindings? How then would this be done?
Or maybe use a DataTrigger, but can this be used when the value I want to check against is and int being reduced?