分享

WPF .NET 4.0下实现外发光效果

 冷泉阁 2016-12-29
  1. <Window x:Class="测试外发光.MainWindow"  
  2.         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
  3.         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
  4.         Title="MainWindow" Height="350" Width="525">  
  5.     <Grid Background="Black" Height="325" Width="503">          
  6.         <Button Content="这是不发光的" Margin="152,59,268,219">  
  7.         </Button>  
  8.         <Button Content="这是发光的"  Margin="152,123,268,156">  
  9.             <Button.Effect>  
  10.                 <DropShadowEffect ShadowDepth="0"  
  11.                           Color="White"  
  12.                           Opacity="1"  
  13.                           BlurRadius="20"/>  
  14.             </Button.Effect>  
  15.         </Button>  
  16.     </Grid>  
  17. </Window>  

.cs文件里没有代码啦,希望能给大家帮助。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约