Silverlight for Windows Phone Toolkit
http://silverlight.codeplex.com/releases/view/71550
TiltEffect 组件可实现按压下出现一角翘起的效果。
TiltEffect 的应用方法:引用Silverlight for Windows Phone Toolkit的DLL, 在XAML的头部加入toolkit:TiltEffect.IsTiltEnabled="True" 即可。
代码:
<phone:PhoneApplicationPage
Title="Explore Mars"
x:Class="MarsImageViewer.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
shell:SystemTray.IsVisible="True"
toolkit:TiltEffect.IsTiltEnabled="True"
OrientationChanged="PhoneApplicationPage_OrientationChanged">
Cedar