Carl R
Carl R

Reputation: 8214

Click/Hover effect on TextBlock in Windows Phone 7

I have a menu build from TextBlocks in a StackPanel.

I would like the TextBlocks to animate when they are tapped. Pretty much like how the stock apps animate on click in menus.

The documents I've read seems to create an animation per each named item. That seems a little backwards.

Upvotes: 1

Views: 508

Answers (2)

Carl R
Carl R

Reputation: 8214

I solved it using the TiltEffect.cs.

http://msdn.microsoft.com/en-us/library/ff941094

Upvotes: 2

ColinE
ColinE

Reputation: 70142

Creating an animation per item is not so crazy. You can simply iterate over the Children of the StackPanel adding the animation to each in code.

Upvotes: 0

Related Questions