user2636874
user2636874

Reputation: 899

How to add tilt effect to LongListSelector?

I'm developing a Windows Phone 8 application. In this, I want to add tilt-effect to all my controls (Button, LongListSelector, etc). Could you please tell me how to add tilt effect in Windows Phone 8 Application controls?

Upvotes: 0

Views: 689

Answers (2)

Ramesh
Ramesh

Reputation: 415

Try putting TiltEffect.IsTiltEnabled="true" in the Longlistselector.

<toolkit:LongListSelector Name="resultList" Grid.Row="1"
            DataContext="{StaticResource viewModel}"
            ItemTemplate="{StaticResource ResultItemTemplate}"
            ItemsSource="{Binding TwitterCollection}"
            ListFooter="{Binding}"
            TiltEffect.IsTiltEnabled="true"/>

Add this in the constructor of the cs page of your xaml.

TiltEffect.TiltableItems.Add( typeof( LongListSelector ) );

This will work.

Upvotes: 3

Abbas
Abbas

Reputation: 14432

Please do a little more research yourself, a simple Google-search got me this:

And from that article, you can go to:

Upvotes: 0

Related Questions