Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You have one ViewModel, which you pass from one form to another (set, for example, in the DataContext). By pressing a key in the second form, save what you need in the passed ViewModel and automatically this information will become available in the first form.
void button_click(object sender, RoutedEventArgs e)
{
var form = new Form2(){DataContext = DataContext};
form.ShowDialog();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question