private void OpenWindowUC(string codeUC, Guid parentGuid) { var uc = this.GetUCFromCode(codeUC); ((VMUCBase)uc.DataContext).IsWindowMode = true; ((VMUCBase)uc.DataContext).UCParentGuid = parentGuid; UCWindow window = new UCWindow(uc); window.ShowDialog(); }