Windows 8 メトロ アプリケーションでアニメーションのトランプを作成しようとしています。xaml で 2 つの四角形を使用し、変換して z オーダーを設定することで、見栄えの良いアニメーションを取得できることがわかりました。ただし、子画像(カードの表面用)をコンパイルできない長方形の1つに追加しようとすると、コンパイルできません。
radiusX radiusY プロパティを使用して角を丸めることができるように、長方形の内部で xaml イメージ タグを使用する方法はありますか?
回転を可能にするために私が使用しているものは次のとおりです( x 平面と z 平面の両方)
<Rectangle x:Name="cardRectBack" Stroke="{StaticResource HyperlinkPointerOverForegroundThemeBrush}" RadiusX="20" RadiusY="20" Tapped="cardRect_Tapped" RenderTransformOrigin="0.5,0.5">
<Rectangle.RenderTransform>
<RotateTransform x:Name="rotateCard"/>
</Rectangle.RenderTransform>
<Rectangle.Projection>
<!-- Apply a PlaneProjection to the image -->
<PlaneProjection x:Name="backYRot" RotationY="20"/>
</Rectangle.Projection>
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black"/>
<GradientStop Color="#FFBB4444" Offset="1"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>