protected override PropertyGroupViewModel CreatePropertyGroup(string tag, string translatedTag, DataObjectViewModel.PropertyGroupCollection lst) { if (tag == "Main") { return(UICreator.CustomPropertyGroup(tag, translatedTag, new[] { UICreator.StackPanel(new ViewModel[] { UICreator.GroupBox(PartiesResources.Person_MainGroupLabel, new [] { UICreator.Grid(new [] { new GridPanelViewModel.Cell(0, 0, UICreator.StackPanel(new [] { PropertyModelsByName["Gender"], PropertyModelsByName["PersonalTitle"], PropertyModelsByName["FirstName"], PropertyModelsByName["MiddleName"], PropertyModelsByName["LastName"], PropertyModelsByName["Suffix"], PropertyModelsByName["BirthDate"], })), new GridPanelViewModel.Cell(0, 1, PropertyModelsByName["Comment"]), }), }), UICreator.GroupBox(PartiesResources.ContactGroupLabel, new [] { PropertyModelsByName["EMail"], PropertyModelsByName["Phone"], PropertyModelsByName["Mobile"], PropertyModelsByName["Fax"], }), UICreator.GroupBox(PartiesResources.AddressesGroupLabel, new [] { PropertyModelsByName["Address"], PropertyModelsByName["InvoiceAddress"], PropertyModelsByName["DeliveryAddresses"], }), UICreator.GroupBox(PartiesResources.OtherGroupLabel, new [] { PropertyModelsByName["BankAccount"], }), }), })); } else { return(base.CreatePropertyGroup(tag, translatedTag, lst)); } }