Esempio n. 1
0
 private void Cell_MouseLeave(object sender, MouseEventArgs e)
 {
     if (_isMouseLeftButtonDown)
     {
         CalendarDayButton b = sender as CalendarDayButton;
         //The button is in Pressed state. Change the state to normal.
         b.ReleaseMouseCapture();
         //null check is added for unit tests
         if (_downEventArg != null)
         {
             b.SendMouseUpEvent(_downEventArg);
         }
         this._lastCalendarDayButton = b;
     }
 }