1
我想显示自定义对话框多次使用下面的代码:未能显示自定义WPF对话框超过一次
TestWindow newTestWindow = new TestWindow(test);
newTestWindow.Owner = this;
newTestWindow.ShowDialog();
,我去运行上面的代码时,出现以下异常第2次:
我Specified element is already the logical child of another element. Disconnect it first.
绝对!你是对的,谢谢。我认为,当GC删除这些对象时,所有这些对象都会自动断开连接。 – Vitalij 2011-05-06 07:56:45