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)
1876
&& ((bool)((Control)_host).GetValue(
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty)
1877
|| (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)
78
TextBoxBase
.SelectionBrushProperty.OverrideMetadata(typeof(PasswordBox),
80
TextBoxBase
.SelectionTextBrushProperty.OverrideMetadata(typeof(PasswordBox),
82
TextBoxBase
.SelectionOpacityProperty.OverrideMetadata(typeof(PasswordBox),
84
TextBoxBase
.CaretBrushProperty.OverrideMetadata(typeof(PasswordBox),
269
/// <see cref="
TextBoxBase
.SelectionBrushProperty"/>
272
TextBoxBase
.SelectionBrushProperty.AddOwner(typeof(PasswordBox));
275
/// <see cref="
TextBoxBase
.SelectionBrushProperty" />
284
/// <see cref="
TextBoxBase
.SelectionTextBrushProperty"/>
287
TextBoxBase
.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox));
290
/// <see cref="
TextBoxBase
.SelectionTextBrushProperty"/>
299
/// <see cref="
TextBoxBase
.SelectionOpacityProperty"/>
302
TextBoxBase
.SelectionOpacityProperty.AddOwner(typeof(PasswordBox));
305
/// <see cref="
TextBoxBase
.SelectionOpacityProperty"/>
314
/// <see cref="
TextBoxBase
.CaretBrushProperty"/>
317
TextBoxBase
.CaretBrushProperty.AddOwner(typeof(PasswordBox));
329
/// <see cref="
TextBoxBase
.IsSelectionActiveProperty"/>
332
TextBoxBase
.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox));
335
/// <see cref="
TextBoxBase
.IsSelectionActive"/>
343
/// <see cref="
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty"/>
346
TextBoxBase
.IsInactiveSelectionHighlightEnabledProperty.AddOwner(typeof(PasswordBox));
349
/// <see cref="
TextBoxBase
.IsInactiveSelectionHighlightEnabled"/>
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
64
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)));
426
typeof(
TextBoxBase
),
447
typeof(
TextBoxBase
),
468
KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(
TextBoxBase
));
491
typeof(
TextBoxBase
), // Property owner
520
typeof(
TextBoxBase
),
540
typeof(
TextBoxBase
),
683
DependencyProperty.Register("IsUndoEnabled", typeof(bool), typeof(
TextBoxBase
),
726
DependencyProperty.Register("UndoLimit", typeof(int), typeof(
TextBoxBase
),
755
typeof(
TextBoxBase
), // Property owner
781
DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(
TextBoxBase
),
800
DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(
TextBoxBase
),
831
DependencyProperty.Register("SelectionOpacity", typeof(double), typeof(
TextBoxBase
),
851
DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(
TextBoxBase
),
867
typeof(
TextBoxBase
),
879
DependencyProperty.Register("IsInactiveSelectionHighlightEnabled", typeof(bool), typeof(
TextBoxBase
));
904
typeof(
TextBoxBase
)); //
933
typeof(
TextBoxBase
)); //
1951
return ((
TextBoxBase
)d).ViewportHeight;
2053
TextBoxBase
textBox = (
TextBoxBase
)d;
2118
TextBoxBase
textBox = d as
TextBoxBase
;
2137
TextBoxBase
textBox = (
TextBoxBase
)d;
2152
TextBoxBase
textBox = (
TextBoxBase
)d;
2165
TextBoxBase
textBox = (
TextBoxBase
)d;
2186
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)
1535
TextBoxBase
textBoxBase = Content.InnerControl as
TextBoxBase
;
1560
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)
127
Brush selectionBrush = (Brush)owner.GetValue(
TextBoxBase
.SelectionBrushProperty);
134
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)
274
TextBoxBase
textBoxBase = _uiScope as
TextBoxBase
;
941
return _uiScope == null ? true : (bool)_uiScope.GetValue(
TextBoxBase
.AcceptsTabProperty);
948
_uiScope.SetValue(
TextBoxBase
.AcceptsTabProperty, value);
1075
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)
7903
Type type = typeof(System.Windows.Controls.Primitives.
TextBoxBase
);
7904
DependencyProperty dp = System.Windows.Controls.Primitives.
TextBoxBase
.AcceptsTabProperty;
7906
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
TextBoxBase
)), // DeclaringType
8217
Type type = typeof(System.Windows.Controls.Primitives.
TextBoxBase
);
8218
DependencyProperty dp = System.Windows.Controls.Primitives.
TextBoxBase
.VerticalScrollBarVisibilityProperty;
8220
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
TextBoxBase
)), // DeclaringType
8234
Type type = typeof(System.Windows.Controls.Primitives.
TextBoxBase
);
8235
DependencyProperty dp = System.Windows.Controls.Primitives.
TextBoxBase
.HorizontalScrollBarVisibilityProperty;
8237
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
TextBoxBase
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9962
typeof(System.Windows.Controls.Primitives.
TextBoxBase
),
System\Windows\Markup\KnownTypes.cs (1)
6194
case KnownElements.TextBoxBase: t = typeof(System.Windows.Controls.Primitives.
TextBoxBase
); break;