- <Window x:Class="测试外发光.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="MainWindow" Height="350" Width="525">
- <Grid Background="Black" Height="325" Width="503">
- <Button Content="这是不发光的" Margin="152,59,268,219">
- </Button>
- <Button Content="这是发光的" Margin="152,123,268,156">
- <Button.Effect>
- <DropShadowEffect ShadowDepth="0"
- Color="White"
- Opacity="1"
- BlurRadius="20"/>
- </Button.Effect>
- </Button>
- </Grid>
- </Window>
.cs文件里没有代码啦,希望能给大家帮助。
|