2 types derived from TextBoxBase
PresentationFramework (2)
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
34public class RichTextBox : TextBoxBase, IAddChild
src\Framework\System\Windows\Controls\TextBox.cs (1)
40public class TextBox : TextBoxBase, IAddChild, ITextBoxViewHost
175 references to TextBoxBase
PresentationFramework (175)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
491TextBoxBase textBox = startNode as TextBoxBase;
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (2)
167TextBoxBase textBoxBase = Keyboard.FocusedElement as TextBoxBase;
src\Framework\MS\Internal\Documents\TextBoxLine.cs (3)
219Brush selectionBrush = uiScope.GetValue(TextBoxBase.SelectionBrushProperty) as Brush; 223double selectionBrushOpacity = (double)uiScope.GetValue(TextBoxBase.SelectionOpacityProperty); 476Brush selectionTextBrush = uiScope.GetValue(TextBoxBase.SelectionTextBrushProperty) as Brush;
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
1876&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1877|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty));
src\Framework\MS\Internal\Helper.cs (2)
1501return IsComposing(d as TextBoxBase); 1504internal static bool IsComposing(TextBoxBase tbb)
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
26_textPattern = new TextAdaptor(this, ((TextBoxBase)owner).TextContainer); 52_textPattern = new TextAdaptor(this, ((TextBoxBase)Owner).TextContainer);
src\Framework\System\Windows\Controls\CustomDictionarySources.cs (2)
47internal CustomDictionarySources(TextBoxBase owner) 385private readonly TextBoxBase _owner;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (15)
58TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentReader), 60TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentReader), 61new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 367/// <see cref="TextBoxBase.SelectionBrushProperty" /> 376/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 385/// <see cref="TextBoxBase.IsSelectionActive"/> 393/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 618/// <see cref="TextBoxBase.SelectionBrushProperty"/> 621TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentReader)); 624/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 627TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentReader)); 630/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 633TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentReader)); 636/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 639TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentReader));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (15)
63TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 65TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer), 66new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 318/// <see cref="TextBoxBase.SelectionBrushProperty" /> 327/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 336/// <see cref="TextBoxBase.IsSelectionActive"/> 344/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 476/// <see cref="TextBoxBase.SelectionBrushProperty"/> 479TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 482/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 485TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 488/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 491TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentScrollViewer)); 494/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 497TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentScrollViewer));
src\Framework\System\Windows\Controls\PasswordBox.cs (21)
89TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(PasswordBox), 91TextBoxBase.SelectionTextBrushProperty.OverrideMetadata(typeof(PasswordBox), 93TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(PasswordBox), 95TextBoxBase.CaretBrushProperty.OverrideMetadata(typeof(PasswordBox), 293/// <see cref="TextBoxBase.SelectionBrushProperty"/> 296TextBoxBase.SelectionBrushProperty.AddOwner(typeof(PasswordBox)); 299/// <see cref="TextBoxBase.SelectionBrushProperty" /> 308/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 311TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox)); 314/// <see cref="TextBoxBase.SelectionTextBrushProperty"/> 323/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 326TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(PasswordBox)); 329/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 338/// <see cref="TextBoxBase.CaretBrushProperty"/> 341TextBoxBase.CaretBrushProperty.AddOwner(typeof(PasswordBox)); 353/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 356TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox)); 359/// <see cref="TextBoxBase.IsSelectionActive"/> 367/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 370TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(PasswordBox)); 373/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/>
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
72TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(DocumentViewerBase), new FrameworkPropertyMetadata(true));
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (37)
62DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBoxBase), new FrameworkPropertyMetadata(typeof(TextBoxBase))); 63_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TextBoxBase)); 66Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase), 71InputMethod.IsInputMethodEnabledProperty.OverrideMetadata(typeof(TextBoxBase), 74IsEnabledProperty.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 75IsMouseOverPropertyKey.OverrideMetadata(typeof(TextBoxBase), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 458typeof(TextBoxBase), 479typeof(TextBoxBase), 500KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(TextBoxBase)); 523typeof(TextBoxBase), // Property owner 552typeof(TextBoxBase), 572typeof(TextBoxBase), 715DependencyProperty.Register("IsUndoEnabled", typeof(bool), typeof(TextBoxBase), 758DependencyProperty.Register("UndoLimit", typeof(int), typeof(TextBoxBase), 787typeof(TextBoxBase), // Property owner 813DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(TextBoxBase), 832DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(TextBoxBase), 863DependencyProperty.Register("SelectionOpacity", typeof(double), typeof(TextBoxBase), 883DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(TextBoxBase), 899typeof(TextBoxBase), 911DependencyProperty.Register("IsInactiveSelectionHighlightEnabled", typeof(bool), typeof(TextBoxBase)); 936typeof(TextBoxBase)); // 965typeof(TextBoxBase)); // 1991return ((TextBoxBase)d).ViewportHeight; 2093TextBoxBase textBox = (TextBoxBase)d; 2158TextBoxBase textBox = d as TextBoxBase; 2177TextBoxBase textBox = (TextBoxBase)d; 2192TextBoxBase textBox = (TextBoxBase)d; 2210TextBoxBase textBox = (TextBoxBase)d; 2231TextBoxBase textBoxBase = (TextBoxBase)d;
src\Framework\System\Windows\Controls\RichTextBox.cs (3)
56TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true)); 63TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue));
src\Framework\System\Windows\Controls\SinglePageViewer.cs (15)
60TextBoxBase.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 62TextBoxBase.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentPageViewer), 63new FrameworkPropertyMetadata(TextBoxBase.AdornerSelectionOpacityDefaultValue, new PropertyChangedCallback(UpdateCaretElement))); 212/// <see cref="TextBoxBase.SelectionBrushProperty" /> 221/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 230/// <see cref="TextBoxBase.IsSelectionActive"/> 238/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabled"/> 332/// <see cref="TextBoxBase.SelectionBrushProperty"/> 335TextBoxBase.SelectionBrushProperty.AddOwner(typeof(FlowDocumentPageViewer)); 338/// <see cref="TextBoxBase.SelectionOpacityProperty"/> 341TextBoxBase.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentPageViewer)); 345/// <see cref="TextBoxBase.IsSelectionActiveProperty"/> 348TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentPageViewer)); 351/// <see cref="TextBoxBase.IsInactiveSelectionHighlightEnabledProperty"/> 354TextBoxBase.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentPageViewer));
src\Framework\System\Windows\Controls\SpellCheck.cs (12)
35internal SpellCheck(TextBoxBase owner) 72public static void SetIsEnabled(TextBoxBase textBoxBase, bool value) 85public static bool GetIsEnabled(TextBoxBase textBoxBase) 133public static void SetSpellingReform(TextBoxBase textBoxBase, SpellingReform value) 175public static IList GetCustomDictionaries(TextBoxBase textBoxBase) 192/// Attached property representing location of custom dicitonaries for given <see cref="TextBoxBase"/> 209TextBoxBase textBoxBase = d as TextBoxBase; 229TextBoxBase textBoxBase = d as TextBoxBase; 262return new CustomDictionarySources(owner as TextBoxBase); 276private readonly TextBoxBase _owner;
src\Framework\System\Windows\Controls\StickyNote.cs (4)
1561TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase; 1586TextBoxBase textBoxBase = Content.InnerControl as TextBoxBase;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (6)
939System.Windows.Controls.Primitives.TextBoxBase tbb = target as System.Windows.Controls.Primitives.TextBoxBase; 969System.Windows.Controls.Primitives.TextBoxBase tbb = TargetElement as System.Windows.Controls.Primitives.TextBoxBase; 1326System.Windows.Controls.Primitives.TextBoxBase tbb = Target as System.Windows.Controls.Primitives.TextBoxBase;
src\Framework\System\windows\Documents\CaretElement.cs (2)
133Brush selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 140double selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (2)
177selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 178selectionOpacity = (double)owner.GetValue(TextBoxBase.SelectionOpacityProperty);
src\Framework\System\windows\Documents\TextEditor.cs (5)
290TextBoxBase textBoxBase = _uiScope as TextBoxBase; 974return _uiScope == null ? true : (bool)_uiScope.GetValue(TextBoxBase.AcceptsTabProperty); 981_uiScope.SetValue(TextBoxBase.AcceptsTabProperty, value); 1108return _uiScope == null ? false : (bool)_uiScope.GetValue(TextBoxBase.IsReadOnlyCaretVisibleProperty);
src\Framework\System\windows\Documents\TextEditorMouse.cs (3)
527if (scroller != null && This.UiScope is TextBoxBase) 534double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 552double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth;
src\Framework\System\windows\Documents\TextSelection.cs (7)
353else if (!this.IsEmpty && (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty)) 361owner.SetValue(TextBoxBase.IsSelectionActivePropertyKey, isSelectionActive); 1629Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 2374if (textEditor.UiScope is TextBoxBase) 2376double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2377double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2418scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
732case 640: t = () => typeof(TextBoxBase); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (9)
7863Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 7864DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.AcceptsTabProperty; 7866this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8177Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8178DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.VerticalScrollBarVisibilityProperty; 8180this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType 8194Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase); 8195DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.HorizontalScrollBarVisibilityProperty; 8197this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9960typeof(System.Windows.Controls.Primitives.TextBoxBase),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6184case KnownElements.TextBoxBase: t = typeof(System.Windows.Controls.Primitives.TextBoxBase); break;