Hi Rene,
I have attached a sample project with EditAppointmentDialog in order to demonstrate exactly what I meant in my previous post. Note that the DataContext of the dialog is of type
AppointmentDialogViewModel and it contains all the information for the currently edited/created appointment as well as the Resources/TimeMarkers/Categories set for the ScheduleView control. You can check all the properties of the
AppointmentDialogViewModel in the ShowDialog event handler as shown in the example. These properties are used for the bindings inside the Dialog.
So, the
ResourceTypes property of the
AppointmentDialogViewModel is bound to the ItemsSource of an ItemsControl:
and for each of the ResourceTypes there is a ComboBox in the ItemTemplate ( set inside the ItemTemplateSelector) which displays the Resources for the concrete ResourceType:
Actually this ComboBox shows the Resources for the "Status" ResourceType.
I hope this clears things up.
Regards,
Yana
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application.
Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>