6

Closed

LongListSelector - Apply Tilt Effect to LongListSelector

description

Is there way to apply Tilt Effect to LongListSelector?
thanks.
Closed Aug 15, 2011 at 5:15 AM by jeffwilcox
Closing; the Mango toolkit uses a proper ListBox so this should 'just work' without the nice workarounds listed here.

comments

LoungeFlyZ wrote Mar 27, 2011 at 7:03 PM

Yes please! This would make it fit nicely with the way a regular ListBox works.

wrote Mar 28, 2011 at 12:14 PM

praetorian wrote May 12, 2011 at 5:49 PM

You can do this by wrapping everything in your LongListSelector's items DataTemplate within a ListBoxItem.

Before:

<DataTemplate x:Key="LongListSelectorItemTemplate">
<StackPanel toolkit:TiltEffect.IsTiltEnabled="True">
...
</StackPanel>
</DataTemplate>


After:

<DataTemplate x:Key="LongListSelectorItemTemplate">
<ListBoxItem>
<StackPanel toolkit:TiltEffect.IsTiltEnabled="True">
...
</StackPanel>
</ListBoxItem>
</DataTemplate>

wrote May 12, 2011 at 5:50 PM

wrote Aug 15, 2011 at 5:15 AM

wrote Feb 22, 2013 at 1:50 AM

wrote May 16, 2013 at 12:34 PM

madenwala wrote Jul 3, 2014 at 5:05 AM

amazing! thank you so much! Everything else I tried on the web failed, this did it!