2 types derived from TextBoxBase
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (1)
27public class RichTextBox : TextBoxBase, IAddChild
System\Windows\Controls\TextBox.cs (1)
30public class TextBox : TextBoxBase, IAddChild, ITextBoxViewHost
173 references to TextBoxBase
PresentationFramework (173)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
466TextBoxBase textBox = startNode as TextBoxBase;
MS\Internal\Documents\TextBoxLine.cs (3)
206Brush selectionBrush = uiScope.GetValue(TextBoxBase.SelectionBrushProperty) as Brush; 210double selectionBrushOpacity = (double)uiScope.GetValue(TextBoxBase.SelectionOpacityProperty); 463Brush selectionTextBrush = uiScope.GetValue(TextBoxBase.SelectionTextBrushProperty) as Brush;
MS\Internal\Documents\TextBoxView.cs (2)
1829&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1830|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty));
MS\Internal\Helper.cs (2)
1469return IsComposing(d as TextBoxBase); 1472internal static bool IsComposing(TextBoxBase tbb)
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
18_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 44_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
System\Windows\Controls\CustomDictionarySources.cs (2)
38internal CustomDictionarySources(TextBoxBase owner) 357private readonly TextBoxBase _owner;
System\Windows\Controls\FlowDocumentReader.cs (15)
51TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentReader), 53TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentReader), 54new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 360/// <see cref="TextBoxBase.SelectionBrushProperty" /> 369/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 378/// <see cref="TextBoxBase.IsSelectionActive"/> 386/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 611/// <see cref="TextBoxBase.SelectionBrushProperty"/> 614TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentReader)); 617/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 620TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentReader)); 623/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 626TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentReader)); 629/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 632TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentReader));
System\Windows\Controls\FlowDocumentScrollViewer.cs (15)
58TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 60TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 61new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 310/// <see cref="TextBoxBase.SelectionBrushProperty" /> 319/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 328/// <see cref="TextBoxBase.IsSelectionActive"/> 336/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 468/// <see cref="TextBoxBase.SelectionBrushProperty"/> 471TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 474/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 477TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 480/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 483TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 486/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 489TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentScrollViewer));
System\Windows\Controls\PasswordBox.cs (21)
71TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(PasswordBox), 73TextBoxBase.SelectionTextBrushProperty.OverrideMetadata(typeof(PasswordBox), 75TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(PasswordBox), 77TextBoxBase.CaretBrushProperty.OverrideMetadata(typeof(PasswordBox), 261/// <see cref="TextBoxBase.SelectionBrushProperty"/> 264TextBoxBase.SelectionBrushProperty.AddOwner(typeof(PasswordBox)); 267/// <see cref="TextBoxBase.SelectionBrushProperty" /> 276/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 279TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox)); 282/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 291/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 294TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(PasswordBox)); 297/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 306/// <see cref="TextBoxBase.CaretBrushProperty"/> 309TextBoxBase.CaretBrushProperty.AddOwner(typeof(PasswordBox)); 321/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 324TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox)); 327/// <see cref="TextBoxBase.IsSelectionActive"/> 335/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 338TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(PasswordBox)); 341/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/>
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
52TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(DocumentViewerBase), new FrameworkPropertyMetadata(true));
System\Windows\Controls\Primitives\TextBoxBase.cs (37)
49DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBoxBase), new FrameworkPropertyMetadata(typeof(TextBoxBase))); 50_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TextBoxBase)); 53Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase), 58InputMethod.IsInputMethodEnabledProperty.OverrideMetadata(typeof(TextBoxBase), 61IsEnabledProperty.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 62IsMouseOverPropertyKey.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 427typeof(TextBoxBase), 448typeof(TextBoxBase), 469KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(TextBoxBase)); 492typeof(TextBoxBase), // Property owner 521typeof(TextBoxBase), 541typeof(TextBoxBase), 684DependencyProperty.Register("IsUndoEnabled", typeof(bool), typeof(TextBoxBase), 727DependencyProperty.Register("UndoLimit", typeof(int), typeof(TextBoxBase), 756typeof(TextBoxBase), // Property owner 782DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(TextBoxBase), 801DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(TextBoxBase), 832DependencyProperty.Register("SelectionOpacity", typeof(double), typeof(TextBoxBase), 852DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(TextBoxBase), 868typeof(TextBoxBase), 880DependencyProperty.Register("IsInactiveSelectionHighlightEnabled", typeof(bool), typeof(TextBoxBase)); 905typeof(TextBoxBase)); // 934typeof(TextBoxBase)); // 1877return ((TextBoxBase)d).ViewportHeight; 1976TextBoxBase textBox = (TextBoxBase)d; 2041TextBoxBase textBox = d as TextBoxBase; 2060TextBoxBase textBox = (TextBoxBase)d; 2075TextBoxBase textBox = (TextBoxBase)d; 2088TextBoxBase textBox = (TextBoxBase)d; 2109TextBoxBase textBoxBase = (TextBoxBase)d;
System\Windows\Controls\RichTextBox.cs (3)
49TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true)); 56TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue));
System\Windows\Controls\SinglePageViewer.cs (15)
54TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 56TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 57new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 206/// <see cref="TextBoxBase.SelectionBrushProperty" /> 215/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 224/// <see cref="TextBoxBase.IsSelectionActive"/> 232/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 326/// <see cref="TextBoxBase.SelectionBrushProperty"/> 329TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentPageViewer)); 332/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 335TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentPageViewer)); 339/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 342TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentPageViewer)); 345/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 348TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentPageViewer));
System\Windows\Controls\SpellCheck.cs (12)
29internal SpellCheck(TextBoxBase owner) 66public static void SetIsEnabled(TextBoxBase textBoxBase, bool value) 76public static bool GetIsEnabled(TextBoxBase textBoxBase) 121public static void SetSpellingReform(TextBoxBase textBoxBase, SpellingReform value) 160public static IList GetCustomDictionaries(TextBoxBase textBoxBase) 174/// Attached property representing location of custom dicitonaries for given <see cref="TextBoxBase"/> 191TextBoxBase textBoxBase = d as TextBoxBase; 211TextBoxBase textBoxBase = d as TextBoxBase; 241return new CustomDictionarySources(owner as TextBoxBase); 255private readonly TextBoxBase _owner;
System\Windows\Controls\StickyNote.cs (4)
1503TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase; 1528TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase;
System\Windows\Data\BindingExpressionBase.cs (6)
924System.Windows.Controls.Primitives.TextBoxBase tbb = target as System.Windows.Controls.Primitives.TextBoxBase; 955System.Windows.Controls.Primitives.TextBoxBase tbb = TargetElement as System.Windows.Controls.Primitives.TextBoxBase; 1315System.Windows.Controls.Primitives.TextBoxBase tbb = Target as System.Windows.Controls.Primitives.TextBoxBase;
System\windows\Documents\CaretElement.cs (2)
125Brush selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 132double selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
System\Windows\Documents\CompositionAdorner.cs (2)
171selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 172selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
System\windows\Documents\TextEditor.cs (5)
268TextBoxBase textBoxBase = _uiScope as TextBoxBase; 934return _uiScope == null ? true : (bool)_uiScope.GetValue(TextBoxBase.AcceptsTabProperty); 941_uiScope.SetValue(TextBoxBase.AcceptsTabProperty, value); 1068return _uiScope == null ? false : (bool)_uiScope.GetValue(TextBoxBase.IsReadOnlyCaretVisibleProperty);
System\windows\Documents\TextEditorMouse.cs (3)
507if (scroller != null && This.UiScope is TextBoxBase) 514double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 532double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth;
System\windows\Documents\TextSelection.cs (7)
334else if (!this.IsEmpty && (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty)) 342owner.SetValue(TextBoxBase.IsSelectionActivePropertyKey, isSelectionActive); 1607Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 2347if (textEditor.UiScope is TextBoxBase) 2349double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2350double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2391scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
733case 640: t = () => typeof(TextBoxBase); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (9)
8544Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8545DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.AcceptsTabProperty; 8547this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8894Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8895DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.VerticalScrollBarVisibilityProperty; 8897this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8913Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8914DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.HorizontalScrollBarVisibilityProperty; 8916this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11051typeof(System.Windows.Controls.Primitives.TextBoxBase),
System\Windows\Markup\KnownTypes.cs (1)
6187case KnownElements.TextBoxBase: t = typeof(System.Windows.Controls.Primitives.TextBoxBase); break;