WPF MVVM Get Parent from VIEW MODEL
Posted
by dnndeveloper
on Stack Overflow
See other posts from Stack Overflow
or by dnndeveloper
Published on 2010-05-03T20:59:39Z
Indexed on
2010/05/03
22:58 UTC
Read the original article
Hit count: 385
In a MVVM WPF application.
How do you set a second windows parent from the ViewModel?
example:
view1 viewModel1
viewModel1's command calls:
var view2 = new view2
view2.Owner = <----This is the problem area. How do I get view1 as the owner here from the viewModel?
view2.Show()
Thank you!
© Stack Overflow or respective owner