1 write to _textBox
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
707_textBox = GetTemplateChild(ElementTextBox) as DatePickerTextBox;
29 references to _textBox
PresentationFramework (29)
System\Windows\Controls\DatePicker.cs (29)
531if (dp._textBox != null) 534if (string.IsNullOrEmpty(dp._textBox.Text)) 540DateTime? date = dp.ParseText(dp._textBox.Text); 589if (dp._textBox != null) 591dp._textBox.Text = newValue; 639return _textBox; 669if (_textBox != null) 671_textBox.RemoveHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown)); 672_textBox.RemoveHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged)); 673_textBox.RemoveHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus)); 714if (_textBox != null) 716_textBox.AddHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown), true); 717_textBox.AddHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged), true); 718_textBox.AddHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus), true); 724_textBox.Text = this._defaultText; 730_textBox.Text = this.DateTimeToString((DateTime)this.SelectedDate); 818if (_textBox != null) 820return _textBox.HasEffectiveKeyboardFocus; 837if ((!e.Handled) && (picker._textBox != null)) 841picker._textBox.Focus(); 844else if (e.OriginalSource == picker._textBox) 846picker._textBox.SelectAll(); 1184if (this._textBox != null) 1186if (!string.IsNullOrEmpty(this._textBox.Text)) 1188string s = this._textBox.Text; 1277if (this._textBox != null) 1287this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString()); 1293this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString()); 1312this.SetValueNoCallback(DatePicker.TextProperty, this._textBox.Text);