I have a custom appointment object that needs to store resources of a certain type, for this I have an observablecollection.
Now I have my combobox with my resources in the editappointment window.
Jobb job = new Jobb()
{ StandardTid = 30, UppskattatPris = 250, ResourceName = "Klippning", DisplayName = "Klippning", ResourceType="Jobb" };
Jobb job2 = new Jobb()
{ StandardTid = 120, UppskattatPris = 650, ResourceName = "Färgning", DisplayName = "Färgning", ResourceType = "Jobb" };
ResourceType jobbet = new ResourceType("Jobb");
jobbet.Resources.Add(job);
jobbet.Resources.Add(job2);
jobbet.AllowMultipleSelection = true;
ResourceTypeCollection resourcetypelist = new ResourceTypeCollection();
resourcetypelist.Add(jobbet);
bokningView.ResourceTypesSource = resourcetypelist;
This shows up Ok. But how do i bind the selections from this combobox to my collection in my custom appointment ?