阴影效果DropShadowEffect

复制代码
<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>
复制代码

 

posted @   西楼月光  阅读(419)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示