public LayoutingDocumentControl(ProjectItemType type, string documentPath, ILayoutingDocumentViewModel viewModel) { InitializeComponent(); this.Loaded += LayoutingDocumentControl_Loaded; DataContext = viewModel; if (!string.IsNullOrEmpty(documentPath)) { viewModel.LoadDocument(type, documentPath); } }
public LayoutingDocumentControl(ILayoutingDocumentViewModel viewModel) : this(ProjectItemType.Unknown, null, viewModel) { }