3 types derived from TextBox
PresentationFramework (1)
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
21public sealed partial class DatePickerTextBox : TextBox
PresentationUI (1)
MS\Internal\Documents\Application\PageTextBox.cs (1)
26internal sealed class PageTextBox : TextBox
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
35public class RibbonTextBox : TextBox, ICommandSource
5 instantiations of TextBox
PresentationFramework (5)
MS\Internal\Ink\TextClipboardData.cs (1)
89TextBox textBox = new TextBox();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
197TextBox textBox = new TextBox();
System\Windows\Controls\DataGridTextColumn.cs (1)
101TextBox textBox = new TextBox();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9949bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TextBox(); };
System\Windows\Markup\KnownTypes.cs (1)
1592case KnownElements.TextBox: o = new System.Windows.Controls.TextBox(); break;
130 references to TextBox
PresentationFramework (116)
MS\Internal\Documents\TextBoxView.cs (6)
3086BaseValueSource textAlignmentSource = DependencyPropertyHelper.GetValueSource(host, TextBox.TextAlignmentProperty).BaseValueSource; 3087BaseValueSource horizontalAlignmentSource = DependencyPropertyHelper.GetValueSource(host, TextBox.HorizontalContentAlignmentProperty).BaseValueSource; 3092return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty); 3097o = host.GetValue(TextBox.HorizontalContentAlignmentProperty); 3106o = host.GetValue(TextBox.HorizontalContentAlignmentProperty); 3111return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty);
MS\Internal\Documents\TextContainerHelper.cs (3)
550Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 572Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 669Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox,
MS\Internal\Helper.cs (1)
1482if (dp != TextBox.TextProperty)
MS\Internal\Ink\TextClipboardData.cs (1)
89TextBox textBox = new TextBox();
MS\Internal\Text\TextProperties.cs (2)
272TextBox textBox = element as TextBox;
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (2)
83TextBox textBox = owner.EditableTextBoxSite; 110TextBox tb = owner.EditableTextBoxSite;
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
67TextBox tb = owner.TextBox;
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (9)
28public TextBoxAutomationPeer(TextBox owner): base(owner) 63TextBox owner = (TextBox)Owner; 82TextBox owner = (TextBox)Owner; 91TextBox owner = (TextBox)Owner; 101TextBox owner = (TextBox)Owner;
System\Windows\Controls\ComboBox.cs (5)
37[TemplatePart(Name = "PART_EditableTextBox", Type = typeof(TextBox))] 387TextBox.IsReadOnlyProperty.AddOwner(typeof(ComboBox)); 1643EditableTextBoxSite = GetTemplateChild(EditableTextBoxTemplateName) as TextBox; 1912internal TextBox EditableTextBoxSite 2030private TextBox _editableTextBoxSite;
System\Windows\Controls\DataGridHyperlinkColumn.cs (4)
197TextBox textBox = new TextBox(); 200ApplyBinding(textBox, TextBox.TextProperty); 219TextBox textBox = editingElement as TextBox;
System\Windows\Controls\DataGridTextColumn.cs (8)
62Style style = new Style(typeof(TextBox)); 64style.Setters.Add(new Setter(TextBox.BorderThicknessProperty, new Thickness(0.0))); 65style.Setters.Add(new Setter(TextBox.PaddingProperty, new Thickness(0.0))); 101TextBox textBox = new TextBox(); 106ApplyBinding(textBox, TextBox.TextProperty); 168TextBox textBox = editingElement as TextBox; 239private static bool PlaceCaretOnTextBox(TextBox textBox, Point position)
System\Windows\Controls\DatePicker.cs (7)
640internal TextBox TextBox 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)); 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);
System\Windows\Controls\DeferredTextReference.cs (2)
46TextBox tb = _textContainer.Parent as TextBox;
System\Windows\Controls\DocumentViewer.cs (1)
2051SetValue(TextBox.AcceptsTabProperty, false);
System\Windows\Controls\PasswordBox.cs (1)
263TextBox.MaxLengthProperty.AddOwner(typeof(PasswordBox));
System\Windows\Controls\TextBlock.cs (1)
2840if (!(position is TextPointer) || ((TextPointer)position).Parent == null || ((TextPointer)position).Parent is TextBox)
System\Windows\Controls\TextBox.cs (37)
53DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(typeof(TextBox))); 54_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TextBox)); 59HeightProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 60MinHeightProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 61MaxHeightProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 62FontFamilyProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 63FontSizeProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 70typographyProperties[i].OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(onTypographyChanged)); 73HorizontalScrollBarVisibilityProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata( 80CommandHelpers.RegisterCommandHandler(typeof(TextBox), EditingCommands.Clear, OnClearCommand, new CanExecuteRoutedEventHandler(OnCanExecuteClearCommand)); 93TextEditor.RegisterCommandHandlers(typeof(TextBox), /*acceptsRichContent:*/false, /*readOnly*/false, /*registerEventListeners*/false); 583typeof(TextBox), 613typeof(TextBox), // Property owner 638typeof(TextBox), // Property owner 663typeof(TextBox), // Property owner 695typeof(TextBox), // Property owner 730typeof(TextBox), // Property owner 749public static readonly DependencyProperty TextAlignmentProperty = Block.TextAlignmentProperty.AddOwner(typeof(TextBox)); 927typeof(TextBox), 959typeof(TextBox), 977if (target is TextBox textBox) 983if (target is TextBox textBox) 1025FrameworkPropertyMetadata fmetadata = e.Property.GetMetadata(typeof(TextBox)) as FrameworkPropertyMetadata; 1030if (e.IsAValueChange || e.IsASubPropertyChange || e.Property == TextBox.TextAlignmentProperty) 1497TextBox textBox = d as TextBox; 1543TextBox textBox = (TextBox)d; 1553TextBox textBox = (TextBox)d; 1609bool hasExpression = HasExpression(LookupEntry(TextBox.TextProperty.GlobalIndex), TextBox.TextProperty); 1792if (d is TextBox) 1794((TextBox)d).OnTextWrappingChanged(); 1935TextBox textbox = (TextBox)d;
System\Windows\Controls\ToolBar.cs (1)
490else if (feType == typeof(TextBox))
System\Windows\Data\BindingExpressionBase.cs (2)
931if (dp == System.Windows.Controls.TextBox.TextProperty && IsReflective && !IsInBindingExpressionCollection) 962if (TargetProperty == System.Windows.Controls.TextBox.TextProperty && IsReflective && !IsInBindingExpressionCollection)
System\windows\Documents\TextEditor.cs (2)
1045return _uiScope == null ? 0 : (int)_uiScope.GetValue(TextBox.MaxLengthProperty); 1057return _uiScope == null ? CharacterCasing.Normal : (CharacterCasing)_uiScope.GetValue(TextBox.CharacterCasingProperty);
System\windows\Documents\TextEditorDragDrop.cs (1)
283_textEditor.UiScope, TextBox.TextProperty);
System\Windows\Documents\TextSchema.cs (1)
810typeof(TextBox).IsAssignableFrom(parentType) ||
System\Windows\FrameworkCompatibilityPreferences.cs (1)
365/// controls (<see cref="System.Windows.Controls.TextBox"/> and <see cref="System.Windows.Controls.RichTextBox"/>)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
735case 639: t = () => typeof(TextBox); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
3621Type type = typeof(System.Windows.Controls.TextBox); 3622DependencyProperty dp = System.Windows.Controls.TextBox.TextProperty; 3624this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType 3638Type type = typeof(System.Windows.Controls.TextBox); 3639DependencyProperty dp = System.Windows.Controls.TextBox.IsReadOnlyProperty; 3641this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType 7246Type type = typeof(System.Windows.Controls.TextBox); 7247DependencyProperty dp = System.Windows.Controls.TextBox.TextWrappingProperty; 7249this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType 7384Type type = typeof(System.Windows.Controls.TextBox); 7385DependencyProperty dp = System.Windows.Controls.TextBox.TextAlignmentProperty; 7387this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9947typeof(System.Windows.Controls.TextBox),
System\Windows\Markup\KnownTypes.cs (3)
1912return System.Windows.Controls.TextBox.TextProperty; 1914return System.Windows.Controls.TextBox.IsReadOnlyProperty; 6193case KnownElements.TextBox: t = typeof(System.Windows.Controls.TextBox); break;
PresentationUI (5)
artifacts\obj\PresentationUI\Debug\net9.0\MS\Internal\Documents\FindToolBar.g.cs (2)
82internal System.Windows.Controls.TextBox FindTextBox; 205this.FindTextBox = ((System.Windows.Controls.TextBox)(target));
MS\Internal\Documents\Application\ZoomComboBox.cs (3)
68public TextBox TextBox 117_editableTextBox = GetTemplateChild("PART_EditableTextBox") as TextBox; 586private TextBox _editableTextBox;
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (1)
89TextBox tb = owner.EditableTextBoxSite;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (4)
140TextBox.IsReadOnlyProperty.AddOwner(typeof(RibbonComboBox)); 1308EditableTextBoxSite = GetTemplateChild(EditableTextBoxTemplateName) as TextBox; 1625internal TextBox EditableTextBoxSite 1684private TextBox _editableTextBoxSite;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1843new PropertyAndTransferMode () { Property = TextBox.TextProperty, Mode = TransferMode.AlwaysTransfer }, 2123else if (original is TextBox)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
636TextBox textBox; 654else if ((textBox = o as TextBox) != null)