64 references to DatePicker
PresentationFramework (64)
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (4)
22
public DatePickerAutomationPeer(
DatePicker
owner)
29
private
DatePicker
OwningDatePicker
33
return this.Owner as
DatePicker
;
62
DatePicker
owner = OwningDatePicker;
System\Windows\Controls\DatePicker.cs (60)
26
[TemplatePart(Name =
DatePicker
.ElementRoot, Type = typeof(Grid))]
27
[TemplatePart(Name =
DatePicker
.ElementTextBox, Type = typeof(DatePickerTextBox))]
28
[TemplatePart(Name =
DatePicker
.ElementButton, Type = typeof(Button))]
29
[TemplatePart(Name =
DatePicker
.ElementPopup, Type = typeof(Popup))]
56
public static readonly RoutedEvent SelectedDateChangedEvent = EventManager.RegisterRoutedEvent("SelectedDateChanged", RoutingStrategy.Direct, typeof(EventHandler<SelectionChangedEventArgs>), typeof(
DatePicker
));
89
DefaultStyleKeyProperty.OverrideMetadata(typeof(
DatePicker
), new FrameworkPropertyMetadata(typeof(
DatePicker
)));
90
EventManager.RegisterClassHandler(typeof(
DatePicker
), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
91
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
DatePicker
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
92
KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(
DatePicker
), new FrameworkPropertyMetadata(false));
93
IsEnabledProperty.OverrideMetadata(typeof(
DatePicker
), new UIPropertyMetadata(new PropertyChangedCallback(OnIsEnabledChanged)));
94
LanguageProperty.OverrideMetadata(typeof(
DatePicker
), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnLanguageChanged)));
143
typeof(
DatePicker
));
166
typeof(
DatePicker
),
171
DatePicker
dp = d as
DatePicker
;
199
typeof(
DatePicker
),
209
DatePicker
dp = d as
DatePicker
;
217
DatePicker
dp = d as
DatePicker
;
245
typeof(
DatePicker
),
255
DatePicker
dp = d as
DatePicker
;
264
DatePicker
dp = d as
DatePicker
;
291
typeof(
DatePicker
),
315
typeof(
DatePicker
),
320
DatePicker
dp = d as
DatePicker
;
338
DatePicker
dp = d as
DatePicker
;
365
DatePicker
dp = d as
DatePicker
;
393
typeof(
DatePicker
));
400
DatePicker
datePicker = (
DatePicker
)d;
401
if (DependencyPropertyHelper.GetValueSource(datePicker,
DatePicker
.FirstDayOfWeekProperty).BaseValueSource == BaseValueSource.Default)
427
typeof(
DatePicker
),
437
DatePicker
dp = d as
DatePicker
;
481
dp.OnSelectedDateChanged(new CalendarSelectionChangedEventArgs(
DatePicker
.SelectedDateChangedEvent, removedItems, addedItems));
495
DatePicker
dp = d as
DatePicker
;
522
typeof(
DatePicker
),
533
DatePicker
dp = d as
DatePicker
;
575
typeof(
DatePicker
),
585
DatePicker
dp = d as
DatePicker
;
588
if (!dp.IsHandlerSuspended(
DatePicker
.TextProperty))
607
dp.SetValueNoCallback(
DatePicker
.SelectedDateProperty, null);
841
DatePicker
picker = (
DatePicker
)sender;
1087
_calendar.SetBinding(Calendar.ForegroundProperty, GetDatePickerBinding(
DatePicker
.ForegroundProperty));
1088
_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(
DatePicker
.CalendarStyleProperty));
1089
_calendar.SetBinding(Calendar.IsTodayHighlightedProperty, GetDatePickerBinding(
DatePicker
.IsTodayHighlightedProperty));
1090
_calendar.SetBinding(Calendar.FirstDayOfWeekProperty, GetDatePickerBinding(
DatePicker
.FirstDayOfWeekProperty));
1091
_calendar.SetBinding(Calendar.FlowDirectionProperty, GetDatePickerBinding(
DatePicker
.FlowDirectionProperty));
1318
this.SetValueNoCallback(
DatePicker
.TextProperty, this._textBox.Text);