Right now, I have attached properties added to the month calendar control and based on the dates that are selected, i am switching the different schedule views and clearing the visible days and updating it with the selected date range.
Please Suggest.
Thanks in advance,
Hariharan
Also, I need to display multiple resources , which means multiple calendars. Do i need to set CurrentUser and CalendarGroupCollections? Shouldn't it internally populate the calendar groups based on the resource calendars?In my case, since its a wrapped user control, there is no direct way for me to set those.
Thank You,
hariharan019 said: My Bad. Let me give you more details. So I wrapped the XamOutlookCalendarView into my own user control and the UC has three dependency proeprties which are of type IEnumerable for Resources,ResourceCalendars and Appointments. These are inturn bound to ListScheduleDataConnector. Here is the pseudo code:: UC.xaml.cs: DP - IEnumerable Resources DP - IEnumerable ResourceCalendars DP - IEnumerable Appointments UC.xaml: <Schedules:ListScheduleDataConnector HorizontalAlignment="Left" Name="listScheduleDataConnector1" VerticalAlignment="Top" ResourceItemsSource="{Binding ResourceMembers, Mode=TwoWay}" ResourceCalendarItemsSource="{Binding ResourceCalendars, Mode=TwoWay}" AppointmentItemsSource="{Binding Appointments, Mode=TwoWay}"> Now my main view has my custom UC in it and binds values for all three lists. But I do not see any calendars in the UI and the messges from my previous post are shown in the output window. <Controls:UC DateNavigator="{Binding ElementName=dateNavigator}" ResourceMembers="{Binding WorkQueueFilterList}" Grid.Column="1" ResourceCalendars="{Binding ResourceCalendars}"/
My Bad. Let me give you more details. So I wrapped the XamOutlookCalendarView into my own user control and the UC has three dependency proeprties which are of type IEnumerable for Resources,ResourceCalendars and Appointments. These are inturn bound to ListScheduleDataConnector.
Here is the pseudo code::
UC.xaml.cs:
DP - IEnumerable Resources
DP - IEnumerable ResourceCalendars
DP - IEnumerable Appointments
UC.xaml:
Now my main view has my custom UC in it and binds values for all three lists. But I do not see any calendars in the UI and the messges from my previous post are shown in the output window.
My Bad. Let me give you more details. So I wrapped the XamOutlookCalendarView inot my own user control and the UC has three dependency proeprties which are of type IEnumerable for Resources,ResourceCalendars and Appointments. These are inturn bound to ListScheduleDataConnector.
<Schedules:ListScheduleDataConnector HorizontalAlignment="Left" Name="listScheduleDataConnector1" VerticalAlignment="Top" ResourceItemsSource="{Binding ResourceMembers, Mode=TwoWay}" ResourceCalendarItemsSource="{Binding ResourceCalendars, Mode=TwoWay}" AppointmentItemsSource="{Binding Appointments, Mode=TwoWay}">
<Controls:OSScheduler DateNavigator="{Binding ElementName=dateNavigator}" ResourceMembers="{Binding WorkQueueFilterList}" Grid.Column="1" ResourceCalendars="{Binding ResourceCalendars}"/
Is this when using the xamOutlookCalendarView or just in general? Those errors are meant to indicate missing information that is required for the controls to be used. In this case it's indicating that the CurrentUserId of the xamScheduleDataManager you are using has not been set and there are no CalendarGroup instance in the CalendarGroups collection. The latter would only be needed if you wanted to display multiple calendars.
I get the following errors when i bind the collections to the resources and resourcecalendars of the ListScheduleDataConnector.
XamDayView contains no visible calendars. Either set the XamDayView.DataManager.CurrentUserID to a ResourceID with a PrimaryCalendar or add CalendarGroups, containing visible ResourceCalendars, to the XamDayView.DataManager.CalendarGroups collection or the XamDayView.CalendarGroupsOverride collection. XamScheduleView contains no visible calendars. Either set the XamScheduleView.DataManager.CurrentUserID to a ResourceID with a PrimaryCalendar or add CalendarGroups, containing visible ResourceCalendars, to the XamScheduleView.DataManager.CalendarGroups collection or the XamScheduleView.CalendarGroupsOverride collection. XamMonthView contains no visible calendars. Either set the XamMonthView.DataManager.CurrentUserID to a ResourceID with a PrimaryCalendar or add CalendarGroups, containing visible ResourceCalendars, to the XamMonthView.DataManager.CalendarGroups collection or the XamMonthView.CalendarGroupsOverride collection. XamScheduleDataManager.CurrentUserId was not set. Reminders will not be displayed.
Am i Missing anything?