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