1 type derived from TextBlock
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (1)
632
internal class TextBlockWrapper :
TextBlock
15 instantiations of TextBlock
PresentationFramework (9)
src\Framework\System\Windows\Controls\AccessText.cs (1)
514
_textBlock = new
TextBlock
();
src\Framework\System\Windows\Controls\ContentPresenter.cs (1)
967
TextBlock text = new
TextBlock
();
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
173
TextBlock outerBlock = new
TextBlock
();
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
85
TextBlock textBlock = new
TextBlock
();
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
591
cell = new
TextBlock
();
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
1313
TextBlock lbl = new
TextBlock
();
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
518
TextBlock text = new
TextBlock
();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9928
bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.
TextBlock
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1592
case KnownElements.TextBlock: o = new System.Windows.Controls.
TextBlock
(); break;
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
39
Child = new
TextBlock
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
70
TextBlock toolTip = new
TextBlock
();
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
29
Child = new
TextBlock
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
94
TextBlock text = new
TextBlock
();
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
73
this.text = new
TextBlock
();
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
88
TextBlock text = new
TextBlock
();
219 references to TextBlock
PresentationFramework (185)
src\Framework\MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
52
text.SetBinding(
TextBlock
.TextProperty, binding);
67
text.SetBinding(
TextBlock
.TextProperty, binding);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
555
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
577
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
674
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
src\Framework\MS\Internal\Documents\TextParagraphView.cs (2)
51
internal TextParagraphView(System.Windows.Controls.
TextBlock
owner, ITextContainer textContainer)
821
private readonly System.Windows.Controls.
TextBlock
_owner;
src\Framework\MS\Internal\LayoutDump.cs (4)
456
AddUIElementDumpHandler(typeof(System.Windows.Controls.
TextBlock
), new DumpCustomUIElement(DumpText));
484
System.Windows.Controls.
TextBlock
text = element as System.Windows.Controls.
TextBlock
;
499
writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(
TextBlock
.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture));
src\Framework\MS\Internal\PtsHost\RunClient.cs (2)
63
double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(
TextBlock
.BaselineOffsetProperty);
86
double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(
TextBlock
.BaselineOffsetProperty);
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
148
internal ComplexLine(System.Windows.Controls.
TextBlock
owner) : base(owner)
src\Framework\MS\Internal\Text\InlineObject.cs (4)
37
internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.
TextBlock
host)
59
double baselineOffsetValue = (double) Element.GetValue(
TextBlock
.BaselineOffsetProperty);
81
double baselineOffsetValue = (double)Element.GetValue(
TextBlock
.BaselineOffsetProperty);
192
private readonly System.Windows.Controls.
TextBlock
_host;
src\Framework\MS\Internal\Text\Line.cs (2)
69
internal Line(System.Windows.Controls.
TextBlock
owner)
636
protected System.Windows.Controls.
TextBlock
_owner;
src\Framework\MS\Internal\Text\LineProperties.cs (3)
141
if (contentHost is
TextBlock
|| contentHost is ITextBoxViewHost)
146
_textWrapping = (TextWrapping)contentHost.GetValue(
TextBlock
.TextWrappingProperty);
147
_textTrimming = (TextTrimming)contentHost.GetValue(
TextBlock
.TextTrimmingProperty);
src\Framework\MS\Internal\Text\SimpleLine.cs (1)
131
internal SimpleLine(System.Windows.Controls.
TextBlock
owner, string content, TextRunProperties textProps) : base(owner)
src\Framework\MS\Internal\Text\TextLineResult.cs (2)
240
internal TextLineResult(System.Windows.Controls.
TextBlock
owner, int dcp, int cch, Rect layoutBox, double baseline, int index)
282
private readonly System.Windows.Controls.
TextBlock
_owner;
src\Framework\MS\Internal\Text\TextProperties.cs (2)
266
TextBlock
tb = element as
TextBlock
;
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
33
internal GridViewCellAutomationPeer(
TextBlock
owner, ListViewAutomationPeer parent)
49
if (Owner is
TextBlock
)
74
if (Owner is
TextBlock
)
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
73
else if (ele is
TextBlock
)
75
peer = new GridViewCellAutomationPeer((
TextBlock
)ele, _listviewAP);
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
62
if (obj is string || obj is
TextBlock
src\Framework\System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (5)
27
public TextBlockAutomationPeer(
TextBlock
owner)
37
TextBlock
owner = (
TextBlock
)Owner;
69
TextBlock
tb = (
TextBlock
)Owner;
src\Framework\System\Windows\Controls\AccessText.cs (5)
357
TextBlock
.TextTrimmingProperty.AddOwner(
378
TextBlock
.TextWrappingProperty.AddOwner(
399
TextBlock
.BaselineOffsetProperty.AddOwner(typeof(AccessText), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnPropertyChanged)));
467
internal
TextBlock
TextBlock
783
private
TextBlock
_textBlock;
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1608
TextBlock
text;
1613
if ((text = d as
TextBlock
) != null)
src\Framework\System\Windows\Controls\ContentPresenter.cs (9)
66
text.SetValue(
TextBlock
.TextProperty, new TemplateBindingExtension(ContentProperty));
76
text.SetBinding(
TextBlock
.TextProperty, binding);
740
text.SetBinding(
TextBlock
.TextProperty, binding);
764
text.SetBinding(
TextBlock
.TextProperty, binding);
959
FrameworkElementFactory text = new FrameworkElementFactory(typeof(
TextBlock
));
965
static
TextBlock
CreateTextBlock(ContentPresenter container)
967
TextBlock
text = new TextBlock();
1069
TextBlock
textBlock = CreateTextBlock(container);
1085
private void DoDefaultExpansion(
TextBlock
textBlock, object content, ContentPresenter container)
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (3)
125
TextBlock
outerBlock = cell.Content as
TextBlock
;
173
TextBlock
outerBlock = new TextBlock();
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (4)
40
Style style = new Style(typeof(
TextBlock
));
43
style.Setters.Add(new Setter(
TextBlock
.MarginProperty, new Thickness(2.0, 0.0, 2.0, 0.0)));
85
TextBlock
textBlock = new TextBlock();
90
ApplyBinding(textBlock,
TextBlock
.TextProperty);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (4)
318
if (binding != null && cell is
TextBlock
)
320
cell.SetBinding(
TextBlock
.TextProperty, binding);
597
cell.SetBinding(
TextBlock
.TextProperty, binding);
659
Debug.Assert(cell is
TextBlock
, "cells are either TextBlocks or ContentPresenters");
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (9)
339
TextBlock
textElement = ((
TextBlock
)text);
383
private
TextBlock
FindText(Visual root)
386
TextBlock
text = root as
TextBlock
;
398
TextBlock
textBlock = child as
TextBlock
;
406
textBlock = VisualTreeHelper.GetChild(accessText, 0) as
TextBlock
;
419
return VisualTreeHelper.GetChild(accessText, 0) as
TextBlock
;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
1313
TextBlock
lbl = new TextBlock();
src\Framework\System\Windows\Controls\TextBlock.cs (39)
333
typeof(
TextBlock
),
343
typographyProperties[i].OverrideMetadata(typeof(
TextBlock
), new FrameworkPropertyMetadata(onTypographyChanged));
346
EventManager.RegisterClassHandler(typeof(
TextBlock
), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView));
347
DefaultStyleKeyProperty.OverrideMetadata(typeof(
TextBlock
), new FrameworkPropertyMetadata(typeof(
TextBlock
)));
549
typeof(
TextBlock
),
600
typeof(
TextBlock
),
626
TextBlock
textblock = (
TextBlock
)d;
657
TextElement.FontFamilyProperty.AddOwner(typeof(
TextBlock
));
703
TextElement.FontStyleProperty.AddOwner(typeof(
TextBlock
));
748
TextElement.FontWeightProperty.AddOwner(typeof(
TextBlock
));
793
TextElement.FontStretchProperty.AddOwner(typeof(
TextBlock
));
839
typeof(
TextBlock
));
888
typeof(
TextBlock
));
934
typeof(
TextBlock
),
954
typeof(
TextBlock
),
974
typeof(
TextBlock
),
992
Block.LineHeightProperty.AddOwner(typeof(
TextBlock
));
1038
Block.LineStackingStrategyProperty.AddOwner(typeof(
TextBlock
));
1083
typeof(
TextBlock
),
1101
Block.TextAlignmentProperty.AddOwner(typeof(
TextBlock
));
1149
typeof(
TextBlock
),
1173
typeof(
TextBlock
),
1193
Block.IsHyphenationEnabledProperty.AddOwner(typeof(
TextBlock
));
2894
((
TextBlock
) d).SetFlags(true, Flags.IsTypographySet);
3464
TextBlock
textBlock = sender as
TextBlock
;
3469
if (
TextBlock
.ContainsContentElement(textBlock, child))
3491
private static bool ContainsContentElement(
TextBlock
textBlock, ContentElement element)
3713
TextBlock
tb = parent as
TextBlock
;
3906
internal ComplexContent(
TextBlock
owner, ITextContainer textContainer, bool foreignTextContianer, string content)
3921
TextBlock
.InsertTextRun(this.TextContainer.End, content, /*whitespacesIgnorable:*/false);
3934
internal void Detach(
TextBlock
owner)
4049
TextBlock
tb = (
TextBlock
) d;
4081
TextBlock
text = (
TextBlock
) d;
src\Framework\System\Windows\Controls\TextBox.cs (1)
611
TextBlock
.TextWrappingProperty.AddOwner(
src\Framework\System\Windows\Documents\InlineCollection.cs (3)
197
if (this.Parent is
TextBlock
)
199
TextBlock
textBlock = (
TextBlock
)this.Parent;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
518
TextBlock
text = new TextBlock();
src\Framework\System\Windows\Documents\TextElementCollection.cs (3)
44
Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is
TextBlock
);
726
if (_owner is
TextBlock
)
728
textContainer = (TextContainer)((
TextBlock
)_owner).TextContainer;
src\Framework\System\Windows\Documents\TextPointer.cs (5)
26
/// <see cref="
TextBlock
"/> or <see cref="FlowDocument"/>.
72
/// methods like <see cref="
TextBlock
.GetPositionFromPoint"/>.</para>
421
/// <see cref="
TextBlock
"/> or <see cref="FlowDocument"/>.
1700
/// which can be one of <see cref="
TextBlock
"/> or
1717
/// which can be one of <see cref="
TextBlock
"/> or
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
458
while (value == null && (element is Inline || element is Paragraph || element is
TextBlock
))
src\Framework\System\Windows\Documents\TextSchema.cs (2)
822
else if (typeof(
TextBlock
).IsAssignableFrom(parentType))
1204
TextBlock
.BaselineOffsetProperty,
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
730
case 638: t = () => typeof(
TextBlock
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (39)
3426
Type type = typeof(System.Windows.Controls.
TextBlock
);
3427
DependencyProperty dp = System.Windows.Controls.
TextBlock
.BackgroundProperty;
3429
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3443
Type type = typeof(System.Windows.Controls.
TextBlock
);
3444
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontFamilyProperty;
3446
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3460
Type type = typeof(System.Windows.Controls.
TextBlock
);
3461
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontSizeProperty;
3463
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3477
Type type = typeof(System.Windows.Controls.
TextBlock
);
3478
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontStretchProperty;
3480
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3494
Type type = typeof(System.Windows.Controls.
TextBlock
);
3495
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontStyleProperty;
3497
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3511
Type type = typeof(System.Windows.Controls.
TextBlock
);
3512
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontWeightProperty;
3514
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3528
Type type = typeof(System.Windows.Controls.
TextBlock
);
3529
DependencyProperty dp = System.Windows.Controls.
TextBlock
.ForegroundProperty;
3531
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3545
Type type = typeof(System.Windows.Controls.
TextBlock
);
3546
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextProperty;
3548
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3562
Type type = typeof(System.Windows.Controls.
TextBlock
);
3563
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextDecorationsProperty;
3565
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3579
Type type = typeof(System.Windows.Controls.
TextBlock
);
3580
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextTrimmingProperty;
3582
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3596
Type type = typeof(System.Windows.Controls.
TextBlock
);
3597
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextWrappingProperty;
3599
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
5850
Type type = typeof(System.Windows.Controls.
TextBlock
);
5852
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
5858
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.
TextBlock
)target).Inlines; };
7359
Type type = typeof(System.Windows.Controls.
TextBlock
);
7360
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextAlignmentProperty;
7362
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9926
typeof(System.Windows.Controls.
TextBlock
),
src\Framework\System\Windows\Markup\KnownTypes.cs (13)
1889
return System.Windows.Controls.
TextBlock
.BackgroundProperty;
1891
return System.Windows.Controls.
TextBlock
.FontFamilyProperty;
1893
return System.Windows.Controls.
TextBlock
.FontSizeProperty;
1895
return System.Windows.Controls.
TextBlock
.FontStretchProperty;
1897
return System.Windows.Controls.
TextBlock
.FontStyleProperty;
1899
return System.Windows.Controls.
TextBlock
.FontWeightProperty;
1901
return System.Windows.Controls.
TextBlock
.ForegroundProperty;
1903
return System.Windows.Controls.
TextBlock
.TextProperty;
1905
return System.Windows.Controls.
TextBlock
.TextDecorationsProperty;
1907
return System.Windows.Controls.
TextBlock
.TextTrimmingProperty;
1909
return System.Windows.Controls.
TextBlock
.TextWrappingProperty;
2526
case KnownElements.TextBlock: return (o as System.Windows.Controls.
TextBlock
).Inlines;
6182
case KnownElements.TextBlock: t = typeof(System.Windows.Controls.
TextBlock
); break;
System.Activities.Core.Presentation (6)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (2)
70
TextBlock
toolTip = new TextBlock();
71
toolTip.SetBinding(
TextBlock
.TextProperty, new Binding()
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (2)
63
TextBlock
addNewCaseLabel;
370
this.addNewCaseLabel = (
TextBlock
)sender;
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (2)
45
private
TextBlock
addNewTransitionLabel = null;
384
this.addNewTransitionLabel = (
TextBlock
)sender;
System.Activities.Presentation (28)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (2)
108
private
TextBlock
_informationLabel;
110
public InfoTextBlockAutomationPeer(
TextBlock
informationLabel)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (2)
38
private static string _textBlockTextPropertyName = System.Windows.Controls.
TextBlock
.TextProperty.Name;
520
if (typeof(System.Windows.Controls.
TextBlock
).IsAssignableFrom(_properties[0].Parent.ItemType)) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (2)
76
if (resolveReferences && !(typeof(System.Windows.Controls.
TextBlock
).IsAssignableFrom(property.Parent.ItemType) &&
77
property.Name.Equals(System.Windows.Controls.
TextBlock
.TextProperty.Name)))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (3)
358
internal
TextBlock
SelectionTypeLabel
366
internal
TextBlock
NoSearchResultsLabel
368
internal
TextBlock
UninitializedLabel
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyToolBar.cs (2)
182
internal
TextBlock
SearchLabel
183
{ get { return VisualTreeUtils.GetNamedChild<
TextBlock
>(this, "PART_SearchLabel"); } }
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (4)
815
TextBlock
toggleButtonTextBlock = toggleButton.Template.FindName("collapseAllText", toggleButton) as
TextBlock
;
1228
zoomPickerTextBox.SetValue(
TextBlock
.ForegroundProperty, this.Resources["ShellBarForegroundActiveColor"] as SolidColorBrush);
1240
zoomPickerTextBox.SetValue(
TextBlock
.ForegroundProperty, this.Resources["ShellBarForegroundInactiveColor"] as SolidColorBrush);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionValueEditor.cs (2)
79
TextBlock
hint = VisualTreeUtils.GetNamedChild<
TextBlock
>(presenter, "PART_hintText");
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (6)
364
TextBlock
tb = (
TextBlock
)this.ContentTemplate.FindName("expresionTextBlock", presenter);
403
TextBlock
textBlock = sender as
TextBlock
;
423
TextBlock
textBlock = sender as
TextBlock
;
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
94
TextBlock
text = new TextBlock();
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
66
TextBlock
text;
74
this.text.SetBinding(
TextBlock
.TextProperty, "HintText");
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
88
TextBlock
text = new TextBlock();
90
text.SetBinding(
TextBlock
.TextProperty, "HintText");