60 references to DatePicker
PresentationFramework (60)
src\Framework\System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (4)
23
public DatePickerAutomationPeer(
DatePicker
owner)
30
private
DatePicker
OwningDatePicker
34
return this.Owner as
DatePicker
;
63
DatePicker
owner = OwningDatePicker;
src\Framework\System\Windows\Controls\DatePicker.cs (56)
27
[TemplatePart(Name =
DatePicker
.ElementRoot, Type = typeof(Grid))]
28
[TemplatePart(Name =
DatePicker
.ElementTextBox, Type = typeof(DatePickerTextBox))]
29
[TemplatePart(Name =
DatePicker
.ElementButton, Type = typeof(Button))]
30
[TemplatePart(Name =
DatePicker
.ElementPopup, Type = typeof(Popup))]
57
public static readonly RoutedEvent SelectedDateChangedEvent = EventManager.RegisterRoutedEvent("SelectedDateChanged", RoutingStrategy.Direct, typeof(EventHandler<SelectionChangedEventArgs>), typeof(
DatePicker
));
90
DefaultStyleKeyProperty.OverrideMetadata(typeof(
DatePicker
), new FrameworkPropertyMetadata(typeof(
DatePicker
)));
91
EventManager.RegisterClassHandler(typeof(
DatePicker
), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
92
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
DatePicker
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
93
KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(
DatePicker
), new FrameworkPropertyMetadata(false));
94
IsEnabledProperty.OverrideMetadata(typeof(
DatePicker
), new UIPropertyMetadata(new PropertyChangedCallback(OnIsEnabledChanged)));
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
));
416
typeof(
DatePicker
),
426
DatePicker
dp = d as
DatePicker
;
470
dp.OnSelectedDateChanged(new CalendarSelectionChangedEventArgs(
DatePicker
.SelectedDateChangedEvent, removedItems, addedItems));
484
DatePicker
dp = d as
DatePicker
;
511
typeof(
DatePicker
),
522
DatePicker
dp = d as
DatePicker
;
564
typeof(
DatePicker
),
574
DatePicker
dp = d as
DatePicker
;
577
if (!dp.IsHandlerSuspended(
DatePicker
.TextProperty))
596
dp.SetValueNoCallback(
DatePicker
.SelectedDateProperty, null);
830
DatePicker
picker = (
DatePicker
)sender;
1076
_calendar.SetBinding(Calendar.ForegroundProperty, GetDatePickerBinding(
DatePicker
.ForegroundProperty));
1077
_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(
DatePicker
.CalendarStyleProperty));
1078
_calendar.SetBinding(Calendar.IsTodayHighlightedProperty, GetDatePickerBinding(
DatePicker
.IsTodayHighlightedProperty));
1079
_calendar.SetBinding(Calendar.FirstDayOfWeekProperty, GetDatePickerBinding(
DatePicker
.FirstDayOfWeekProperty));
1080
_calendar.SetBinding(Calendar.FlowDirectionProperty, GetDatePickerBinding(
DatePicker
.FlowDirectionProperty));
1307
this.SetValueNoCallback(
DatePicker
.TextProperty, this._textBox.Text);