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)
536
if (dp.
_textBox
!= null)
539
if (string.IsNullOrEmpty(dp.
_textBox
.Text))
545
DateTime? date = dp.ParseText(dp.
_textBox
.Text);
594
if (dp.
_textBox
!= null)
596
dp.
_textBox
.Text = newValue;
644
return
_textBox
;
674
if (
_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));
719
if (
_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);
823
if (
_textBox
!= null)
825
return
_textBox
.HasEffectiveKeyboardFocus;
842
if ((!e.Handled) && (picker.
_textBox
!= null))
846
picker.
_textBox
.Focus();
849
else if (e.OriginalSource == picker.
_textBox
)
851
picker.
_textBox
.SelectAll();
1190
if (this.
_textBox
!= null)
1192
if (!string.IsNullOrEmpty(this.
_textBox
.Text))
1194
string s = this.
_textBox
.Text;
1283
if (this.
_textBox
!= null)
1293
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString());
1299
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString());
1318
this.SetValueNoCallback(DatePicker.TextProperty, this.
_textBox
.Text);