【发布时间】:2012-11-02 06:22:58
【问题描述】:
我是 WPF 技术的新手。我在 WPF 中有以下窗口声明:
<Window x:Class="CustomWindows.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="480" Width="640" ScrollViewer.VerticalScrollBarVisibility="Disabled" WindowStyle="None" AllowsTransparency="True">
<Window.Effect>
<DropShadowEffect BlurRadius="15" Direction="-90" RenderingBias="Quality" ShadowDepth="2"/>
</Window.Effect>
<Grid>
</Grid>
</Window>
但是当我运行它时,阴影没有出现。我该怎么办,或者错误在哪里?
【问题讨论】: