This is a migrated thread and some comments may be shown as answers.

Close Parent Window when opening Child window using MVVM

1 Answer 112 Views
Window
This is a migrated thread and some comments may be shown as answers.
Laura Edwards
Top achievements
Rank 1
Laura Edwards asked on 09 Aug 2010, 07:51 PM
Hi,

I am trying to open a rad window using a hyperlink button that is in a rad window. Is there a way to close the current/parent window when I open the new window? I am using MVVM and am unsure how to get the reference to the parent window. Any help would be great.

1 Answer, 1 is accepted

Sort by
0
Laura Edwards
Top achievements
Rank 1
answered on 11 Aug 2010, 09:43 PM
Nevermind I figured it out. I just subscribed to an action in the code behind of the window, and then set the action to close in the view model.
Tags
Window
Asked by
Laura Edwards
Top achievements
Rank 1
Answers by
Laura Edwards
Top achievements
Rank 1
Share this question
or