WPF MVVM Picklist Example

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-04-08T13:11:14Z Indexed on 2010/04/08 13:13 UTC
Read the original article Hit count: 606

Filed under:
|
|
|

Hi, I am looking for a way of easily maintaining a list of Users belonging to a particular Group.
I have thought about using a Picklist, where I have 2 listboxs, the first contains a list of Users the second a list of Users belonging to the Group. There will be buttons to allow the adding and removing of selected Users from the Group. As users are added they move from the left listbox to the right, as they are removed they are move from the right to the list. This is pretty common situation.

Do you know of any examples of doing this in WPF using the MVVM pattern?

I am having difficulty understand how the binding may work to my View Model and Business Entities. Especially persisting the data back to the database. I am using stored procedure calls to do the CRUD logic, so I need to keep a list of which Users had been removed so I can delete them.

Is this the best way to perform this functionality or is there a better way. I simply want to pick from a list (the list may be large).

© Stack Overflow or respective owner

Related posts about wpf

Related posts about mvvm