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