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)
531
if (dp.
_textBox
!= null)
534
if (string.IsNullOrEmpty(dp.
_textBox
.Text))
540
DateTime? date = dp.ParseText(dp.
_textBox
.Text);
589
if (dp.
_textBox
!= null)
591
dp.
_textBox
.Text = newValue;
639
return
_textBox
;
669
if (
_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));
714
if (
_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);
818
if (
_textBox
!= null)
820
return
_textBox
.HasEffectiveKeyboardFocus;
837
if ((!e.Handled) && (picker.
_textBox
!= null))
841
picker.
_textBox
.Focus();
844
else if (e.OriginalSource == picker.
_textBox
)
846
picker.
_textBox
.SelectAll();
1184
if (this.
_textBox
!= null)
1186
if (!string.IsNullOrEmpty(this.
_textBox
.Text))
1188
string s = this.
_textBox
.Text;
1277
if (this.
_textBox
!= null)
1287
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString());
1293
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString());
1312
this.SetValueNoCallback(DatePicker.TextProperty, this.
_textBox
.Text);