public WindowDocument(WindowedDocumentUIService owner, Window window, object documentContentView) {
     this.owner = owner;
     this.window = window;
     this.documentContentView = documentContentView;
     window.Closing += window_Closing;
     window.Closed += window_Closed;
 }
 public WindowDocument(WindowedDocumentUIService owner, IWindowSurrogate window, object documentContentView, string documentType) {
     this.owner = owner;
     Window = window;
     this.documentContentView = documentContentView;
     this.documentType = documentType;
     Window.Closing += window_Closing;
     Window.Closed += window_Closed;
 }
 public WindowDocument(WindowedDocumentUIService owner, IWindowSurrogate window, object documentContentView)
 {
     this.owner = owner;
     Window     = window;
     this.documentContentView   = documentContentView;
     Window.RealWindow.Closing += window_Closing;
     Window.RealWindow.Closed  += window_Closed;
 }