winui3教学提示打开或加载的何时可以检测什么事件

发布于 2025-02-02 05:21:38 字数 375 浏览 4 评论 0原文

我正在使用a Teachtip C#Winui3桌面应用中的控制。它大多是可以的,但是我似乎看不到控件打开(加载)或打开时触发的任何事件。

控制属性让我添加一个on负载事件,但没有触发。

对于添加这样的处理程序的任何指示都会感谢。我注意到,此控件的唯一列出的支持事件是:ActionButtonClick,CloseButtonClick,关闭并关闭。

非常感谢。

I am using a TeachingTip control in a C# WinUI3 desktop app. It mostly works OK, but I don't seem to see any event that is triggered when the control has opened (loaded) or is opening.

The control properties let me add an OnLoaded event, but that is not being triggered.

Would appreciate any pointers on adding such a handler. I note that the only listed supported events for this control are: ActionButtonClick, CloseButtonClick, Closed and Closing.

Thanks very much.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扎心 2025-02-09 05:21:38

您可以处理已加载 Teachtip的root Element:

<TeachingTip ...
    Title="..."
    Subtitle="...">
    <TextBlock Loaded="OnLoaded" />
</TeachingTip>

You could handle the Loaded event for the TeachingTip's root element:

<TeachingTip ...
    Title="..."
    Subtitle="...">
    <TextBlock Loaded="OnLoaded" />
</TeachingTip>
清风无影 2025-02-09 05:21:38

谢谢您的回复。我以为那是这样的事情,我可能最终会这样做。但是,目前,我正在使用点缀的处理程序来打开教学的元素。很高兴知道有多种方法可以使这只猫剥皮。

此致。

Thank you for your response. I had supposed it would be something like this, and I may end up doing that. However, at the moment I'm using the PointerPressed handler for the element that opens the TeachingTip. It's good to know there are multiple ways to skin this cat.

Best regards.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文