1

        ChildWindow1 wnd1 = new ChildWindow1();
        ChildWindow2 wnd2 = new ChildWindow2();


        wnd1.Show();

        //**Is there a way to pause thread here until wnd1 is closed???** 

        wnd2.Show();

4

2 回答 2

3

使用这样的代码:-

 ChildWindow1 wnd1 = new ChildWindow1;
 wnd1.Closed += (s, args) =>
 {
    ChildWindow2 wnd2 = new ChildWindow2;
    wnd2.Show();
 }
 wnd1.Show();

 // Note code here will run as soon as wnd1 has displayed, Show does not block.
于 2010-03-31T10:11:23.767 回答
-1

我假设您正在谈论模态子窗口。是的,它可能而且非常简单。使用 Silverlight ToolKit @ http://silverlight.codeplex.com/中的子窗口控件。

于 2010-03-31T09:58:11.993 回答