5 types derived from TextBox
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameUserInputTextBox.g.cs (1)
38internal partial class RenameUserInputTextBox : System.Windows.Controls.TextBox, System.Windows.Markup.IComponentConnector {
InlineRename\UI\Adornment\RenameUserInputTextBox.xaml.cs (1)
14internal sealed partial class RenameUserInputTextBox : TextBox, IRenameUserInput
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
8 instantiations of TextBox
PresentationFramework (5)
MS\Internal\Ink\TextClipboardData.cs (1)
89TextBox textBox = new TextBox();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
196TextBox 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;
Roslyn.VisualStudio.DiagnosticsWindow (3)
OptionPages\ForceLowMemoryModePage.cs (1)
38var textBox = new TextBox { MinWidth = 60 };
OptionPages\InternalOptionsControl.cs (2)
41var searchBox = new TextBox() { MinWidth = 200, HorizontalAlignment = HorizontalAlignment.Stretch }; 160var textBox = new TextBox();
164 references to TextBox
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.xaml.cs (5)
17[TemplatePart(Name = InnerTextBox, Type = typeof(TextBox))] 24private readonly Lazy<TextBox> _innerTextBox; 36_innerTextBox = new Lazy<TextBox>(() => 39var textBox = (TextBox)GetTemplateChild(InnerTextBox)!;
Microsoft.VisualStudio.LanguageServices (21)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\AddParameterDialog.g.cs (8)
77internal System.Windows.Controls.TextBox TypeContentControl; 101internal System.Windows.Controls.TextBox NameContentControl; 125internal System.Windows.Controls.TextBox DefaultValue; 141internal System.Windows.Controls.TextBox CallsiteValueTextBox; 238this.TypeContentControl = ((System.Windows.Controls.TextBox)(target)); 247this.NameContentControl = ((System.Windows.Controls.TextBox)(target)); 256this.DefaultValue = ((System.Windows.Controls.TextBox)(target)); 262this.CallsiteValueTextBox = ((System.Windows.Controls.TextBox)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\NewTypeDestinationSelection.g.cs (4)
63internal System.Windows.Controls.TextBox TypeNameTextBox; 95internal System.Windows.Controls.TextBox fileNameTextBox; 138this.TypeNameTextBox = ((System.Windows.Controls.TextBox)(target)); 156this.fileNameTextBox = ((System.Windows.Controls.TextBox)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ErrorReporting\DetailedErrorInfoDialog.g.cs (2)
46internal System.Windows.Controls.TextBox stackTraceText; 99this.stackTraceText = ((System.Windows.Controls.TextBox)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GenerateType\GenerateTypeDialog.g.cs (2)
92internal System.Windows.Controls.TextBox TypeNameTextBox; 219this.TypeNameTextBox = ((System.Windows.Controls.TextBox)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (2)
55internal System.Windows.Controls.TextBox SearchTextBox; 174this.SearchTextBox = ((System.Windows.Controls.TextBox)(target));
CommonControls\NewTypeDestinationSelection.xaml.cs (1)
53if (sender is TextBox textbox
ExtractInterface\ExtractInterfaceDialog.xaml.cs (1)
79public TextBox FileNameTextBox => _dialog.DestinationControl.fileNameTextBox;
GenerateType\GenerateTypeDialog.xaml.cs (1)
132public TextBox TypeNameTextBox => _dialog.TypeNameTextBox;
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)
196TextBox textBox = new TextBox(); 199ApplyBinding(textBox, TextBox.TextProperty); 218TextBox 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\x86\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;
Roslyn.VisualStudio.DiagnosticsWindow (8)
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\TelemetryPanel.g.cs (2)
53internal System.Windows.Controls.TextBox Result; 108this.Result = ((System.Windows.Controls.TextBox)(target));
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\WorkspacePanel.g.cs (2)
53internal System.Windows.Controls.TextBox Result; 100this.Result = ((System.Windows.Controls.TextBox)(target));
OptionPages\ForceLowMemoryModePage.cs (1)
38var textBox = new TextBox { MinWidth = 60 };
OptionPages\InternalOptionsControl.cs (3)
41var searchBox = new TextBox() { MinWidth = 200, HorizontalAlignment = HorizontalAlignment.Stretch }; 160var textBox = new TextBox(); 206private void BindToTextBox(TextBox textBox, IOption2 option, string languageName = null)
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)
634TextBox textBox; 652else if ((textBox = o as TextBox) != null)