Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
setting focus on appropriate controls
posted

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?