我创建了一个消息框用户控件,圆角如下图所示,但我无法为这个用户控件设置透明。请帮帮我。
非常感谢。
更新:
我按照您的指示进行了实现,但它仍然不透明,我认为背景的用户控件是白色的,请帮助我。以下是我的代码:
非常感谢。
更新:
我按照您的指示进行了实现,但它仍然不透明,我认为背景的用户控件是白色的,请帮助我。以下是我的代码:
<UserControl x:Class="Nanote.TestDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="200"
Height="200" Width="450"
d:DesignWidth="300"
mc:Ignorable="d">
<Border CornerRadius="20" BorderBrush="Black" BorderThickness="10"
Background="Transparent">
<Rectangle Fill="White" Margin="10" />
</Border>
</UserControl>