public IDocument OpenDocument(Uri uri, ISledDocumentClient client) { var sd = SledDocument.Create(uri, client); sd.Read(); // Let the control do it itself; it will also // supply an icon if the document is readonly. sd.RegisterControl(); if (sd.Editor != null) { sd.Editor.FileDragDropped += SledDocumentEditorFileDragDropped; } return(sd); }