1 write to _textBox
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
708_textBox = GetTemplateChild(ElementTextBox) as DatePickerTextBox;
29 references to _textBox
PresentationFramework (29)
System\Windows\Controls\DatePicker.cs (29)
532if (dp._textBox != null) 535if (string.IsNullOrEmpty(dp._textBox.Text)) 541DateTime? date = dp.ParseText(dp._textBox.Text); 590if (dp._textBox != null) 592dp._textBox.Text = newValue; 640return _textBox; 670if (_textBox != null) 672_textBox.RemoveHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown)); 673_textBox.RemoveHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged)); 674_textBox.RemoveHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus)); 715if (_textBox != null) 717_textBox.AddHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown), true); 718_textBox.AddHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged), true); 719_textBox.AddHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus), true); 725_textBox.Text = this._defaultText; 731_textBox.Text = this.DateTimeToString((DateTime)this.SelectedDate); 819if (_textBox != null) 821return _textBox.HasEffectiveKeyboardFocus; 838if ((!e.Handled) && (picker._textBox != null)) 842picker._textBox.Focus(); 845else if (e.OriginalSource == picker._textBox) 847picker._textBox.SelectAll(); 1185if (this._textBox != null) 1187if (!string.IsNullOrEmpty(this._textBox.Text)) 1189string s = this._textBox.Text; 1278if (this._textBox != null) 1288this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString()); 1294this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString()); 1313this.SetValueNoCallback(DatePicker.TextProperty, this._textBox.Text);