Link to home
Start Free TrialLog in
Avatar of chuang4630
chuang4630

asked on

How to close parent window from user control in WPF?

This is a WPF application:

I have to implement a user control, in which there are two buttons, "Add" and "Cancel".
The Add button has to open a new window, and load another user control to that window.
The Cancel button has to close this window.
The current window only load this single user control .

How do we achieve that?
ASKER CERTIFIED SOLUTION
Avatar of SAMIR BHOGAYTA
SAMIR BHOGAYTA
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chuang4630
chuang4630

ASKER

It works. Thanks