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.
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...)
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
Post a Comment