This can be a achieved with a helper class that is often called a ViewModelLocator
.
public static class ViewModelLocator
{
private static Employee myEmployee = null;
public static Employee GetEmployee()
{
if (myEmployee == null)
myEmployee = new Employee();
return myEmployee;
}
}
In code behind of your pages:
DataContext = ViewModelLocator.GetEmployee();