In Outlook when you highlight a week, the Week calendar is set to focus, when a day is highlighted, the day calendar is set to focus, and when the entire month is selected the month calendar control is set to focus. I'm wondering how we can use the selectedDateRanges to determine when an entire month is selected or week, etc. I know I can count the number of days selected but Outlook seems to be more sophisticated than that as you can randomly select 7 dates and it will focus to the day control rather than when you click on a whole row and select the entire week.
What would you recommend to do determine which control should be selected when the dates selected changes?
Similar to Outlook, I have a toolbar w/ view options (Today, Day, Work Week, Week and Month) and on my tab I have a DayView, MonthView, MonthViewMulti and a WeekView. Selection from the toolbar shows the specific control. The only control that is always visible is the MonthViewMulti and when the selected day changes, I switch to DayView for that selected day. Because all of these controls are linked to the same ultracalenderinfo control, they all get along quite nice. If I am in the day view and I select other days from the MonthViewMulti, viola the Day View shows another day (You can also use the control key and randomly select dates like you asked). Sorry to ramble but there are a whole lot of options from here, have you looked at the samples? It helped me get going in the direction I wanted.
I understand what you are saying but you are always going to the day view. My requirement is to work like Outlook where it opens the day, week, or month view depending upon what dates get selected in the MonthViewMulti view control.