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)
16public sealed partial class DatePickerTextBox : TextBox
PresentationUI (1)
MS\Internal\Documents\Application\PageTextBox.cs (1)
24internal sealed class PageTextBox : TextBox
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
33public class RibbonTextBox : TextBox, ICommandSource
8 instantiations of TextBox
PresentationFramework (5)
MS\Internal\Ink\TextClipboardData.cs (1)
84TextBox textBox = new TextBox();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
190TextBox textBox = new TextBox();
System\Windows\Controls\DataGridTextColumn.cs (1)
98TextBox textBox = new TextBox();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9947bamlType.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)
80public TextBox FileNameTextBox => _dialog.DestinationControl.fileNameTextBox;
GenerateType\GenerateTypeDialog.xaml.cs (1)
133public TextBox TypeNameTextBox => _dialog.TypeNameTextBox;
PresentationFramework (116)
MS\Internal\Documents\TextBoxView.cs (6)
3084BaseValueSource textAlignmentSource = DependencyPropertyHelper.GetValueSource(host, TextBox.TextAlignmentProperty).BaseValueSource; 3085BaseValueSource horizontalAlignmentSource = DependencyPropertyHelper.GetValueSource(host, TextBox.HorizontalContentAlignmentProperty).BaseValueSource; 3090return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty); 3095o = host.GetValue(TextBox.HorizontalContentAlignmentProperty); 3104o = host.GetValue(TextBox.HorizontalContentAlignmentProperty); 3109return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty);
MS\Internal\Documents\TextContainerHelper.cs (3)
547Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 569Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 666Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox,
MS\Internal\Helper.cs (1)
1473if (dp != TextBox.TextProperty)
MS\Internal\Ink\TextClipboardData.cs (1)
84TextBox textBox = new TextBox();
MS\Internal\Text\TextProperties.cs (2)
270TextBox textBox = element as TextBox;
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (2)
71TextBox textBox = owner.EditableTextBoxSite; 98TextBox tb = owner.EditableTextBoxSite;
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
65TextBox tb = owner.TextBox;
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (9)
17public TextBoxAutomationPeer(TextBox owner): base(owner) 52TextBox owner = (TextBox)Owner; 71TextBox owner = (TextBox)Owner; 80TextBox owner = (TextBox)Owner; 90TextBox owner = (TextBox)Owner;
System\Windows\Controls\ComboBox.cs (5)
27[TemplatePart(Name = "PART_EditableTextBox", Type = typeof(TextBox))] 377TextBox.IsReadOnlyProperty.AddOwner(typeof(ComboBox)); 1633EditableTextBoxSite = GetTemplateChild(EditableTextBoxTemplateName) as TextBox; 1902internal TextBox EditableTextBoxSite 2020private TextBox _editableTextBoxSite;
System\Windows\Controls\DataGridHyperlinkColumn.cs (4)
190TextBox textBox = new TextBox(); 193ApplyBinding(textBox, TextBox.TextProperty); 212TextBox textBox = editingElement as TextBox;
System\Windows\Controls\DataGridTextColumn.cs (8)
59Style style = new Style(typeof(TextBox)); 61style.Setters.Add(new Setter(TextBox.BorderThicknessProperty, new Thickness(0.0))); 62style.Setters.Add(new Setter(TextBox.PaddingProperty, new Thickness(0.0))); 98TextBox textBox = new TextBox(); 103ApplyBinding(textBox, TextBox.TextProperty); 165TextBox textBox = editingElement as TextBox; 236private static bool PlaceCaretOnTextBox(TextBox textBox, Point position)
System\Windows\Controls\DatePicker.cs (7)
636internal TextBox TextBox 672_textBox.RemoveHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown)); 673_textBox.RemoveHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged)); 674_textBox.RemoveHandler(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus)); 717_textBox.AddHandler(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown), true); 718_textBox.AddHandler(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged), true); 719_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)
2039SetValue(TextBox.AcceptsTabProperty, false);
System\Windows\Controls\PasswordBox.cs (1)
255TextBox.MaxLengthProperty.AddOwner(typeof(PasswordBox));
System\Windows\Controls\TextBlock.cs (1)
2830if (!(position is TextPointer) || ((TextPointer)position).Parent == null || ((TextPointer)position).Parent is TextBox)
System\Windows\Controls\TextBox.cs (37)
46DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(typeof(TextBox))); 47_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TextBox)); 52HeightProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 53MinHeightProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 54MaxHeightProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 55FontFamilyProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 56FontSizeProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(callback)); 63typographyProperties[i].OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(onTypographyChanged)); 66HorizontalScrollBarVisibilityProperty.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata( 73CommandHelpers.RegisterCommandHandler(typeof(TextBox), EditingCommands.Clear, OnClearCommand, new CanExecuteRoutedEventHandler(OnCanExecuteClearCommand)); 86TextEditor.RegisterCommandHandlers(typeof(TextBox), /*acceptsRichContent:*/false, /*readOnly*/false, /*registerEventListeners*/false); 576typeof(TextBox), 606typeof(TextBox), // Property owner 631typeof(TextBox), // Property owner 656typeof(TextBox), // Property owner 688typeof(TextBox), // Property owner 723typeof(TextBox), // Property owner 742public static readonly DependencyProperty TextAlignmentProperty = Block.TextAlignmentProperty.AddOwner(typeof(TextBox)); 920typeof(TextBox), 952typeof(TextBox), 970if (target is TextBox textBox) 976if (target is TextBox textBox) 1018FrameworkPropertyMetadata fmetadata = e.Property.GetMetadata(typeof(TextBox)) as FrameworkPropertyMetadata; 1023if (e.IsAValueChange || e.IsASubPropertyChange || e.Property == TextBox.TextAlignmentProperty) 1490TextBox textBox = d as TextBox; 1536TextBox textBox = (TextBox)d; 1546TextBox textBox = (TextBox)d; 1602bool hasExpression = HasExpression(LookupEntry(TextBox.TextProperty.GlobalIndex), TextBox.TextProperty); 1785if (d is TextBox) 1787((TextBox)d).OnTextWrappingChanged(); 1928TextBox textbox = (TextBox)d;
System\Windows\Controls\ToolBar.cs (1)
481else if (feType == typeof(TextBox))
System\Windows\Data\BindingExpressionBase.cs (2)
923if (dp == System.Windows.Controls.TextBox.TextProperty && IsReflective && !IsInBindingExpressionCollection) 954if (TargetProperty == System.Windows.Controls.TextBox.TextProperty && IsReflective && !IsInBindingExpressionCollection)
System\windows\Documents\TextEditor.cs (2)
1039return _uiScope == null ? 0 : (int)_uiScope.GetValue(TextBox.MaxLengthProperty); 1051return _uiScope == null ? CharacterCasing.Normal : (CharacterCasing)_uiScope.GetValue(TextBox.CharacterCasingProperty);
System\windows\Documents\TextEditorDragDrop.cs (1)
266_textEditor.UiScope, TextBox.TextProperty);
System\Windows\Documents\TextSchema.cs (1)
809typeof(TextBox).IsAssignableFrom(parentType) ||
System\Windows\FrameworkCompatibilityPreferences.cs (1)
362/// controls (<see cref="System.Windows.Controls.TextBox"/> and <see cref="System.Windows.Controls.RichTextBox"/>)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
733case 639: t = () => typeof(TextBox); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
3619Type type = typeof(System.Windows.Controls.TextBox); 3620DependencyProperty dp = System.Windows.Controls.TextBox.TextProperty; 3622this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType 3636Type type = typeof(System.Windows.Controls.TextBox); 3637DependencyProperty dp = System.Windows.Controls.TextBox.IsReadOnlyProperty; 3639this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType 7244Type type = typeof(System.Windows.Controls.TextBox); 7245DependencyProperty dp = System.Windows.Controls.TextBox.TextWrappingProperty; 7247this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType 7382Type type = typeof(System.Windows.Controls.TextBox); 7383DependencyProperty dp = System.Windows.Controls.TextBox.TextAlignmentProperty; 7385this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9945typeof(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\net10.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)
66public TextBox TextBox 115_editableTextBox = GetTemplateChild("PART_EditableTextBox") as TextBox; 584private 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)
86TextBox tb = owner.EditableTextBoxSite;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (4)
138TextBox.IsReadOnlyProperty.AddOwner(typeof(RibbonComboBox)); 1306EditableTextBoxSite = GetTemplateChild(EditableTextBoxTemplateName) as TextBox; 1623internal TextBox EditableTextBoxSite 1682private TextBox _editableTextBoxSite;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1838new PropertyAndTransferMode () { Property = TextBox.TextProperty, Mode = TransferMode.AlwaysTransfer }, 2118else if (original is TextBox)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
631TextBox textBox; 649else if ((textBox = o as TextBox) != null)