private static void ClearMonthSelection(MonthViewElement currentMonth)
 {
     if (currentMonth.Calendar != null)
     {
         currentMonth.Calendar.SelectedDates.Clear();
     }
     for (int index = 0; index < currentMonth.TableElement.Children.Count; ++index)
     {
         CalendarCellElement child = currentMonth.TableElement.Children[index] as CalendarCellElement;
         if (child != null)
         {
             child.isChecked = false;
             child.Selected  = false;
         }
     }
 }
        private static void ClearMonthSelection(MonthViewElement currentMonth)
        {
            if (currentMonth.Calendar != null)
            {
                currentMonth.Calendar.SelectedDates.Clear();
            }

            for (int i = 0; i < currentMonth.TableElement.Children.Count; i++)
            {
                CalendarCellElement cell = currentMonth.TableElement.Children[i] as CalendarCellElement;
                if (cell != null)
                {
                    cell.isChecked = false;
                    cell.Selected  = false;
                }
            }
        }