private void Av_OnEmptySlotTapped(object sender, EmptySlotTapped e)
        {
            //enable create appointment button
            CreateAppointmentButton.IsEnabled = true;


            //show stack panel with date
            MessageSP.Visibility      = Visibility.Collapsed;
            SelectedDataSP.Visibility = Visibility.Visible;

            int slot = e.Slot;//e.Y % 4;



            int min  = ApointmetsView.slot[slot];
            int hour = e.Y / 4 + 8;

            Debug.WriteLine("houe+" + hour);
            DateTime dt = CalDate.Date.Value.DateTime;

            DateTime startDay;

            int newd = 0;

            if (dt.DayOfWeek == DayOfWeek.Sunday)
            {
                startDay = dt.AddDays(-6);
            }
            else
            {
                startDay = dt.AddDays(1 - (int)dt.DayOfWeek);
            }



            DateTime selectedDay = startDay.AddDays(e.X - 1);

            definitive = new DateTime(selectedDay.Year, selectedDay.Month, selectedDay.Day, hour, min, 00);

            SelectedDate.Date = definitive.Date;
            SelectedTime.Time = definitive.TimeOfDay;
        }
 private void Av_OnUsedSlotTapped(object sender, EmptySlotTapped e)
 {
     av.CleartHighLighted();
     av.HighLightSlot(e.X, e.Y);
 }