[UWP]关闭TextBox的默认上下文弹出窗口 [英] [UWP] Closing default context flyout of TextBox

查看:94
本文介绍了[UWP]关闭TextBox的默认上下文弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在TextBox或RichTextBox显示之后关闭默认的上下文弹出窗口?

How do I close the default context flyout of TextBox or RichTextBox after it was already shown?

在我的场景中,所述TextBox的内容在某个时刻被叠加层覆盖,但是如果当时有任何上下文弹出窗口打开,它就不会消失并且仍然允许用户进行交互用现在看不见的控件。我如何解决这个问题?

In my scenario, contents of said TextBox get covered by an overlay at some point, but if there was any context flyout open at that time, it does not go away and still enabled the user to interact with the now invisible control. How do I fix that?

推荐答案

b
$
也许你可以给弹出一个名字并使用隐藏方法,以防你在TexbBox中使用它或者你可以用这种方式使用这种方式



Hi,

Maybe you can give the flyout a name and use the hide method and in case you're using it inside a TexbBox or something you can use this way

Flyout.GetAttachedFlyout(MyControl).Hide();


问候,

Regards,


这篇关于[UWP]关闭TextBox的默认上下文弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆