Thursday, 5 September 2013

WPF MVVM Multiple Windows Navigating the same datacollection

WPF MVVM Multiple Windows Navigating the same datacollection

I have a (non MVVM) WPF C# application that evaluates oil and gas wells
that I want to refactor to MVVM. One window shows the tabular information
and another window shows the graphical rendition of the same data. Both
have navigation buttons to move from well to well.
How can I have record selection changes in one window automatically change
the selected record and datagrid focus in the other window using MVVM
without having the ViewModels know the properties of the windows.
Currently Window One shares the listview selected item property of the
other Window.

No comments:

Post a Comment