我正在按钮单击事件中显示一个弹出窗口。我在该弹出窗口中放置了一个自定义用户控件,因此每当弹出窗口显示时,该自定义用户控件将被显示。但现在我需要修改自定义控件。
当前弹出窗口中的自定义控件如下所示:
但我希望角落看起来像下面的图片。怎么做呢?我需要在我的控件中有那个尖锐的角落,并且每当弹出窗口显示时,我需要那个尖锐的角点。
以下是按钮及其弹出窗口的代码
<telerik:RadButton Name="btnH" Grid.Column="1" HorizontalAlignment="Left" Margin="444,56,0,0" Grid.Row="2" VerticalAlignment="Top"
Width="23" Height="23" BorderThickness="6" BorderBrush="#4E4E4E" Click="btnH_Click" >
<Image Source="Images/help.png" />
</telerik:RadButton>
<Popup PopupAnimation="Fade" Placement="Mouse" AllowsTransparency="True" StaysOpen="False" x:Name="TooltipPopup" >
<Border Background="AntiqueWhite" CornerRadius="0" BorderThickness="1">
<StackPanel Margin="1" Orientation="Horizontal" >
<local:UCToolTip></local:UCToolTip>
</StackPanel>
</Border>
</Popup>
Border
控件中删除Background="AntiqueWhite"
- Glen Thomas