Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
May I ask a simple question?
Can I transfer View to ModelView?

Cause I need to make sorting, filtering with collection (ObservableCollection in ListBox). Also delete, update selected items and change visibility for some objects.
I am beginner in this stuff. Thank you!
Posted

1 solution

You don't pass your View to the ViewModel.

The ViewModel is in actual fact the DataContext of your View. The you bind control to the properties on the ViewModel, i.e the ObservableCollection that you want to bind the ListBox to.

Read this for some more details.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900