SL 4转换为WPF帮助

时间:2011-01-07 06:45:01

标签: c# wpf silverlight-4.0

我在SL4中有这个代码块,任何人都可以帮我转换为WPF 4

感谢提前帮助,

    <Grid x:Name="UXLearn" RenderTransformOrigin="0.5,0.5">
     <Grid.Projection>
       <PlaneProjection LocalOffsetZ="40" />
     </Grid.Projection>
     <Grid.RenderTransform>
       <CompositeTransform ScaleX="0.96" ScaleY="0.96" />
     </Grid.RenderTransform>
     <TextBlock Margin="0,-110,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Learn Expression Blend" FontFamily="Fonts/Fonts.zip#Segoe WP Light" FontSize="20" TextWrapping="Wrap" Foreground="#FFFB8917">
       <TextBlock.Projection>
         <PlaneProjection />
       </TextBlock.Projection>
     </TextBlock>
   </Grid>

1 个答案:

答案 0 :(得分:2)

如果您只使用ScaleX和ScaleY,则应该能够使用ScaleTransform替换CompositeTransform。

对于Grid.Projection,请查看ViewPort3D