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