This will use the DataContext of your Window as the binding source instead of the current DataContext.
Up vote 2 down vote favorite 1 share g+ share fb share tw.
I'm creating a form using WPF with MVVM. There I have my View with its DataSource bound to my ViewModel object. Great.
In my xaml, I have an ItemsControl with its ItemSource bound to ViewModel. MyCollectionOfFoo. For every Foo object in this collection, I'm creating a control with bindings to this foo object, but I also need to bind a Command to every one of them.
This Command is a property of my ViewModel object (witch is the DataSource of the View). Since I'm inside the ItemsControl, how to get the reference to the ViewModel. DoSomethingCommand?
It's like binding to a property of another's control binding... Thanks, André Carlucci c# wpf data-binding link|improve this question asked Dec 4 '09 at 12:53andrecarlucci1,2761123 71% accept rate.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.