3 types derived from TextBox
PresentationFramework (1)
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
21
public sealed partial class DatePickerTextBox :
TextBox
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
19
internal class StringEditor :
TextBox
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
1552
sealed class PropertyValueTextBox :
TextBox
5 instantiations of TextBox
PresentationFramework (5)
src\Framework\MS\Internal\Ink\TextClipboardData.cs (1)
96
TextBox textBox = new
TextBox
();
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
198
TextBox textBox = new
TextBox
();
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
102
TextBox textBox = new
TextBox
();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9945
bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.
TextBox
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1593
case KnownElements.TextBox: o = new System.Windows.Controls.
TextBox
(); break;
159 references to TextBox
PresentationFramework (108)
src\Framework\MS\Internal\Documents\TextBoxView.cs (6)
3063
BaseValueSource textAlignmentSource = DependencyPropertyHelper.GetValueSource(host,
TextBox
.TextAlignmentProperty).BaseValueSource;
3064
BaseValueSource horizontalAlignmentSource = DependencyPropertyHelper.GetValueSource(host,
TextBox
.HorizontalContentAlignmentProperty).BaseValueSource;
3069
return (TextAlignment)host.GetValue(
TextBox
.TextAlignmentProperty);
3074
o = host.GetValue(
TextBox
.HorizontalContentAlignmentProperty);
3083
o = host.GetValue(
TextBox
.HorizontalContentAlignmentProperty);
3088
return (TextAlignment)host.GetValue(
TextBox
.TextAlignmentProperty);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
555
Invariant.Assert(element is TextBlock || element is FlowDocument || element is
TextBox
,
577
Invariant.Assert(element is TextBlock || element is FlowDocument || element is
TextBox
,
674
Invariant.Assert(element is TextBlock || element is FlowDocument || element is
TextBox
,
src\Framework\MS\Internal\Helper.cs (1)
1498
if (dp !=
TextBox
.TextProperty)
src\Framework\MS\Internal\Ink\TextClipboardData.cs (1)
96
TextBox
textBox = new TextBox();
src\Framework\MS\Internal\Text\TextProperties.cs (2)
279
TextBox
textBox = element as
TextBox
;
src\Framework\System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (2)
76
TextBox
textBox = owner.EditableTextBoxSite;
103
TextBox
tb = owner.EditableTextBoxSite;
src\Framework\System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
68
TextBox
tb = owner.TextBox;
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (9)
24
public TextBoxAutomationPeer(
TextBox
owner): base(owner)
59
TextBox
owner = (
TextBox
)Owner;
78
TextBox
owner = (
TextBox
)Owner;
87
TextBox
owner = (
TextBox
)Owner;
97
TextBox
owner = (
TextBox
)Owner;
src\Framework\System\Windows\Controls\ComboBox.cs (5)
38
[TemplatePart(Name = "PART_EditableTextBox", Type = typeof(
TextBox
))]
388
TextBox
.IsReadOnlyProperty.AddOwner(typeof(ComboBox));
1646
EditableTextBoxSite = GetTemplateChild(EditableTextBoxTemplateName) as
TextBox
;
1915
internal
TextBox
EditableTextBoxSite
2038
private
TextBox
_editableTextBoxSite;
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (4)
198
TextBox
textBox = new TextBox();
201
ApplyBinding(textBox,
TextBox
.TextProperty);
220
TextBox
textBox = editingElement as
TextBox
;
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (8)
63
Style style = new Style(typeof(
TextBox
));
65
style.Setters.Add(new Setter(
TextBox
.BorderThicknessProperty, new Thickness(0.0)));
66
style.Setters.Add(new Setter(
TextBox
.PaddingProperty, new Thickness(0.0)));
102
TextBox
textBox = new TextBox();
107
ApplyBinding(textBox,
TextBox
.TextProperty);
169
TextBox
textBox = editingElement as
TextBox
;
240
private static bool PlaceCaretOnTextBox(
TextBox
textBox, Point position)
src\Framework\System\Windows\Controls\DatePicker.cs (7)
629
internal
TextBox
TextBox
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));
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);
src\Framework\System\Windows\Controls\DeferredTextReference.cs (2)
48
TextBox
tb = _textContainer.Parent as
TextBox
;
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2096
SetValue(
TextBox
.AcceptsTabProperty, false);
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
279
TextBox
.MaxLengthProperty.AddOwner(typeof(PasswordBox));
src\Framework\System\Windows\Controls\TextBlock.cs (1)
2929
if (!(position is TextPointer) || ((TextPointer)position).Parent == null || ((TextPointer)position).Parent is
TextBox
)
src\Framework\System\Windows\Controls\TextBox.cs (33)
55
DefaultStyleKeyProperty.OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(typeof(
TextBox
)));
56
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
TextBox
));
61
HeightProperty.OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(callback));
62
MinHeightProperty.OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(callback));
63
MaxHeightProperty.OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(callback));
64
FontFamilyProperty.OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(callback));
65
FontSizeProperty.OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(callback));
72
typographyProperties[i].OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(onTypographyChanged));
75
HorizontalScrollBarVisibilityProperty.OverrideMetadata(typeof(
TextBox
), new FrameworkPropertyMetadata(
94
TextEditor.RegisterCommandHandlers(typeof(
TextBox
), /*acceptsRichContent:*/false, /*readOnly*/false, /*registerEventListeners*/false);
612
typeof(
TextBox
),
642
typeof(
TextBox
), // Property owner
667
typeof(
TextBox
), // Property owner
692
typeof(
TextBox
), // Property owner
724
typeof(
TextBox
), // Property owner
759
typeof(
TextBox
), // Property owner
778
public static readonly DependencyProperty TextAlignmentProperty = Block.TextAlignmentProperty.AddOwner(typeof(
TextBox
));
962
typeof(
TextBox
),
1016
FrameworkPropertyMetadata fmetadata = e.Property.GetMetadata(typeof(
TextBox
)) as FrameworkPropertyMetadata;
1021
if (e.IsAValueChange || e.IsASubPropertyChange || e.Property ==
TextBox
.TextAlignmentProperty)
1489
TextBox
textBox = d as
TextBox
;
1535
TextBox
textBox = (
TextBox
)d;
1545
TextBox
textBox = (
TextBox
)d;
1601
bool hasExpression = HasExpression(LookupEntry(
TextBox
.TextProperty.GlobalIndex),
TextBox
.TextProperty);
1785
if (d is
TextBox
)
1787
((
TextBox
)d).OnTextWrappingChanged();
1928
TextBox
textbox = (
TextBox
)d;
src\Framework\System\Windows\Controls\ToolBar.cs (1)
500
else if (feType == typeof(
TextBox
))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (2)
937
if (dp == System.Windows.Controls.
TextBox
.TextProperty && IsReflective && !IsInBindingExpressionCollection)
967
if (TargetProperty == System.Windows.Controls.
TextBox
.TextProperty && IsReflective && !IsInBindingExpressionCollection)
src\Framework\System\windows\Documents\TextEditor.cs (2)
1072
return _uiScope == null ? 0 : (int)_uiScope.GetValue(
TextBox
.MaxLengthProperty);
1084
return _uiScope == null ? CharacterCasing.Normal : (CharacterCasing)_uiScope.GetValue(
TextBox
.CharacterCasingProperty);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
295
_textEditor.UiScope,
TextBox
.TextProperty);
src\Framework\System\Windows\Documents\TextSchema.cs (1)
812
typeof(
TextBox
).IsAssignableFrom(parentType) ||
src\Framework\System\Windows\FrameworkCompatibilityPreferences.cs (1)
404
/// controls (<see cref="System.Windows.Controls.
TextBox
"/> and <see cref="System.Windows.Controls.RichTextBox"/>)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
731
case 639: t = () => typeof(
TextBox
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (9)
3613
Type type = typeof(System.Windows.Controls.
TextBox
);
3614
DependencyProperty dp = System.Windows.Controls.
TextBox
.TextProperty;
3616
this.GetXamlType(typeof(System.Windows.Controls.
TextBox
)), // DeclaringType
7204
Type type = typeof(System.Windows.Controls.
TextBox
);
7205
DependencyProperty dp = System.Windows.Controls.
TextBox
.TextWrappingProperty;
7207
this.GetXamlType(typeof(System.Windows.Controls.
TextBox
)), // DeclaringType
7342
Type type = typeof(System.Windows.Controls.
TextBox
);
7343
DependencyProperty dp = System.Windows.Controls.
TextBox
.TextAlignmentProperty;
7345
this.GetXamlType(typeof(System.Windows.Controls.
TextBox
)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9943
typeof(System.Windows.Controls.
TextBox
),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
1911
return System.Windows.Controls.
TextBox
.TextProperty;
6183
case KnownElements.TextBox: t = typeof(System.Windows.Controls.
TextBox
); break;
System.Activities.Core.Presentation (11)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (7)
281
var
comboBoxTextBox = comboBox.Template.FindName("PART_EditableTextBox", comboBox) as
TextBox
;
297
TextBox
textBox = box as
TextBox
;
346
if (sender is
TextBox
)
348
BindingExpression binding = ((
TextBox
)sender).GetBindingExpression(
TextBox
.TextProperty);
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (2)
318
TextBox
textBox = (
TextBox
)sender;
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (2)
111
var
textBox = this.Template.FindName("PART_EditableTextBox", this) as
TextBox
;
System.Activities.Presentation (40)
System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (2)
26
TextBox
defaultDisplayNameBox;
165
this.defaultDisplayNameBox = this.Template.FindName("DisplayNameBox_570C5205_7195_4d4e_953A_8E4B57EF7E7F", this) as
TextBox
;
System.Activities.Presentation\System\Activities\Presentation\Annotations\FloatingAnnotationView.xaml.cs (1)
69
BindingExpression be = this.annotationTextBox.GetBindingExpression(
TextBox
.TextProperty);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyToolBar.cs (2)
184
internal
TextBox
SearchTextBox
185
{ get { return VisualTreeUtils.GetNamedChild<
TextBox
>(this, "PART_SearchTextBox"); } }
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (2)
83
internal
TextBox
searchBox;
231
this.searchBox = this.Template.FindName("PART_SearchBox", this) as
TextBox
;
System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewContainerStyleSelector.cs (1)
43
searchTextBinding.Path = new PropertyPath(
TextBox
.TextProperty);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (4)
70
{ typeof(
TextBox
), typeof(TextBoxBehavior) },
1240
TextBox
tb = control as
TextBox
;
1297
TextBox
textBox = identifierDesigner.IdentifierTextBox;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (3)
998
TextBox
textBox = e.OriginalSource as
TextBox
;
1001
BindingExpression textBinding = textBox.GetBindingExpression(
TextBox
.TextProperty);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (7)
196
var
zoomPickerTextBox = this.zoomPicker.Template.FindName("PART_EditableTextBox", this.zoomPicker) as
TextBox
;
205
zoomPickerTextBox.SetValue(
TextBox
.SelectionOpacityProperty, 0.0);
1225
var
zoomPickerTextBox = this.zoomPicker.Template.FindName("PART_EditableTextBox", zoomPicker) as
TextBox
;
1237
var
zoomPickerTextBox = this.zoomPicker.Template.FindName("PART_EditableTextBox", zoomPicker) as
TextBox
;
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (4)
51
TextBox
textBox;
119
this.textBox = this.inputComboBox.Template.FindName("PART_EditableTextBox", this.inputComboBox) as
TextBox
;
136
TextBox
inputTextBox = sender as
TextBox
;
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
352
string searchText = ((
TextBox
)sender).Text;
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (6)
39
TextBox
textBox;
61
internal
TextBox
IdentifierTextBox
98
this.IdentifierTextBox = sender as
TextBox
;
113
TextBox
textBox = sender as
TextBox
;
154
var binding = this.textBox.GetBindingExpression(
TextBox
.TextProperty);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (6)
93
TextBox
editingTextBox;
319
this.editingTextBox.GetBindingExpression(
TextBox
.TextProperty).UpdateSource();
660
TextBox
textbox = (
TextBox
)sender;
671
textbox.SetBinding(
TextBox
.TextProperty, binding);
685
int GetCharacterIndexFromPoint(
TextBox
textbox)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
234
if ((FocusManager.GetFocusedElement(this.view) as
TextBox
) != null)