Silverlight 3D 简单特效的实现
<div id="cnblogs_post_body">http://pic002.cnblogs.com/images/2012/423722/2012072520592216.jpgXAML代码实现:
<!--渐变特效--> <StackPanel Margin="35"> <StackPanel.Background> <LinearGradientBrush> <GradientStop Color="White" Offset="0.0" /> <GradientStop Color="Green" Offset="1.0" /> </LinearGradientBrush> </StackPanel.Background> <!&mdash;投影特效--> <StackPanel.Effect> <DropShadowEffectBlurRadius="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:&ecirc;o"/> <TextBox Width="240" Margin="10"/> <TextBlock Margin="10" Text="Password:&ecirc;o"/> <PasswordBox Width="240" Margin="10"/> <Button Margin="10" Content="Login"Width="100" Height="30" /> </StackPanel>
页:
[1]