如何在XBAP应用程序中实现模式窗口 [英] How to implement a modal window in an XBAP application

查看:104
本文介绍了如何在XBAP应用程序中实现模式窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个XBAP应用程序,该应用程序在页面中具有以下代码:

I have a XBAP application which has the following code in a Page:

Person newPerson = new Person();
PersonWindow personWindow = new PersonWindow(newPerson);            
personWindow.ShowDialog();

从XBAP页面调用此代码时,结果窗口的行为不像模式窗口.

When this code is invoked from a XBAP page, the resultant window does not behave like a modal window.

如何在不进行大量更改的情况下将其更改为类似行为?

How can it be changed to behave like one without a significant amount of changes?

推荐答案

似乎,您必须通过禁用所有其他窗口控件来自行实现模态". 这里是关于

It seems, that you have to implement the "modality" on your own, by disabling all the other window controls. Here goes the discussion of that

这篇关于如何在XBAP应用程序中实现模式窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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