Cannot seem to communicate between views

Posted by devnet247 on Stack Overflow See other posts from Stack Overflow or by devnet247
Published on 2010-05-17T12:29:34Z Indexed on 2010/05/17 12:30 UTC
Read the original article Hit count: 199

Filed under:

Hi all

I have written a MVVM prototype as a learning exercise and I am struggling to understand how I can communicate between views.Let me explain

I have a treeview on the left (leftSideView)

ListView on the right (rightSideView)

MainWindow (includes the 2 views mentioned above and a splitter)

What I have implemented does not work and I would like you if you can point out where I am going wrong or if there is a better way of doing it. you can download the quick prototype from here

http://cid-9db5ae91a2948485.skydrive.live.com/self.aspx/.Public/WpfCommunicationBetweenViews.zip

For sure I am doing something wrong with the bindind. Also it would be nice to learn how you do it. EG ListBox on left (one view) ListView On the right (another view) how u communicate between the two.

Thanks a lot of any suggestions

© Stack Overflow or respective owner

Related posts about mvvm