Ejemplo n.º 1
0
 public PatternsWebPagesDetailDlg(Window owner, PatternsWebPagesViewModel vm, MPatternWebPage item)
 {
     InitializeComponent();
     SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons();
     tbTitle.Focus();
     Owner                 = owner;
     vmDetail              = new PatternsWebPagesDetailViewModel(vm, item);
     DataContext           = vmDetail.ItemEdit;
     btnExisting.IsEnabled = btnNew.IsEnabled = vmDetail.ItemEdit.ID == 0;
 }
 async Task Edit(MPatternWebPage item) =>
 await Shell.Current.GoToModalAsync(nameof(PatternsWebPagesDetailPage), new PatternsWebPagesDetailViewModel(vm, item));