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?
We did a sample for this (see the 'UltraWinSchedule Outlook CS' sample which is included with the SDK) that derived a class from UltraMonthViewMulti and reimplemented the ISelectionManager interface to emulate the selection behavior you describe here. It is a bit of a hack (which is basically true for MS Outlook as well) but it comes pretty close to MS Outlook.
I was only using the dayview as an example to answer your randomly selected date question. What ended up being the easiest for me was to go through some of the samples just to get a feel for the controls and then sit down w/ outlook and vs open and went to work. The easiest thing to do is set up a form w/ all of the above mentioned calender controls visible and linked to the same ultracalenderinfo and play around with it.
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.
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.