我正在开发Windows Phone 8应用程序。在这里,我想为我的所有控件(Button,LongListSelector等)添加倾斜效果。你能告诉我如何在Windows Phone 8应用程序控件中添加倾斜效果吗?
答案 0 :(得分:3)
尝试在Longlistselector中放置TiltEffect.IsTiltEnabled =“true”。
<toolkit:LongListSelector Name="resultList" Grid.Row="1"
DataContext="{StaticResource viewModel}"
ItemTemplate="{StaticResource ResultItemTemplate}"
ItemsSource="{Binding TwitterCollection}"
ListFooter="{Binding}"
TiltEffect.IsTiltEnabled="true"/>
在xaml的cs页面的构造函数中添加它。
TiltEffect.TiltableItems.Add( typeof( LongListSelector ) );
这样可行。
答案 1 :(得分:0)
请自己做一点研究,一个简单的Google-search让我这样做:
从那篇文章中,你可以去: