阴影效果DropShadowEffect

时间:2015-10-02 23:38:31   收藏:0   阅读:191
<TextBlock FontSize="20" Margin="3">
 <TextBlock.Effect>
 <DropShadowEffect></DropShadowEffect>
 </TextBlock.Effect>
 <TextBlock.Text>Basic dropshadow</TextBlock.Text>
</TextBlock>
<TextBlock FontSize="20" Margin="3">
 <TextBlock.Effect>
 <DropShadowEffect Color="SlateBlue"></DropShadowEffect>
 </TextBlock.Effect>
 <TextBlock.Text>Light blue dropshadow</TextBlock.Text>
</TextBlock>
<TextBlock FontSize="20" Foreground="White" Margin="3">
 <TextBlock.Effect>
 <DropShadowEffect BlurRadius="15"></DropShadowEffect>
 </TextBlock.Effect>
 <TextBlock.Text>Blurred dropshadow with white text</TextBlock.Text>
</TextBlock>
<TextBlock FontSize="20" Foreground="Magenta" Margin="3">
 <TextBlock.Effect>
 <DropShadowEffect ShadowDepth="0"></DropShadowEffect>
 </TextBlock.Effect>
 <TextBlock.Text>Close dropshadow</TextBlock.Text>
</TextBlock>
<TextBlock FontSize="20" Foreground="LimeGreen" Margin="3">
 <TextBlock.Effect>
 <DropShadowEffect ShadowDepth="25"></DropShadowEffect>
 </TextBlock.Effect>
 <TextBlock.Text>Distant dropshadow</TextBlock.Text>
</TextBlock>

 

原文:http://www.cnblogs.com/xlyg-14/p/4852829.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!