11 instantiations of TextBlock
PresentationFramework (9)
System\Windows\Controls\AccessText.cs (1)
511
_textBlock = new
TextBlock
();
System\Windows\Controls\ContentPresenter.cs (1)
969
TextBlock text = new
TextBlock
();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
161
TextBlock outerBlock = new
TextBlock
();
System\Windows\Controls\DataGridTextColumn.cs (1)
80
TextBlock textBlock = new
TextBlock
();
System\Windows\Controls\GridViewRowPresenter.cs (1)
583
cell = new
TextBlock
System\Windows\Controls\Primitives\Popup.cs (1)
1311
TextBlock lbl = new
TextBlock
System\windows\Documents\TextEditorContextMenu.cs (1)
489
TextBlock text = new
TextBlock
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11016
DefaultConstructor = delegate () { return new System.Windows.Controls.
TextBlock
(); },
System\Windows\Markup\KnownTypes.cs (1)
1584
case KnownElements.TextBlock: o = new System.Windows.Controls.
TextBlock
(); break;
PresentationUI (2)
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
123
_frameworkElement = new
TextBlock
();
MS\Internal\Documents\SignatureResourceHelper.cs (1)
149
_frameworkElement = new
TextBlock
();
234 references to TextBlock
PresentationFramework (183)
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
48
text.SetBinding(
TextBlock
.TextProperty, binding);
65
text.SetBinding(
TextBlock
.TextProperty, binding);
MS\Internal\Documents\TextContainerHelper.cs (3)
546
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
568
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
665
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
MS\Internal\Documents\TextParagraphView.cs (2)
37
internal TextParagraphView(System.Windows.Controls.
TextBlock
owner, ITextContainer textContainer)
792
private readonly System.Windows.Controls.
TextBlock
_owner;
MS\Internal\LayoutDump.cs (4)
451
AddUIElementDumpHandler(typeof(System.Windows.Controls.
TextBlock
), new DumpCustomUIElement(DumpText));
479
System.Windows.Controls.
TextBlock
text = element as System.Windows.Controls.
TextBlock
;
494
writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(
TextBlock
.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture));
MS\Internal\PtsHost\RunClient.cs (2)
56
double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(
TextBlock
.BaselineOffsetProperty);
79
double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(
TextBlock
.BaselineOffsetProperty);
MS\Internal\Text\ComplexLine.cs (1)
136
internal ComplexLine(System.Windows.Controls.
TextBlock
owner) : base(owner)
MS\Internal\Text\InlineObject.cs (4)
29
internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.
TextBlock
host)
51
double baselineOffsetValue = (double) Element.GetValue(
TextBlock
.BaselineOffsetProperty);
73
double baselineOffsetValue = (double)Element.GetValue(
TextBlock
.BaselineOffsetProperty);
184
private readonly System.Windows.Controls.
TextBlock
_host;
MS\Internal\Text\Line.cs (2)
55
internal Line(System.Windows.Controls.
TextBlock
owner)
622
protected System.Windows.Controls.
TextBlock
_owner;
MS\Internal\Text\LineProperties.cs (3)
133
if (contentHost is
TextBlock
|| contentHost is ITextBoxViewHost)
138
_textWrapping = (TextWrapping)contentHost.GetValue(
TextBlock
.TextWrappingProperty);
139
_textTrimming = (TextTrimming)contentHost.GetValue(
TextBlock
.TextTrimmingProperty);
MS\Internal\Text\SimpleLine.cs (1)
119
internal SimpleLine(System.Windows.Controls.
TextBlock
owner, string content, TextRunProperties textProps) : base(owner)
MS\Internal\Text\TextLineResult.cs (2)
230
internal TextLineResult(System.Windows.Controls.
TextBlock
owner, int dcp, int cch, Rect layoutBox, double baseline, int index)
272
private readonly System.Windows.Controls.
TextBlock
_owner;
MS\Internal\Text\TextProperties.cs (2)
256
TextBlock
tb = element as
TextBlock
;
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
24
internal GridViewCellAutomationPeer(
TextBlock
owner, ListViewAutomationPeer parent)
40
if (Owner is
TextBlock
)
65
if (Owner is
TextBlock
)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
64
else if (ele is
TextBlock
)
66
peer = new GridViewCellAutomationPeer((
TextBlock
)ele, _listviewAP);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
54
if (obj is string || obj is
TextBlock
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (5)
23
public TextBlockAutomationPeer(
TextBlock
owner)
33
TextBlock
owner = (
TextBlock
)Owner;
65
TextBlock
tb = (
TextBlock
)Owner;
System\Windows\Controls\AccessText.cs (5)
354
TextBlock
.TextTrimmingProperty.AddOwner(
375
TextBlock
.TextWrappingProperty.AddOwner(
396
TextBlock
.BaselineOffsetProperty.AddOwner(typeof(AccessText), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnPropertyChanged)));
464
internal
TextBlock
TextBlock
782
private
TextBlock
_textBlock;
System\Windows\Controls\ComboBox.cs (2)
1583
TextBlock
text;
1588
if ((text = d as
TextBlock
) != null)
System\Windows\Controls\ContentPresenter.cs (9)
54
text.SetValue(
TextBlock
.TextProperty, new TemplateBindingExtension(ContentProperty));
66
text.SetBinding(
TextBlock
.TextProperty, binding);
736
text.SetBinding(
TextBlock
.TextProperty, binding);
764
text.SetBinding(
TextBlock
.TextProperty, binding);
961
FrameworkElementFactory text = new FrameworkElementFactory(typeof(
TextBlock
));
967
private static
TextBlock
CreateTextBlock(ContentPresenter container)
969
TextBlock
text = new TextBlock();
1070
TextBlock
textBlock = CreateTextBlock(container);
1086
private void DoDefaultExpansion(
TextBlock
textBlock, object content, ContentPresenter container)
System\Windows\Controls\DataGridHyperlinkColumn.cs (3)
116
TextBlock
outerBlock = cell.Content as
TextBlock
;
161
TextBlock
outerBlock = new TextBlock();
System\Windows\Controls\DataGridTextColumn.cs (4)
35
Style style = new Style(typeof(
TextBlock
));
38
style.Setters.Add(new Setter(
TextBlock
.MarginProperty, new Thickness(2.0, 0.0, 2.0, 0.0)));
80
TextBlock
textBlock = new TextBlock();
85
ApplyBinding(textBlock,
TextBlock
.TextProperty);
System\Windows\Controls\GridViewRowPresenter.cs (4)
311
if (binding != null && cell is
TextBlock
)
313
cell.SetBinding(
TextBlock
.TextProperty, binding);
590
cell.SetBinding(
TextBlock
.TextProperty, binding);
654
Debug.Assert(cell is
TextBlock
, "cells are either TextBlocks or ContentPresenters");
System\Windows\Controls\Primitives\BulletDecorator.cs (9)
331
TextBlock
textElement = ((
TextBlock
)text);
375
private
TextBlock
FindText(Visual root)
378
TextBlock
text = root as
TextBlock
;
390
TextBlock
textBlock = child as
TextBlock
;
398
textBlock = VisualTreeHelper.GetChild(accessText, 0) as
TextBlock
;
411
return VisualTreeHelper.GetChild(accessText, 0) as
TextBlock
;
System\Windows\Controls\Primitives\Popup.cs (1)
1311
TextBlock
lbl = new TextBlock
System\Windows\Controls\TextBlock.cs (39)
305
typeof(
TextBlock
),
315
typographyProperties[i].OverrideMetadata(typeof(
TextBlock
), new FrameworkPropertyMetadata(onTypographyChanged));
318
EventManager.RegisterClassHandler(typeof(
TextBlock
), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView));
319
DefaultStyleKeyProperty.OverrideMetadata(typeof(
TextBlock
), new FrameworkPropertyMetadata(typeof(
TextBlock
)));
518
typeof(
TextBlock
),
563
typeof(
TextBlock
),
589
TextBlock
textblock = (
TextBlock
)d;
620
TextElement.FontFamilyProperty.AddOwner(typeof(
TextBlock
));
660
TextElement.FontStyleProperty.AddOwner(typeof(
TextBlock
));
699
TextElement.FontWeightProperty.AddOwner(typeof(
TextBlock
));
738
TextElement.FontStretchProperty.AddOwner(typeof(
TextBlock
));
778
typeof(
TextBlock
));
821
typeof(
TextBlock
));
861
typeof(
TextBlock
),
881
typeof(
TextBlock
),
901
typeof(
TextBlock
),
919
Block.LineHeightProperty.AddOwner(typeof(
TextBlock
));
959
Block.LineStackingStrategyProperty.AddOwner(typeof(
TextBlock
));
998
typeof(
TextBlock
),
1016
Block.TextAlignmentProperty.AddOwner(typeof(
TextBlock
));
1058
typeof(
TextBlock
),
1082
typeof(
TextBlock
),
1102
Block.IsHyphenationEnabledProperty.AddOwner(typeof(
TextBlock
));
2783
((
TextBlock
) d).SetFlags(true, Flags.IsTypographySet);
3455
TextBlock
textBlock = sender as
TextBlock
;
3460
if (
TextBlock
.ContainsContentElement(textBlock, child))
3482
private static bool ContainsContentElement(
TextBlock
textBlock, ContentElement element)
3704
TextBlock
tb = parent as
TextBlock
;
3897
internal ComplexContent(
TextBlock
owner, ITextContainer textContainer, bool foreignTextContianer, string content)
3912
TextBlock
.InsertTextRun(this.TextContainer.End, content, /*whitespacesIgnorable:*/false);
3925
internal void Detach(
TextBlock
owner)
4040
TextBlock
tb = (
TextBlock
) d;
4072
TextBlock
text = (
TextBlock
) d;
System\Windows\Controls\TextBox.cs (1)
576
TextBlock
.TextWrappingProperty.AddOwner(
System\Windows\Documents\InlineCollection.cs (1)
191
if (this.Parent is
TextBlock
textBlock)
System\windows\Documents\TextEditorContextMenu.cs (1)
489
TextBlock
text = new TextBlock
System\Windows\Documents\TextElementCollection.cs (3)
41
Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is
TextBlock
);
690
if (_owner is
TextBlock
)
692
textContainer = (TextContainer)((
TextBlock
)_owner).TextContainer;
System\Windows\Documents\TextPointer.cs (5)
18
/// <see cref="
TextBlock
"/> or <see cref="FlowDocument"/>.
64
/// methods like <see cref="
TextBlock
.GetPositionFromPoint"/>.</para>
407
/// <see cref="
TextBlock
"/> or <see cref="FlowDocument"/>.
1680
/// which can be one of <see cref="
TextBlock
"/> or
1697
/// which can be one of <see cref="
TextBlock
"/> or
System\Windows\Documents\TextRangeBase.cs (1)
443
while (value == null && (element is Inline || element is Paragraph || element is
TextBlock
))
System\Windows\Documents\TextSchema.cs (2)
813
else if (typeof(
TextBlock
).IsAssignableFrom(parentType))
1195
TextBlock
.BaselineOffsetProperty,
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
731
case 638: t = () => typeof(
TextBlock
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (39)
3573
Type type = typeof(System.Windows.Controls.
TextBlock
);
3574
DependencyProperty dp = System.Windows.Controls.
TextBlock
.BackgroundProperty;
3576
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3592
Type type = typeof(System.Windows.Controls.
TextBlock
);
3593
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontFamilyProperty;
3595
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3611
Type type = typeof(System.Windows.Controls.
TextBlock
);
3612
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontSizeProperty;
3614
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3630
Type type = typeof(System.Windows.Controls.
TextBlock
);
3631
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontStretchProperty;
3633
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3649
Type type = typeof(System.Windows.Controls.
TextBlock
);
3650
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontStyleProperty;
3652
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3668
Type type = typeof(System.Windows.Controls.
TextBlock
);
3669
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontWeightProperty;
3671
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3687
Type type = typeof(System.Windows.Controls.
TextBlock
);
3688
DependencyProperty dp = System.Windows.Controls.
TextBlock
.ForegroundProperty;
3690
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3706
Type type = typeof(System.Windows.Controls.
TextBlock
);
3707
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextProperty;
3709
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3725
Type type = typeof(System.Windows.Controls.
TextBlock
);
3726
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextDecorationsProperty;
3728
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3744
Type type = typeof(System.Windows.Controls.
TextBlock
);
3745
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextTrimmingProperty;
3747
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3763
Type type = typeof(System.Windows.Controls.
TextBlock
);
3764
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextWrappingProperty;
3766
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
6301
Type type = typeof(System.Windows.Controls.
TextBlock
);
6303
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
6310
GetDelegate = delegate (object target) { return ((System.Windows.Controls.
TextBlock
)target).Inlines; },
7982
Type type = typeof(System.Windows.Controls.
TextBlock
);
7983
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextAlignmentProperty;
7985
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11013
typeof(System.Windows.Controls.
TextBlock
),
System\Windows\Markup\KnownTypes.cs (13)
1883
return System.Windows.Controls.
TextBlock
.BackgroundProperty;
1885
return System.Windows.Controls.
TextBlock
.FontFamilyProperty;
1887
return System.Windows.Controls.
TextBlock
.FontSizeProperty;
1889
return System.Windows.Controls.
TextBlock
.FontStretchProperty;
1891
return System.Windows.Controls.
TextBlock
.FontStyleProperty;
1893
return System.Windows.Controls.
TextBlock
.FontWeightProperty;
1895
return System.Windows.Controls.
TextBlock
.ForegroundProperty;
1897
return System.Windows.Controls.
TextBlock
.TextProperty;
1899
return System.Windows.Controls.
TextBlock
.TextDecorationsProperty;
1901
return System.Windows.Controls.
TextBlock
.TextTrimmingProperty;
1903
return System.Windows.Controls.
TextBlock
.TextWrappingProperty;
2526
case KnownElements.TextBlock: return (o as System.Windows.Controls.
TextBlock
).Inlines;
6185
case KnownElements.TextBlock: t = typeof(System.Windows.Controls.
TextBlock
); break;
PresentationUI (26)
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
51
_infoBarText = infoBarButton.Template.FindName("PUIInfoBarText", infoBarButton) as
TextBlock
;
189
private
TextBlock
_infoBarText;
src\wpf\artifacts\obj\PresentationUI\x64\Release\net11.0\InstallationError.g.cs (6)
50
internal System.Windows.Controls.
TextBlock
txtTitle;
58
internal System.Windows.Controls.
TextBlock
Text;
66
internal System.Windows.Controls.
TextBlock
SupportUriText;
137
this.txtTitle = ((System.Windows.Controls.
TextBlock
)(target));
140
this.Text = ((System.Windows.Controls.
TextBlock
)(target));
143
this.SupportUriText = ((System.Windows.Controls.
TextBlock
)(target));
src\wpf\artifacts\obj\PresentationUI\x64\Release\net11.0\TenFeetInstallationError.g.cs (6)
50
internal System.Windows.Controls.
TextBlock
txtTitle;
58
internal System.Windows.Controls.
TextBlock
Text;
66
internal System.Windows.Controls.
TextBlock
SupportUriText;
145
this.txtTitle = ((System.Windows.Controls.
TextBlock
)(target));
148
this.Text = ((System.Windows.Controls.
TextBlock
)(target));
151
this.SupportUriText = ((System.Windows.Controls.
TextBlock
)(target));
src\wpf\artifacts\obj\PresentationUI\x64\Release\net11.0\TenFeetInstallationProgress.g.cs (12)
42
internal System.Windows.Controls.
TextBlock
PublisherText;
50
internal System.Windows.Controls.
TextBlock
ApplicationNameText;
66
internal System.Windows.Controls.
TextBlock
ProgressBarStatusText;
74
internal System.Windows.Controls.
TextBlock
DownloadFrom;
82
internal System.Windows.Controls.
TextBlock
CurrentBytesText;
90
internal System.Windows.Controls.
TextBlock
TotalBytesText;
134
this.PublisherText = ((System.Windows.Controls.
TextBlock
)(target));
137
this.ApplicationNameText = ((System.Windows.Controls.
TextBlock
)(target));
143
this.ProgressBarStatusText = ((System.Windows.Controls.
TextBlock
)(target));
146
this.DownloadFrom = ((System.Windows.Controls.
TextBlock
)(target));
149
this.CurrentBytesText = ((System.Windows.Controls.
TextBlock
)(target));
152
this.TotalBytesText = ((System.Windows.Controls.
TextBlock
)(target));
System.Windows.Controls.Ribbon (23)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (4)
60
text = new FrameworkElementFactory(typeof(
TextBlock
));
61
text.SetValue(
TextBlock
.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty));
837
TextBlock
text;
842
if ((text = d as
TextBlock
) != null)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (17)
31
[TemplatePart(Name = "PART_TextBlock1", Type = typeof(
TextBlock
))]
32
[TemplatePart(Name = "PART_TextBlock2", Type = typeof(
TextBlock
))]
50
private
TextBlock
_textBlock1, _textBlock2;
63
public static readonly DependencyProperty TextDecorationsProperty =
TextBlock
.TextDecorationsProperty.AddOwner(typeof(RibbonTwoLineText));
71
public static readonly DependencyProperty TextEffectsProperty =
TextBlock
.TextEffectsProperty.AddOwner(typeof(RibbonTwoLineText));
79
public static readonly DependencyProperty BaselineOffsetProperty =
TextBlock
.BaselineOffsetProperty.AddOwner(typeof(RibbonTwoLineText));
87
public static new readonly DependencyProperty PaddingProperty =
TextBlock
.PaddingProperty.AddOwner(typeof(RibbonTwoLineText));
102
TextBlock
.TextAlignmentProperty.AddOwner(typeof(RibbonTwoLineText));
117
TextBlock
.TextTrimmingProperty.AddOwner(typeof(RibbonTwoLineText));
134
TextBlock
.LineHeightProperty.AddOwner(typeof(RibbonTwoLineText));
149
TextBlock
.LineStackingStrategyProperty.AddOwner(typeof(RibbonTwoLineText));
202
TextBlock
.TextProperty.AddOwner(typeof(RibbonTwoLineText),
259
_textBlock1 = this.GetTemplateChild("PART_TextBlock1") as
TextBlock
;
260
_textBlock2 = this.GetTemplateChild("PART_TextBlock2") as
TextBlock
;
362
_textBlock1.ClearValue(
TextBlock
.TextWrappingProperty);
430
_textBlock1.ClearValue(
TextBlock
.WidthProperty);
433
_textBlock1.ClearValue(
TextBlock
.TextWrappingProperty);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
629
TextBlock
textBlock;
644
else if ((textBlock = o as
TextBlock
) != null)
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHostPropertyMap.cs (2)
138
SWC.
TextBlock
childTextBlock = elementHost.Child as SWC.
TextBlock
;