2 types derived from TextBoxBase
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (1)
28
public class RichTextBox :
TextBoxBase
, IAddChild
System\Windows\Controls\TextBox.cs (1)
31
public class TextBox :
TextBoxBase
, IAddChild, ITextBoxViewHost
173 references to TextBoxBase
PresentationFramework (173)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
467
TextBoxBase
textBox = startNode as
TextBoxBase
;
MS\Internal\Documents\TextBoxLine.cs (3)
210
Brush selectionBrush = uiScope.GetValue(
TextBoxBase
.SelectionBrushProperty) as Brush;
214
double selectionBrushOpacity = (double)uiScope.GetValue(
TextBoxBase
.SelectionOpacityProperty);
467
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)
1476
return IsComposing(d as
TextBoxBase
);
1479
internal 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)
39
internal CustomDictionarySources(
TextBoxBase
owner)
376
private readonly
TextBoxBase
_owner;
System\Windows\Controls\FlowDocumentReader.cs (15)
52
TextBoxBase
.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentReader),
54
TextBoxBase
.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentReader),
55
new 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"/>
615
TextBoxBase
.SelectionBrushProperty.AddOwner(typeof(FlowDocumentReader));
618
/// <see cref="
TextBoxBase
.SelectionOpacityProperty"/>
621
TextBoxBase
.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentReader));
624
/// <see cref="
TextBoxBase
.IsSelectionActiveProperty"/>
627
TextBoxBase
.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentReader));
630
/// <see cref="
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty"/>
633
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentReader));
System\Windows\Controls\FlowDocumentScrollViewer.cs (15)
59
TextBoxBase
.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer),
61
TextBoxBase
.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentScrollViewer),
62
new 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"/>
475
TextBoxBase
.SelectionBrushProperty.AddOwner(typeof(FlowDocumentScrollViewer));
478
/// <see cref="
TextBoxBase
.SelectionOpacityProperty"/>
481
TextBoxBase
.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentScrollViewer));
484
/// <see cref="
TextBoxBase
.IsSelectionActiveProperty"/>
487
TextBoxBase
.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentScrollViewer));
490
/// <see cref="
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty"/>
493
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentScrollViewer));
System\Windows\Controls\PasswordBox.cs (21)
72
TextBoxBase
.SelectionBrushProperty.OverrideMetadata(typeof(PasswordBox),
74
TextBoxBase
.SelectionTextBrushProperty.OverrideMetadata(typeof(PasswordBox),
76
TextBoxBase
.SelectionOpacityProperty.OverrideMetadata(typeof(PasswordBox),
78
TextBoxBase
.CaretBrushProperty.OverrideMetadata(typeof(PasswordBox),
262
/// <see cref="
TextBoxBase
.SelectionBrushProperty"/>
265
TextBoxBase
.SelectionBrushProperty.AddOwner(typeof(PasswordBox));
268
/// <see cref="
TextBoxBase
.SelectionBrushProperty" />
277
/// <see cref="
TextBoxBase
.SelectionTextBrushProperty"/>
280
TextBoxBase
.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox));
283
/// <see cref="
TextBoxBase
.SelectionTextBrushProperty"/>
292
/// <see cref="
TextBoxBase
.SelectionOpacityProperty"/>
295
TextBoxBase
.SelectionOpacityProperty.AddOwner(typeof(PasswordBox));
298
/// <see cref="
TextBoxBase
.SelectionOpacityProperty"/>
307
/// <see cref="
TextBoxBase
.CaretBrushProperty"/>
310
TextBoxBase
.CaretBrushProperty.AddOwner(typeof(PasswordBox));
322
/// <see cref="
TextBoxBase
.IsSelectionActiveProperty"/>
325
TextBoxBase
.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox));
328
/// <see cref="
TextBoxBase
.IsSelectionActive"/>
336
/// <see cref="
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty"/>
339
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(PasswordBox));
342
/// <see cref="
TextBoxBase
.IsInactiveSelectionHighlightEnabled"/>
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
53
TextBoxBase
.AutoWordSelectionProperty.OverrideMetadata(typeof(DocumentViewerBase), new FrameworkPropertyMetadata(true));
System\Windows\Controls\Primitives\TextBoxBase.cs (37)
50
DefaultStyleKeyProperty.OverrideMetadata(typeof(
TextBoxBase
), new FrameworkPropertyMetadata(typeof(
TextBoxBase
)));
51
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
TextBoxBase
));
54
Control.PaddingProperty.OverrideMetadata(typeof(
TextBoxBase
),
59
InputMethod.IsInputMethodEnabledProperty.OverrideMetadata(typeof(
TextBoxBase
),
62
IsEnabledProperty.OverrideMetadata(typeof(
TextBoxBase
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
63
IsMouseOverPropertyKey.OverrideMetadata(typeof(
TextBoxBase
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
428
typeof(
TextBoxBase
),
449
typeof(
TextBoxBase
),
470
KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(
TextBoxBase
));
493
typeof(
TextBoxBase
), // Property owner
522
typeof(
TextBoxBase
),
542
typeof(
TextBoxBase
),
685
DependencyProperty.Register("IsUndoEnabled", typeof(bool), typeof(
TextBoxBase
),
728
DependencyProperty.Register("UndoLimit", typeof(int), typeof(
TextBoxBase
),
757
typeof(
TextBoxBase
), // Property owner
783
DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(
TextBoxBase
),
802
DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(
TextBoxBase
),
833
DependencyProperty.Register("SelectionOpacity", typeof(double), typeof(
TextBoxBase
),
853
DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(
TextBoxBase
),
869
typeof(
TextBoxBase
),
881
DependencyProperty.Register("IsInactiveSelectionHighlightEnabled", typeof(bool), typeof(
TextBoxBase
));
906
typeof(
TextBoxBase
)); //
935
typeof(
TextBoxBase
)); //
1953
return ((
TextBoxBase
)d).ViewportHeight;
2052
TextBoxBase
textBox = (
TextBoxBase
)d;
2117
TextBoxBase
textBox = d as
TextBoxBase
;
2136
TextBoxBase
textBox = (
TextBoxBase
)d;
2151
TextBoxBase
textBox = (
TextBoxBase
)d;
2164
TextBoxBase
textBox = (
TextBoxBase
)d;
2185
TextBoxBase
textBoxBase = (
TextBoxBase
)d;
System\Windows\Controls\RichTextBox.cs (3)
50
TextBoxBase
.AutoWordSelectionProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true));
57
TextBoxBase
.SelectionOpacityProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(
TextBoxBase
.AdornerSelectionOpacityDefaultValue));
System\Windows\Controls\SinglePageViewer.cs (15)
55
TextBoxBase
.SelectionBrushProperty.OverrideMetadata(typeof(FlowDocumentPageViewer),
57
TextBoxBase
.SelectionOpacityProperty.OverrideMetadata(typeof(FlowDocumentPageViewer),
58
new 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"/>
330
TextBoxBase
.SelectionBrushProperty.AddOwner(typeof(FlowDocumentPageViewer));
333
/// <see cref="
TextBoxBase
.SelectionOpacityProperty"/>
336
TextBoxBase
.SelectionOpacityProperty.AddOwner(typeof(FlowDocumentPageViewer));
340
/// <see cref="
TextBoxBase
.IsSelectionActiveProperty"/>
343
TextBoxBase
.IsSelectionActiveProperty.AddOwner(typeof(FlowDocumentPageViewer));
346
/// <see cref="
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty"/>
349
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(FlowDocumentPageViewer));
System\Windows\Controls\SpellCheck.cs (12)
30
internal SpellCheck(
TextBoxBase
owner)
67
public static void SetIsEnabled(
TextBoxBase
textBoxBase, bool value)
77
public static bool GetIsEnabled(
TextBoxBase
textBoxBase)
122
public static void SetSpellingReform(
TextBoxBase
textBoxBase, SpellingReform value)
161
public static IList GetCustomDictionaries(
TextBoxBase
textBoxBase)
175
/// Attached property representing location of custom dicitonaries for given <see cref="
TextBoxBase
"/>
192
TextBoxBase
textBoxBase = d as
TextBoxBase
;
212
TextBoxBase
textBoxBase = d as
TextBoxBase
;
245
return new CustomDictionarySources(owner as
TextBoxBase
);
259
private readonly
TextBoxBase
_owner;
System\Windows\Controls\StickyNote.cs (4)
1530
TextBoxBase
textBoxBase = Content.InnerControl as
TextBoxBase
;
1555
TextBoxBase
textBoxBase = Content.InnerControl as
TextBoxBase
;
System\Windows\Data\BindingExpressionBase.cs (6)
925
System.Windows.Controls.Primitives.
TextBoxBase
tbb = target as System.Windows.Controls.Primitives.
TextBoxBase
;
956
System.Windows.Controls.Primitives.
TextBoxBase
tbb = TargetElement as System.Windows.Controls.Primitives.
TextBoxBase
;
1316
System.Windows.Controls.Primitives.
TextBoxBase
tbb = Target as System.Windows.Controls.Primitives.
TextBoxBase
;
System\windows\Documents\CaretElement.cs (2)
126
Brush selectionBrush = (Brush)owner.GetValue(
TextBoxBase
.SelectionBrushProperty);
133
double selectionOpacity = (double)owner.GetValue(
TextBoxBase
.SelectionOpacityProperty);
System\Windows\Documents\CompositionAdorner.cs (2)
172
selectionBrush = (Brush)owner.GetValue(
TextBoxBase
.SelectionBrushProperty);
173
selectionOpacity = (double)owner.GetValue(
TextBoxBase
.SelectionOpacityProperty);
System\windows\Documents\TextEditor.cs (5)
269
TextBoxBase
textBoxBase = _uiScope as
TextBoxBase
;
938
return _uiScope == null ? true : (bool)_uiScope.GetValue(
TextBoxBase
.AcceptsTabProperty);
945
_uiScope.SetValue(
TextBoxBase
.AcceptsTabProperty, value);
1072
return _uiScope == null ? false : (bool)_uiScope.GetValue(
TextBoxBase
.IsReadOnlyCaretVisibleProperty);
System\windows\Documents\TextEditorMouse.cs (3)
511
if (scroller != null && This.UiScope is
TextBoxBase
)
518
double pageHeight = (double)((
TextBoxBase
)This.UiScope).ViewportHeight;
536
double pageWidth = (double)((
TextBoxBase
)This.UiScope).ViewportWidth;
System\windows\Documents\TextSelection.cs (7)
347
else if (!this.IsEmpty && (bool)owner.GetValue(
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty))
355
owner.SetValue(
TextBoxBase
.IsSelectionActivePropertyKey, isSelectionActive);
1623
Brush caretBrush = (Brush)textEditor.UiScope.GetValue(
TextBoxBase
.CaretBrushProperty);
2363
if (textEditor.UiScope is
TextBoxBase
)
2365
double viewportWidth = ((
TextBoxBase
)textEditor.UiScope).ViewportWidth;
2366
double extentWidth = ((
TextBoxBase
)textEditor.UiScope).ExtentWidth;
2407
scrollToOriginPosition -= ((
TextBoxBase
)textEditor.UiScope).HorizontalOffset;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
734
case 640: t = () => typeof(
TextBoxBase
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (9)
8541
Type type = typeof(System.Windows.Controls.Primitives.
TextBoxBase
);
8542
DependencyProperty dp = System.Windows.Controls.Primitives.
TextBoxBase
.AcceptsTabProperty;
8544
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
TextBoxBase
)), // DeclaringType
8891
Type type = typeof(System.Windows.Controls.Primitives.
TextBoxBase
);
8892
DependencyProperty dp = System.Windows.Controls.Primitives.
TextBoxBase
.VerticalScrollBarVisibilityProperty;
8894
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
TextBoxBase
)), // DeclaringType
8910
Type type = typeof(System.Windows.Controls.Primitives.
TextBoxBase
);
8911
DependencyProperty dp = System.Windows.Controls.Primitives.
TextBoxBase
.HorizontalScrollBarVisibilityProperty;
8913
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
TextBoxBase
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11052
typeof(System.Windows.Controls.Primitives.
TextBoxBase
),
System\Windows\Markup\KnownTypes.cs (1)
6188
case KnownElements.TextBoxBase: t = typeof(System.Windows.Controls.Primitives.
TextBoxBase
); break;