c# - Popup child window with ok and cancel buttons -


i've created simple dialog here list of people. want few simple things rather trivial in winforms. i'm struggling grasp how in wpf mvvm approach. me out please.

enter image description here

  1. when user hits add new person button, want dialog appear user can type in name , either hit ok or cancel. if user hits ok, appends person list. (keep in mind i'll add more edting fields users input, example last name...)

  2. when users has single item in list selected, want them give them ability click 'edit' button showing dialog similar 1 in previous step, pre populated selected items data, user can edit properties. depending on if hit ok or cancel changes committed.

dropbox solution: https://www.dropbox.com/s/8sjpabfod08yil5/adddeleteitems_basic.zip?dl=

the service pattern isn't way implement this, in following article show how using same data-driven mechanism used regular windows:

http://www.codeproject.com/articles/820324/implementing-dialog-boxes-in-mvvm


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -