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)
532
if (dp.
_textBox
!= null)
535
if (string.IsNullOrEmpty(dp.
_textBox
.Text))
541
DateTime? date = dp.ParseText(dp.
_textBox
.Text);
590
if (dp.
_textBox
!= null)
592
dp.
_textBox
.Text = newValue;
640
return
_textBox
;
670
if (
_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));
715
if (
_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);
819
if (
_textBox
!= null)
821
return
_textBox
.HasEffectiveKeyboardFocus;
838
if ((!e.Handled) && (picker.
_textBox
!= null))
842
picker.
_textBox
.Focus();
845
else if (e.OriginalSource == picker.
_textBox
)
847
picker.
_textBox
.SelectAll();
1185
if (this.
_textBox
!= null)
1187
if (!string.IsNullOrEmpty(this.
_textBox
.Text))
1189
string s = this.
_textBox
.Text;
1278
if (this.
_textBox
!= null)
1288
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString());
1294
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString());
1313
this.SetValueNoCallback(DatePicker.TextProperty, this.
_textBox
.Text);