1 write to _textBox
PresentationFramework (1)
src\Framework\System\Windows\Controls\DatePicker.cs (1)
701
_textBox
= GetTemplateChild(ElementTextBox) as DatePickerTextBox;
29 references to _textBox
PresentationFramework (29)
src\Framework\System\Windows\Controls\DatePicker.cs (29)
525
if (dp.
_textBox
!= null)
528
if (string.IsNullOrEmpty(dp.
_textBox
.Text))
534
DateTime? date = dp.ParseText(dp.
_textBox
.Text);
583
if (dp.
_textBox
!= null)
585
dp.
_textBox
.Text = newValue;
633
return
_textBox
;
663
if (
_textBox
!= null)
665
_textBox
.RemoveHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown));
666
_textBox
.RemoveHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged));
667
_textBox
.RemoveHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus));
708
if (
_textBox
!= null)
710
_textBox
.AddHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown), true);
711
_textBox
.AddHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged), true);
712
_textBox
.AddHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus), true);
718
_textBox
.Text = this._defaultText;
724
_textBox
.Text = this.DateTimeToString((DateTime)this.SelectedDate);
812
if (
_textBox
!= null)
814
return
_textBox
.HasEffectiveKeyboardFocus;
831
if ((!e.Handled) && (picker.
_textBox
!= null))
835
picker.
_textBox
.Focus();
838
else if (e.OriginalSource == picker.
_textBox
)
840
picker.
_textBox
.SelectAll();
1179
if (this.
_textBox
!= null)
1181
if (!string.IsNullOrEmpty(this.
_textBox
.Text))
1183
string s = this.
_textBox
.Text;
1272
if (this.
_textBox
!= null)
1282
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.Get(SRID.DatePicker_WatermarkText), dtfi.LongDatePattern.ToString());
1288
this.
_textBox
.Watermark = string.Format(CultureInfo.CurrentCulture, SR.Get(SRID.DatePicker_WatermarkText), dtfi.ShortDatePattern.ToString());
1307
this.SetValueNoCallback(DatePicker.TextProperty, this.
_textBox
.Text);