64 references to DatePicker
PresentationFramework (64)
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (4)
22public DatePickerAutomationPeer(DatePicker owner) 29private DatePicker OwningDatePicker 33return this.Owner as DatePicker; 62DatePicker 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))] 56public static readonly RoutedEvent SelectedDateChangedEvent = EventManager.RegisterRoutedEvent("SelectedDateChanged", RoutingStrategy.Direct, typeof(EventHandler<SelectionChangedEventArgs>), typeof(DatePicker)); 89DefaultStyleKeyProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(typeof(DatePicker))); 90EventManager.RegisterClassHandler(typeof(DatePicker), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); 91KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 92KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(false)); 93IsEnabledProperty.OverrideMetadata(typeof(DatePicker), new UIPropertyMetadata(new PropertyChangedCallback(OnIsEnabledChanged))); 94LanguageProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnLanguageChanged))); 143typeof(DatePicker)); 166typeof(DatePicker), 171DatePicker dp = d as DatePicker; 199typeof(DatePicker), 209DatePicker dp = d as DatePicker; 217DatePicker dp = d as DatePicker; 245typeof(DatePicker), 255DatePicker dp = d as DatePicker; 264DatePicker dp = d as DatePicker; 291typeof(DatePicker), 315typeof(DatePicker), 320DatePicker dp = d as DatePicker; 338DatePicker dp = d as DatePicker; 365DatePicker dp = d as DatePicker; 393typeof(DatePicker)); 400DatePicker datePicker = (DatePicker)d; 401if (DependencyPropertyHelper.GetValueSource(datePicker, DatePicker.FirstDayOfWeekProperty).BaseValueSource == BaseValueSource.Default) 427typeof(DatePicker), 437DatePicker dp = d as DatePicker; 481dp.OnSelectedDateChanged(new CalendarSelectionChangedEventArgs(DatePicker.SelectedDateChangedEvent, removedItems, addedItems)); 495DatePicker dp = d as DatePicker; 522typeof(DatePicker), 533DatePicker dp = d as DatePicker; 575typeof(DatePicker), 585DatePicker dp = d as DatePicker; 588if (!dp.IsHandlerSuspended(DatePicker.TextProperty)) 607dp.SetValueNoCallback(DatePicker.SelectedDateProperty, null); 841DatePicker 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)); 1318this.SetValueNoCallback(DatePicker.TextProperty, this._textBox.Text);