2 types derived from TextBoxBase
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (1)
32public class RichTextBox : TextBoxBase, IAddChild
System\Windows\Controls\TextBox.cs (1)
38public class TextBox : TextBoxBase, IAddChild, ITextBoxViewHost
173 references to TextBoxBase
PresentationFramework (173)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
477TextBoxBase textBox = startNode as TextBoxBase;
MS\Internal\Documents\TextBoxLine.cs (3)
217Brush selectionBrush = uiScope.GetValue(TextBoxBase.SelectionBrushProperty) as Brush; 221double selectionBrushOpacity = (double)uiScope.GetValue(TextBoxBase.SelectionOpacityProperty); 474Brush selectionTextBrush = uiScope.GetValue(TextBoxBase.SelectionTextBrushProperty) as Brush;
MS\Internal\Documents\TextBoxView.cs (2)
1878&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1879|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty));
MS\Internal\Helper.cs (2)
1485return IsComposing(d as TextBoxBase); 1488internal static bool IsComposing(TextBoxBase tbb)
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
30_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 56_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
System\Windows\Controls\CustomDictionarySources.cs (2)
45internal CustomDictionarySources(TextBoxBase owner) 382private readonly TextBoxBase _owner;
System\Windows\Controls\FlowDocumentReader.cs (15)
57TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentReader), 59TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentReader), 60new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 366/// <see cref="TextBoxBase.SelectionBrushProperty" /> 375/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 384/// <see cref="TextBoxBase.IsSelectionActive"/> 392/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 617/// <see cref="TextBoxBase.SelectionBrushProperty"/> 620TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentReader)); 623/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 626TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentReader)); 629/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 632TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentReader)); 635/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 638TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentReader));
System\Windows\Controls\FlowDocumentScrollViewer.cs (15)
62TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 64TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 65new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 317/// <see cref="TextBoxBase.SelectionBrushProperty" /> 326/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 335/// <see cref="TextBoxBase.IsSelectionActive"/> 343/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 475/// <see cref="TextBoxBase.SelectionBrushProperty"/> 478TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 481/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 484TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 487/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 490TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 493/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 496TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentScrollViewer));
System\Windows\Controls\PasswordBox.cs (21)
86TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(PasswordBox), 88TextBoxBase.SelectionTextBrushProperty.OverrideMetadata(typeof(PasswordBox), 90TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(PasswordBox), 92TextBoxBase.CaretBrushProperty.OverrideMetadata(typeof(PasswordBox), 277/// <see cref="TextBoxBase.SelectionBrushProperty"/> 280TextBoxBase.SelectionBrushProperty.AddOwner(typeof(PasswordBox)); 283/// <see cref="TextBoxBase.SelectionBrushProperty" /> 292/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 295TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox)); 298/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 307/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 310TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(PasswordBox)); 313/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 322/// <see cref="TextBoxBase.CaretBrushProperty"/> 325TextBoxBase.CaretBrushProperty.AddOwner(typeof(PasswordBox)); 337/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 340TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox)); 343/// <see cref="TextBoxBase.IsSelectionActive"/> 351/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 354TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(PasswordBox)); 357/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/>
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
69TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(DocumentViewerBase), new FrameworkPropertyMetadata(true));
System\Windows\Controls\Primitives\TextBoxBase.cs (37)
59DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBoxBase), new FrameworkPropertyMetadata(typeof(TextBoxBase))); 60_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TextBoxBase)); 63Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase), 68InputMethod.IsInputMethodEnabledProperty.OverrideMetadata(typeof(TextBoxBase), 71IsEnabledProperty.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 72IsMouseOverPropertyKey.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 435typeof(TextBoxBase), 456typeof(TextBoxBase), 477KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(TextBoxBase)); 500typeof(TextBoxBase), // Property owner 529typeof(TextBoxBase), 549typeof(TextBoxBase), 692DependencyProperty.Register("IsUndoEnabled", typeof(bool), typeof(TextBoxBase), 735DependencyProperty.Register("UndoLimit", typeof(int), typeof(TextBoxBase), 764typeof(TextBoxBase), // Property owner 790DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(TextBoxBase), 809DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(TextBoxBase), 840DependencyProperty.Register("SelectionOpacity", typeof(double), typeof(TextBoxBase), 860DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(TextBoxBase), 876typeof(TextBoxBase), 888DependencyProperty.Register("IsInactiveSelectionHighlightEnabled", typeof(bool), typeof(TextBoxBase)); 913typeof(TextBoxBase)); // 942typeof(TextBoxBase)); // 1960return ((TextBoxBase)d).ViewportHeight; 2062TextBoxBase textBox = (TextBoxBase)d; 2127TextBoxBase textBox = d as TextBoxBase; 2146TextBoxBase textBox = (TextBoxBase)d; 2161TextBoxBase textBox = (TextBoxBase)d; 2174TextBoxBase textBox = (TextBoxBase)d; 2195TextBoxBase textBoxBase = (TextBoxBase)d;
System\Windows\Controls\RichTextBox.cs (3)
54TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true)); 61TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue));
System\Windows\Controls\SinglePageViewer.cs (15)
58TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 60TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 61new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 210/// <see cref="TextBoxBase.SelectionBrushProperty" /> 219/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 228/// <see cref="TextBoxBase.IsSelectionActive"/> 236/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 330/// <see cref="TextBoxBase.SelectionBrushProperty"/> 333TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentPageViewer)); 336/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 339TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentPageViewer)); 343/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 346TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentPageViewer)); 349/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 352TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentPageViewer));
System\Windows\Controls\SpellCheck.cs (12)
33internal SpellCheck(TextBoxBase owner) 70public static void SetIsEnabled(TextBoxBase textBoxBase, bool value) 80public static bool GetIsEnabled(TextBoxBase textBoxBase) 125public static void SetSpellingReform(TextBoxBase textBoxBase, SpellingReform value) 164public static IList GetCustomDictionaries(TextBoxBase textBoxBase) 178/// Attached property representing location of custom dicitonaries for given <see cref="TextBoxBase"/> 195TextBoxBase textBoxBase = d as TextBoxBase; 215TextBoxBase textBoxBase = d as TextBoxBase; 248return new CustomDictionarySources(owner as TextBoxBase); 262private readonly TextBoxBase _owner;
System\Windows\Controls\StickyNote.cs (4)
1551TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase; 1576TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase;
System\Windows\Data\BindingExpressionBase.cs (6)
933System.Windows.Controls.Primitives.TextBoxBase tbb = target as System.Windows.Controls.Primitives.TextBoxBase; 964System.Windows.Controls.Primitives.TextBoxBase tbb = TargetElement as System.Windows.Controls.Primitives.TextBoxBase; 1324System.Windows.Controls.Primitives.TextBoxBase tbb = Target as System.Windows.Controls.Primitives.TextBoxBase;
System\windows\Documents\CaretElement.cs (2)
130Brush selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 137double selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
System\Windows\Documents\CompositionAdorner.cs (2)
175selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 176selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
System\windows\Documents\TextEditor.cs (5)
280TextBoxBase textBoxBase = _uiScope as TextBoxBase; 947return _uiScope == null ? true : (bool)_uiScope.GetValue(TextBoxBase.AcceptsTabProperty); 954_uiScope.SetValue(TextBoxBase.AcceptsTabProperty, value); 1081return _uiScope == null ? false : (bool)_uiScope.GetValue(TextBoxBase.IsReadOnlyCaretVisibleProperty);
System\windows\Documents\TextEditorMouse.cs (3)
525if (scroller != null && This.UiScope is TextBoxBase) 532double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 550double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth;
System\windows\Documents\TextSelection.cs (7)
350else if (!this.IsEmpty && (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty)) 358owner.SetValue(TextBoxBase.IsSelectionActivePropertyKey, isSelectionActive); 1626Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 2366if (textEditor.UiScope is TextBoxBase) 2368double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2369double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2410scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
736case 640: t = () => typeof(TextBoxBase); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (9)
7905Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 7906DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.AcceptsTabProperty; 7908this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8219Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8220DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.VerticalScrollBarVisibilityProperty; 8222this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8236Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8237DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.HorizontalScrollBarVisibilityProperty; 8239this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9964typeof(System.Windows.Controls.Primitives.TextBoxBase),
System\Windows\Markup\KnownTypes.cs (1)
6194case KnownElements.TextBoxBase: t = typeof(System.Windows.Controls.Primitives.TextBoxBase); break;