コード例 #1
0
 public void ShowPage(IPageDialog dialog)
 {
     #region Колхоз на тему: по быстрому найти подходящий View
     string viewTypeName = dialog.GetType().FullName.Replace("ViewModel", "View");
     Type   viewType     = Type.GetType(viewTypeName);
     View = Activator.CreateInstance(viewType) as UserControl;
     #endregion
     this.dialog      = dialog;
     Title            = dialog.Title;
     View.DataContext = dialog;
 }
コード例 #2
0
 public void ShowPage(IPageDialog page)
 {
     page.UpdatePropertyes();
     CurrentPage.ShowPage(page);
 }