added DetachAll method to PartyContext and set design-time DataContext type for current views.