c# - 使用 c# (Telerik) 在 wpf 中的工具提示或鼠标悬停中显示弹出窗口

标签 c# wpf telerik

我需要在工具提示或鼠标悬停时显示弹出窗口,如下图所示。有可能这样做吗?如果有的话有教程吗?

当我将鼠标悬停在按钮或控件上时,我需要显示黄色背景弹出窗口,这可能吗?

最佳答案

您可以使用ToolTip,并将其Template修改为您想要的任何内容。

<Button Content="Press">
    <Button.ToolTip>
        <ToolTip>
            <ToolTip.Template>
                <ControlTemplate TargetType="ToolTip">
                    <Grid>
                        <TextBlock Text="Hi"/>
                        <Ellipse Fill="#FFDA1D1D" Stroke="#FFC3E625" StrokeThickness="2" Width="100" Height="100"></Ellipse>
                    </Grid>
                </ControlTemplate>
            </ToolTip.Template>
        </ToolTip>
    </Button.ToolTip>
</Button>

关于c# - 使用 c# (Telerik) 在 wpf 中的工具提示或鼠标悬停中显示弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36760867/

相关文章:

c# - 我有一个游戏的攻击链系统,但它很快就会变得非常复杂

html - Telerik RadButton 更改选项卡/焦点/事件上的文本颜色

javascript - 使用 Kendo Mobile,如何防止 View 滚动?

jquery - 如何在 Kendo Multi Select 上设置数据值?

c# - 为什么 ASCII.GetBytes 返回错误的字节

c# - 使用正则表达式修剪 html

c# - 是否可以更改 WPF 图像控件中图像插值的质量?

c# - 访问DependencyProperty : The calling thread cannot access this object because a different thread owns it

c# - SciChart 具有最小轴范围的实时缩放

wpf - 带 ItemsControl 的工具提示不会随 DataContext 更改而更新