2 types derived from TextBoxBase
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (1)
28public class RichTextBox : TextBoxBase, IAddChild
System\Windows\Controls\TextBox.cs (1)
31public class TextBox : TextBoxBase, IAddChild, ITextBoxViewHost
173 references to TextBoxBase
PresentationFramework (173)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
467TextBoxBase textBox = startNode as TextBoxBase;
MS\Internal\Documents\TextBoxLine.cs (3)
210Brush selectionBrush = uiScope.GetValue(TextBoxBase.SelectionBrushProperty) as Brush; 214double selectionBrushOpacity = (double)uiScope.GetValue(TextBoxBase.SelectionOpacityProperty); 467Brush selectionTextBrush = uiScope.GetValue(TextBoxBase.SelectionTextBrushProperty) as Brush;
MS\Internal\Documents\TextBoxView.cs (2)
1876&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1877|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty));
MS\Internal\Helper.cs (2)
1476return IsComposing(d as TextBoxBase); 1479internal static bool IsComposing(TextBoxBase tbb)
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
19_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 45_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
System\Windows\Controls\CustomDictionarySources.cs (2)
39internal CustomDictionarySources(TextBoxBase owner) 376private readonly TextBoxBase _owner;
System\Windows\Controls\FlowDocumentReader.cs (15)
52TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentReader), 54TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentReader), 55new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 361/// <see cref="TextBoxBase.SelectionBrushProperty" /> 370/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 379/// <see cref="TextBoxBase.IsSelectionActive"/> 387/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 612/// <see cref="TextBoxBase.SelectionBrushProperty"/> 615TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentReader)); 618/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 621TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentReader)); 624/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 627TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentReader)); 630/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 633TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentReader));
System\Windows\Controls\FlowDocumentScrollViewer.cs (15)
59TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 61TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 62new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 314/// <see cref="TextBoxBase.SelectionBrushProperty" /> 323/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 332/// <see cref="TextBoxBase.IsSelectionActive"/> 340/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 472/// <see cref="TextBoxBase.SelectionBrushProperty"/> 475TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 478/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 481TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 484/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 487TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 490/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 493TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentScrollViewer));
System\Windows\Controls\PasswordBox.cs (21)
78TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(PasswordBox), 80TextBoxBase.SelectionTextBrushProperty.OverrideMetadata(typeof(PasswordBox), 82TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(PasswordBox), 84TextBoxBase.CaretBrushProperty.OverrideMetadata(typeof(PasswordBox), 269/// <see cref="TextBoxBase.SelectionBrushProperty"/> 272TextBoxBase.SelectionBrushProperty.AddOwner(typeof(PasswordBox)); 275/// <see cref="TextBoxBase.SelectionBrushProperty" /> 284/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 287TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox)); 290/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 299/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 302TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(PasswordBox)); 305/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 314/// <see cref="TextBoxBase.CaretBrushProperty"/> 317TextBoxBase.CaretBrushProperty.AddOwner(typeof(PasswordBox)); 329/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 332TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox)); 335/// <see cref="TextBoxBase.IsSelectionActive"/> 343/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 346TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(PasswordBox)); 349/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/>
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
64TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(DocumentViewerBase), new FrameworkPropertyMetadata(true));
System\Windows\Controls\Primitives\TextBoxBase.cs (37)
50DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBoxBase), new FrameworkPropertyMetadata(typeof(TextBoxBase))); 51_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TextBoxBase)); 54Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase), 59InputMethod.IsInputMethodEnabledProperty.OverrideMetadata(typeof(TextBoxBase), 62IsEnabledProperty.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 63IsMouseOverPropertyKey.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 426typeof(TextBoxBase), 447typeof(TextBoxBase), 468KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(TextBoxBase)); 491typeof(TextBoxBase), // Property owner 520typeof(TextBoxBase), 540typeof(TextBoxBase), 683DependencyProperty.Register("IsUndoEnabled", typeof(bool), typeof(TextBoxBase), 726DependencyProperty.Register("UndoLimit", typeof(int), typeof(TextBoxBase), 755typeof(TextBoxBase), // Property owner 781DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(TextBoxBase), 800DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(TextBoxBase), 831DependencyProperty.Register("SelectionOpacity", typeof(double), typeof(TextBoxBase), 851DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(TextBoxBase), 867typeof(TextBoxBase), 879DependencyProperty.Register("IsInactiveSelectionHighlightEnabled", typeof(bool), typeof(TextBoxBase)); 904typeof(TextBoxBase)); // 933typeof(TextBoxBase)); // 1951return ((TextBoxBase)d).ViewportHeight; 2053TextBoxBase textBox = (TextBoxBase)d; 2118TextBoxBase textBox = d as TextBoxBase; 2137TextBoxBase textBox = (TextBoxBase)d; 2152TextBoxBase textBox = (TextBoxBase)d; 2165TextBoxBase textBox = (TextBoxBase)d; 2186TextBoxBase textBoxBase = (TextBoxBase)d;
System\Windows\Controls\RichTextBox.cs (3)
50TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true)); 57TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue));
System\Windows\Controls\SinglePageViewer.cs (15)
55TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 57TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 58new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 207/// <see cref="TextBoxBase.SelectionBrushProperty" /> 216/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 225/// <see cref="TextBoxBase.IsSelectionActive"/> 233/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 327/// <see cref="TextBoxBase.SelectionBrushProperty"/> 330TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentPageViewer)); 333/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 336TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentPageViewer)); 340/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 343TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentPageViewer)); 346/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 349TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentPageViewer));
System\Windows\Controls\SpellCheck.cs (12)
30internal SpellCheck(TextBoxBase owner) 67public static void SetIsEnabled(TextBoxBase textBoxBase, bool value) 77public static bool GetIsEnabled(TextBoxBase textBoxBase) 122public static void SetSpellingReform(TextBoxBase textBoxBase, SpellingReform value) 161public static IList GetCustomDictionaries(TextBoxBase textBoxBase) 175/// Attached property representing location of custom dicitonaries for given <see cref="TextBoxBase"/> 192TextBoxBase textBoxBase = d as TextBoxBase; 212TextBoxBase textBoxBase = d as TextBoxBase; 245return new CustomDictionarySources(owner as TextBoxBase); 259private readonly TextBoxBase _owner;
System\Windows\Controls\StickyNote.cs (4)
1535TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase; 1560TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase;
System\Windows\Data\BindingExpressionBase.cs (6)
925System.Windows.Controls.Primitives.TextBoxBase tbb = target as System.Windows.Controls.Primitives.TextBoxBase; 956System.Windows.Controls.Primitives.TextBoxBase tbb = TargetElement as System.Windows.Controls.Primitives.TextBoxBase; 1316System.Windows.Controls.Primitives.TextBoxBase tbb = Target as System.Windows.Controls.Primitives.TextBoxBase;
System\windows\Documents\CaretElement.cs (2)
127Brush selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 134double selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
System\Windows\Documents\CompositionAdorner.cs (2)
172selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 173selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
System\windows\Documents\TextEditor.cs (5)
274TextBoxBase textBoxBase = _uiScope as TextBoxBase; 941return _uiScope == null ? true : (bool)_uiScope.GetValue(TextBoxBase.AcceptsTabProperty); 948_uiScope.SetValue(TextBoxBase.AcceptsTabProperty, value); 1075return _uiScope == null ? false : (bool)_uiScope.GetValue(TextBoxBase.IsReadOnlyCaretVisibleProperty);
System\windows\Documents\TextEditorMouse.cs (3)
511if (scroller != null && This.UiScope is TextBoxBase) 518double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 536double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth;
System\windows\Documents\TextSelection.cs (7)
347else if (!this.IsEmpty && (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty)) 355owner.SetValue(TextBoxBase.IsSelectionActivePropertyKey, isSelectionActive); 1623Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 2363if (textEditor.UiScope is TextBoxBase) 2365double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2366double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2407scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
734case 640: t = () => typeof(TextBoxBase); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (9)
7903Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 7904DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.AcceptsTabProperty; 7906this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8217Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8218DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.VerticalScrollBarVisibilityProperty; 8220this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8234Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8235DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.HorizontalScrollBarVisibilityProperty; 8237this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9962typeof(System.Windows.Controls.Primitives.TextBoxBase),
System\Windows\Markup\KnownTypes.cs (1)
6194case KnownElements.TextBoxBase: t = typeof(System.Windows.Controls.Primitives.TextBoxBase); break;