public void OnInitialize() { Title = "Edit slideshow"; ButtonBarCommands = new ObservableCollection<ICommand>(); ButtonBarCommands.Add(MoveLeft); ButtonBarCommands.Add(MoveRight); ButtonBarCommands.Add(Delete); View = new EditSlideshowDialogView() { DataContext = this }; }
partial void OnInitialize() { Title = "Edit slideshow"; DisplayCancelButton = false; SetCommandsTextAndDescription(); AddCommandsToButtonBar(); View = new EditSlideshowDialogView() { DataContext = this }; PropertyChanged += EditSlideshowDialog_PropertyChanged; }