|
|
|
@ -1,16 +1,8 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Windows; |
|
|
|
using System.Windows.Controls; |
|
|
|
using System.Windows.Data; |
|
|
|
using System.Windows.Documents; |
|
|
|
using System.Windows.Input; |
|
|
|
using System.Windows.Media; |
|
|
|
using System.Windows.Media.Imaging; |
|
|
|
using System.Windows.Navigation; |
|
|
|
using System.Windows.Shapes; |
|
|
|
using System.Windows.Controls.Primitives; |
|
|
|
|
|
|
|
namespace Microsoft.Windows.Controls |
|
|
|
{ |
|
|
|
@ -149,6 +141,12 @@ namespace Microsoft.Windows.Controls |
|
|
|
_calendar.SelectedDate = SelectedDate; |
|
|
|
} |
|
|
|
|
|
|
|
protected override void OnPreviewMouseUp(MouseButtonEventArgs e) |
|
|
|
{ |
|
|
|
if (Mouse.Captured is CalendarItem) |
|
|
|
Mouse.Capture(null); |
|
|
|
} |
|
|
|
|
|
|
|
#endregion //Base Class Overrides
|
|
|
|
|
|
|
|
#region Event Handlers
|
|
|
|
|