Alex-2663 avatar image
0 Votes"
Alex-2663 asked FayWang-MSFT commented

Is there a way to use Storyboard with ListView/GridView items?

Hi all,

Here is my question:

I have a GridView in my UWP app. Each item in the GridView, keeps a button. Like following:

I also have a pre-defined animation in a Storyboard like following

OK, here comes the question, is it possible to use the animations defined in the Storyboards with the GridView items? What I want is: When user clicks on the mOpenDetailButton button, OpenStoryboard will be played, and the ScaleY value of grid changes with it.

Any help would be appreciated, thank you.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

About "the ScaleY value of grid changes with it", I'm confused with the grid you mentioned. In "OpenStoryboard" Storyboard, the TargetName points to the "grid", but in DataTemplate, we didn't find an element named "grid", are you actually referring to "myGrid" in the DataTemplate? In addition, you can refer to this link to check how to add xaml code.

0 Votes 0 ·

0 Answers