我在按钮单击事件中显示一个弹出窗口>我在该弹出窗口中保留了一个自定义用户控件,因此每当显示弹出窗口时,都会显示自定义用户控件。但现在我需要修改自定义控件。
弹出窗口中当前的自定义控件如下所示
但我需要角落看起来像下面的图片..如何做到这一点。?我需要在我的控制中使用那个尖角,并且每当显示弹出窗口时我都需要那个尖角点
下面是按钮及其弹出窗口的代码
<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>
下面是 XAML 中的示例:
<Grid Width="300" Height="200">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Background="Orange">
<!--Your content here-->
</Grid>
<Polygon Grid.Row="1"
Points="0,0 15,0, 0,30" Stroke="Orange" Fill="Orange" />
</Grid>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)