我正在开发一个 Windows Phone 8 应用程序。在此,我想为我的所有控件(按钮、LongListSelector 等)添加倾斜效果。您能告诉我如何在 Windows Phone 8 应用程序控件中添加倾斜效果吗?
问问题
682 次
2 回答
3
尝试将 TiltEffect.IsTiltEnabled="true" 放入 Longlistselector。
<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 ) );
这将起作用。
于 2013-12-18T16:00:16.623 回答
0
于 2013-12-18T13:03:42.677 回答