1 write to _textBox
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
712_textBox = GetTemplateChild(ElementTextBox) as DatePickerTextBox;
29 references to _textBox
PresentationFramework (29)
System\Windows\Controls\DatePicker.cs (29)
536if (dp._textBox != null) 539if (string.IsNullOrEmpty(dp._textBox.Text)) 545DateTime? date = dp.ParseText(dp._textBox.Text); 594if (dp._textBox != null) 596dp._textBox.Text = newValue; 644return _textBox; 674if (_textBox != null) 676_textBox.RemoveHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown)); 677_textBox.RemoveHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged)); 678_textBox.RemoveHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus)); 719if (_textBox != null) 721_textBox.AddHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown), true); 722_textBox.AddHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged), true); 723_textBox.AddHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus), true); 729_textBox.Text = this._defaultText; 735_textBox.Text = this.DateTimeToString((DateTime)this.SelectedDate); 823if (_textBox != null) 825return _textBox.HasEffectiveKeyboardFocus; 842if ((!e.Handled) && (picker._textBox != null)) 846picker._textBox.Focus(); 849else if (e.OriginalSource == picker._textBox) 851picker._textBox.SelectAll(); 1190if (this._textBox != null) 1192if (!string.IsNullOrEmpty(this._textBox.Text)) 1194string s = this._textBox.Text; 1283if (this._textBox != null) 1293this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString()); 1299this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString()); 1318this.SetValueNoCallback(DatePicker.TextProperty, this._textBox.Text);