Silverlight中PlaneProjection做3D效果

下面的示例将 Projection 属性设置为 PlaneProjection,以便旋转 StackPanel,就好像它在三维空间中一样。

   <StackPanel Margin="35" Background="Gray">
        <StackPanel.Projection>
            <PlaneProjection RotationX="-35" RotationY="-35" RotationZ="15"  />
        </StackPanel.Projection>
        <TextBlock Margin="10">Type Something Below</TextBlock>
        <TextBox Margin="10"></TextBox>
        <Button Margin="10" Content="Click" Width="100" />
    </StackPanel>
所以想做3D效果的话PlaneProjection是很好的选择!
posted on 2009-10-14 17:23  若有似無  阅读(1592)  评论(0编辑  收藏  举报