在Windows 8中有几种基本变换和矩阵变换和Silverlight中的使用方法都是一样。
包括: RotateTransform:旋转变换
ScaleTransform:缩放变换
SkewTransform:倾斜变换
TranslateTransform:移动变换
TransformGroup:变换组
MatrixTransform:矩阵变换
Stretch="Fill" Width="50" Source="iPhone_001.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_001.png" >
Stretch="Fill" Width="50" Source="iPhone_002.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_002.png">
Stretch="Fill" Width="50" Source="iPhone_003.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_003.png" >
Stretch="Fill" Width="50" Source="iPhone_004.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_004.png" >
Stretch="Fill" Width="50" Source="iPhone_005.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_005.png" >
Stretch="Fill" Width="50" Source="iPhone_001.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_001.png" >
Stretch="Fill" Width="50" Source="iPhone_002.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_002.png">
Stretch="Fill" Width="50" Source="iPhone_003.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_003.png" >
Stretch="Fill" Width="50" Source="iPhone_004.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_004.png" >
Stretch="Fill" Width="50" Source="iPhone_005.png" Opacity=".3"/>
Stretch="Fill" Width="50" Source="iPhone_005.png" >
VerticalAlignment="Top" Height="16" Width="206"/>
VerticalAlignment="Top" Height="16" Width="206"/>
VerticalAlignment="Top" Width="232"/>
AppBar代码如下:
private void appBarAdd_Click(object sender, RoutedEventArgs e)
{
this.tbText.Text = "点击了添加按钮!";
}
private void appBarDelete_Click(object sender, RoutedEventArgs e)
{
this.tbText.Text = "点击了删除按钮!";
}
private void AppBarMore_Click(object sender, RoutedEventArgs e)
{
this.tbText.Text = "点击了更多按钮!";
}
最后效果如下两图,并且如需源码请点击 Win8Control_jb51.net.rar 下载