Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果设置 popup 的 IsLightDismissEnabled = true ,当 popup 显示时,popup 将获得焦点,其他控件将失去焦点。我的问题:我怎样才能保持焦点;当弹出显示?
在我看来,这是违反直觉的。 IsLightDismissEnabled实际上意味着“显示此弹出窗口,但一旦失去焦点就隐藏它”。如果你没有给你的弹出焦点,或者以编程方式将焦点设置到另一个控件,它会显示直到你继续与你的表单交互,或者根本不显示(不确定是哪个,我没有检查过)
IsLightDismissEnabled