我的Windows Phone应用程序中有一个简单的PopUp窗口,它在小时候占用另一个窗口:
private static MeterChangeDialog_Popup _instance = null;
private static Popup _meterchangepop;
private MeterChangeDialog_Popup()
{
_meterchangepop = new Popup();
}
public static MeterChangeDialog_Popup GetInstance()
{
if (_instance == null)
{
_instance = new MeterChangeDialog_Popup();
}
return _instance;
}
public void OpenClosePopup()
{
if (_meterchangepop.IsOpen)
{
_meterchangepop.IsOpen = false;
SingletonContainer.GetInstance().MeterChangeCurrentSelected = null;
}
else
{
_meterchangepop.IsOpen = true;
_meterchangepop.Child = new MeterChangePage();
}
}
但是当这个窗口打开时,我仍然可以在它后面的窗口做一些东西,我不应该这样做。 我可以以某种方式禁用PopUp窗口后面的每个窗口吗?