Custom design of a popup in wpf using c# (telerik )(使用 c# (telerik) 在 wpf 中自定义弹出窗口的设计)
问题描述
I am showing an pop up in a button click event> I have kept a custom user control inside that popup and so whenever the pop is being shown taht custom usercontrol will be displayed.But now i need to modify the custom control . Current custom control inside popup looks like below
but i need the corner to be look like the below image.. How to do it.? I need that sharp corner in my control and i need that sharp corner point whenever the popup been shown
bolow the code of the button and its popup
<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>
Here is an example in 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>
这篇关于使用 c# (telerik) 在 wpf 中自定义弹出窗口的设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 c# (telerik) 在 wpf 中自定义弹出窗口的设计


- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 输入按键事件处理程序 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- C# 中多线程网络服务器的模式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01