I'm working in a windows project(WPF). the situation is, i'm saving a few datas into a database from a popup window. after saving I want those values to be reflected in the main window.

How do I achieve it?
I would like to know, as to where the focus goes after the popup window is closed.
is there any way to track the focus ?