한 번보다 더 많은 사용자 정의 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