Silverlight 3D 简单特效的实现

XAML代码实现:

  <!--渐变特效--> <StackPanel Margin="35">     <StackPanel.Background>         <LinearGradientBrush>             <GradientStop Color="White" Offset="0.0" />             <GradientStop Color="Green" Offset="1.0" />         </LinearGradientBrush>     </StackPanel.Background>         <!—投影特效-->     <StackPanel.Effect>         <DropShadowEffect  BlurRadius="20"                           Direction="220"                           Color="Black"                           Opacity="0.5"                           ShadowDepth="25"/>     </StackPanel.Effect>         <!-- 3D Effects 特效-->     <StackPanel.Projection>         <PlaneProjection RotationX="-30"  RotationZ="-10" RotationY="-40"/>     </StackPanel.Projection>         <TextBlock Margin="10" Text="Silverlight 3.0 3D Effect" FontSize="20"/>     <TextBlock Margin="10" Text="UserName:êo"/>     <TextBox Width="240"   Margin="10"/>     <TextBlock Margin="10" Text="Password:êo"/>     <PasswordBox Width="240" Margin="10"/>     <Button Margin="10" Content="Login"  Width="100" Height="30" /> </StackPanel>

  

posted @ 2012-07-25 21:02  net_miao  阅读(285)  评论(0编辑  收藏  举报