11 instantiations of TextBlock
PresentationFramework (9)
System\Windows\Controls\AccessText.cs (1)
514
_textBlock = new
TextBlock
();
System\Windows\Controls\ContentPresenter.cs (1)
965
TextBlock text = new
TextBlock
();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
172
TextBlock outerBlock = new
TextBlock
();
System\Windows\Controls\DataGridTextColumn.cs (1)
84
TextBlock textBlock = new
TextBlock
();
System\Windows\Controls\GridViewRowPresenter.cs (1)
588
cell = new
TextBlock
();
System\Windows\Controls\Primitives\Popup.cs (1)
1308
TextBlock lbl = new
TextBlock
();
System\windows\Documents\TextEditorContextMenu.cs (1)
492
TextBlock text = new
TextBlock
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9932
bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.
TextBlock
(); };
System\Windows\Markup\KnownTypes.cs (1)
1591
case KnownElements.TextBlock: o = new System.Windows.Controls.
TextBlock
(); break;
PresentationUI (2)
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
128
_frameworkElement = new
TextBlock
();
MS\Internal\Documents\SignatureResourceHelper.cs (1)
155
_frameworkElement = new
TextBlock
();
236 references to TextBlock
PresentationFramework (185)
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
50
text.SetBinding(
TextBlock
.TextProperty, binding);
65
text.SetBinding(
TextBlock
.TextProperty, binding);
MS\Internal\Documents\TextContainerHelper.cs (3)
550
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
572
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
669
Invariant.Assert(element is
TextBlock
|| element is FlowDocument || element is TextBox,
MS\Internal\Documents\TextParagraphView.cs (2)
44
internal TextParagraphView(System.Windows.Controls.
TextBlock
owner, ITextContainer textContainer)
799
private readonly System.Windows.Controls.
TextBlock
_owner;
MS\Internal\LayoutDump.cs (4)
453
AddUIElementDumpHandler(typeof(System.Windows.Controls.
TextBlock
), new DumpCustomUIElement(DumpText));
481
System.Windows.Controls.
TextBlock
text = element as System.Windows.Controls.
TextBlock
;
496
writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(
TextBlock
.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture));
MS\Internal\PtsHost\RunClient.cs (2)
60
double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(
TextBlock
.BaselineOffsetProperty);
83
double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(
TextBlock
.BaselineOffsetProperty);
MS\Internal\Text\ComplexLine.cs (1)
145
internal ComplexLine(System.Windows.Controls.
TextBlock
owner) : base(owner)
MS\Internal\Text\InlineObject.cs (4)
33
internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.
TextBlock
host)
55
double baselineOffsetValue = (double) Element.GetValue(
TextBlock
.BaselineOffsetProperty);
77
double baselineOffsetValue = (double)Element.GetValue(
TextBlock
.BaselineOffsetProperty);
188
private readonly System.Windows.Controls.
TextBlock
_host;
MS\Internal\Text\Line.cs (2)
66
internal Line(System.Windows.Controls.
TextBlock
owner)
633
protected System.Windows.Controls.
TextBlock
_owner;
MS\Internal\Text\LineProperties.cs (3)
138
if (contentHost is
TextBlock
|| contentHost is ITextBoxViewHost)
143
_textWrapping = (TextWrapping)contentHost.GetValue(
TextBlock
.TextWrappingProperty);
144
_textTrimming = (TextTrimming)contentHost.GetValue(
TextBlock
.TextTrimmingProperty);
MS\Internal\Text\SimpleLine.cs (1)
128
internal SimpleLine(System.Windows.Controls.
TextBlock
owner, string content, TextRunProperties textProps) : base(owner)
MS\Internal\Text\TextLineResult.cs (2)
235
internal TextLineResult(System.Windows.Controls.
TextBlock
owner, int dcp, int cch, Rect layoutBox, double baseline, int index)
277
private readonly System.Windows.Controls.
TextBlock
_owner;
MS\Internal\Text\TextProperties.cs (2)
259
TextBlock
tb = element as
TextBlock
;
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
36
internal GridViewCellAutomationPeer(
TextBlock
owner, ListViewAutomationPeer parent)
52
if (Owner is
TextBlock
)
77
if (Owner is
TextBlock
)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
77
else if (ele is
TextBlock
)
79
peer = new GridViewCellAutomationPeer((
TextBlock
)ele, _listviewAP);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
65
if (obj is string || obj is
TextBlock
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (5)
26
public TextBlockAutomationPeer(
TextBlock
owner)
36
TextBlock
owner = (
TextBlock
)Owner;
68
TextBlock
tb = (
TextBlock
)Owner;
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
781
private
TextBlock
_textBlock;
System\Windows\Controls\ComboBox.cs (2)
1605
TextBlock
text;
1610
if ((text = d as
TextBlock
) != null)
System\Windows\Controls\ContentPresenter.cs (9)
64
text.SetValue(
TextBlock
.TextProperty, new TemplateBindingExtension(ContentProperty));
74
text.SetBinding(
TextBlock
.TextProperty, binding);
738
text.SetBinding(
TextBlock
.TextProperty, binding);
762
text.SetBinding(
TextBlock
.TextProperty, binding);
957
FrameworkElementFactory text = new FrameworkElementFactory(typeof(
TextBlock
));
963
static
TextBlock
CreateTextBlock(ContentPresenter container)
965
TextBlock
text = new TextBlock();
1066
TextBlock
textBlock = CreateTextBlock(container);
1082
private void DoDefaultExpansion(
TextBlock
textBlock, object content, ContentPresenter container)
System\Windows\Controls\DataGridHyperlinkColumn.cs (3)
124
TextBlock
outerBlock = cell.Content as
TextBlock
;
172
TextBlock
outerBlock = new TextBlock();
System\Windows\Controls\DataGridTextColumn.cs (4)
39
Style style = new Style(typeof(
TextBlock
));
42
style.Setters.Add(new Setter(
TextBlock
.MarginProperty, new Thickness(2.0, 0.0, 2.0, 0.0)));
84
TextBlock
textBlock = new TextBlock();
89
ApplyBinding(textBlock,
TextBlock
.TextProperty);
System\Windows\Controls\GridViewRowPresenter.cs (4)
316
if (binding != null && cell is
TextBlock
)
318
cell.SetBinding(
TextBlock
.TextProperty, binding);
594
cell.SetBinding(
TextBlock
.TextProperty, binding);
656
Debug.Assert(cell is
TextBlock
, "cells are either TextBlocks or ContentPresenters");
System\Windows\Controls\Primitives\BulletDecorator.cs (9)
338
TextBlock
textElement = ((
TextBlock
)text);
382
private
TextBlock
FindText(Visual root)
385
TextBlock
text = root as
TextBlock
;
397
TextBlock
textBlock = child as
TextBlock
;
405
textBlock = VisualTreeHelper.GetChild(accessText, 0) as
TextBlock
;
418
return VisualTreeHelper.GetChild(accessText, 0) as
TextBlock
;
System\Windows\Controls\Primitives\Popup.cs (1)
1308
TextBlock
lbl = new TextBlock();
System\Windows\Controls\TextBlock.cs (39)
318
typeof(
TextBlock
),
328
typographyProperties[i].OverrideMetadata(typeof(
TextBlock
), new FrameworkPropertyMetadata(onTypographyChanged));
331
EventManager.RegisterClassHandler(typeof(
TextBlock
), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView));
332
DefaultStyleKeyProperty.OverrideMetadata(typeof(
TextBlock
), new FrameworkPropertyMetadata(typeof(
TextBlock
)));
531
typeof(
TextBlock
),
576
typeof(
TextBlock
),
602
TextBlock
textblock = (
TextBlock
)d;
633
TextElement.FontFamilyProperty.AddOwner(typeof(
TextBlock
));
673
TextElement.FontStyleProperty.AddOwner(typeof(
TextBlock
));
712
TextElement.FontWeightProperty.AddOwner(typeof(
TextBlock
));
751
TextElement.FontStretchProperty.AddOwner(typeof(
TextBlock
));
791
typeof(
TextBlock
));
834
typeof(
TextBlock
));
874
typeof(
TextBlock
),
894
typeof(
TextBlock
),
914
typeof(
TextBlock
),
932
Block.LineHeightProperty.AddOwner(typeof(
TextBlock
));
972
Block.LineStackingStrategyProperty.AddOwner(typeof(
TextBlock
));
1011
typeof(
TextBlock
),
1029
Block.TextAlignmentProperty.AddOwner(typeof(
TextBlock
));
1071
typeof(
TextBlock
),
1095
typeof(
TextBlock
),
1115
Block.IsHyphenationEnabledProperty.AddOwner(typeof(
TextBlock
));
2805
((
TextBlock
) d).SetFlags(true, Flags.IsTypographySet);
3475
TextBlock
textBlock = sender as
TextBlock
;
3480
if (
TextBlock
.ContainsContentElement(textBlock, child))
3502
private static bool ContainsContentElement(
TextBlock
textBlock, ContentElement element)
3724
TextBlock
tb = parent as
TextBlock
;
3917
internal ComplexContent(
TextBlock
owner, ITextContainer textContainer, bool foreignTextContianer, string content)
3932
TextBlock
.InsertTextRun(this.TextContainer.End, content, /*whitespacesIgnorable:*/false);
3945
internal void Detach(
TextBlock
owner)
4060
TextBlock
tb = (
TextBlock
) d;
4092
TextBlock
text = (
TextBlock
) d;
System\Windows\Controls\TextBox.cs (1)
582
TextBlock
.TextWrappingProperty.AddOwner(
System\Windows\Documents\InlineCollection.cs (3)
193
if (this.Parent is
TextBlock
)
195
TextBlock
textBlock = (
TextBlock
)this.Parent;
System\windows\Documents\TextEditorContextMenu.cs (1)
492
TextBlock
text = new TextBlock();
System\Windows\Documents\TextElementCollection.cs (3)
44
Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is
TextBlock
);
693
if (_owner is
TextBlock
)
695
textContainer = (TextContainer)((
TextBlock
)_owner).TextContainer;
System\Windows\Documents\TextPointer.cs (5)
24
/// <see cref="
TextBlock
"/> or <see cref="FlowDocument"/>.
70
/// methods like <see cref="
TextBlock
.GetPositionFromPoint"/>.</para>
413
/// <see cref="
TextBlock
"/> or <see cref="FlowDocument"/>.
1686
/// which can be one of <see cref="
TextBlock
"/> or
1703
/// which can be one of <see cref="
TextBlock
"/> or
System\Windows\Documents\TextRangeBase.cs (1)
447
while (value == null && (element is Inline || element is Paragraph || element is
TextBlock
))
System\Windows\Documents\TextSchema.cs (2)
820
else if (typeof(
TextBlock
).IsAssignableFrom(parentType))
1202
TextBlock
.BaselineOffsetProperty,
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
734
case 638: t = () => typeof(
TextBlock
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (39)
3434
Type type = typeof(System.Windows.Controls.
TextBlock
);
3435
DependencyProperty dp = System.Windows.Controls.
TextBlock
.BackgroundProperty;
3437
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3451
Type type = typeof(System.Windows.Controls.
TextBlock
);
3452
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontFamilyProperty;
3454
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3468
Type type = typeof(System.Windows.Controls.
TextBlock
);
3469
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontSizeProperty;
3471
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3485
Type type = typeof(System.Windows.Controls.
TextBlock
);
3486
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontStretchProperty;
3488
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3502
Type type = typeof(System.Windows.Controls.
TextBlock
);
3503
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontStyleProperty;
3505
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3519
Type type = typeof(System.Windows.Controls.
TextBlock
);
3520
DependencyProperty dp = System.Windows.Controls.
TextBlock
.FontWeightProperty;
3522
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3536
Type type = typeof(System.Windows.Controls.
TextBlock
);
3537
DependencyProperty dp = System.Windows.Controls.
TextBlock
.ForegroundProperty;
3539
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3553
Type type = typeof(System.Windows.Controls.
TextBlock
);
3554
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextProperty;
3556
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3570
Type type = typeof(System.Windows.Controls.
TextBlock
);
3571
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextDecorationsProperty;
3573
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3587
Type type = typeof(System.Windows.Controls.
TextBlock
);
3588
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextTrimmingProperty;
3590
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
3604
Type type = typeof(System.Windows.Controls.
TextBlock
);
3605
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextWrappingProperty;
3607
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
5892
Type type = typeof(System.Windows.Controls.
TextBlock
);
5894
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
5900
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.
TextBlock
)target).Inlines; };
7401
Type type = typeof(System.Windows.Controls.
TextBlock
);
7402
DependencyProperty dp = System.Windows.Controls.
TextBlock
.TextAlignmentProperty;
7404
this.GetXamlType(typeof(System.Windows.Controls.
TextBlock
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9930
typeof(System.Windows.Controls.
TextBlock
),
System\Windows\Markup\KnownTypes.cs (13)
1890
return System.Windows.Controls.
TextBlock
.BackgroundProperty;
1892
return System.Windows.Controls.
TextBlock
.FontFamilyProperty;
1894
return System.Windows.Controls.
TextBlock
.FontSizeProperty;
1896
return System.Windows.Controls.
TextBlock
.FontStretchProperty;
1898
return System.Windows.Controls.
TextBlock
.FontStyleProperty;
1900
return System.Windows.Controls.
TextBlock
.FontWeightProperty;
1902
return System.Windows.Controls.
TextBlock
.ForegroundProperty;
1904
return System.Windows.Controls.
TextBlock
.TextProperty;
1906
return System.Windows.Controls.
TextBlock
.TextDecorationsProperty;
1908
return System.Windows.Controls.
TextBlock
.TextTrimmingProperty;
1910
return System.Windows.Controls.
TextBlock
.TextWrappingProperty;
2533
case KnownElements.TextBlock: return (o as System.Windows.Controls.
TextBlock
).Inlines;
6192
case KnownElements.TextBlock: t = typeof(System.Windows.Controls.
TextBlock
); break;
PresentationUI (26)
artifacts\obj\PresentationUI\Debug\net9.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));
artifacts\obj\PresentationUI\Debug\net9.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));
artifacts\obj\PresentationUI\Debug\net9.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));
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
55
_infoBarText = infoBarButton.Template.FindName("PUIInfoBarText", infoBarButton) as
TextBlock
;
202
private
TextBlock
_infoBarText;
System.Windows.Controls.Ribbon (23)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (4)
63
text = new FrameworkElementFactory(typeof(
TextBlock
));
64
text.SetValue(
TextBlock
.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty));
846
TextBlock
text;
851
if ((text = d as
TextBlock
) != null)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (17)
35
[TemplatePart(Name = "PART_TextBlock1", Type = typeof(
TextBlock
))]
36
[TemplatePart(Name = "PART_TextBlock2", Type = typeof(
TextBlock
))]
54
private
TextBlock
_textBlock1, _textBlock2;
67
public static readonly DependencyProperty TextDecorationsProperty =
TextBlock
.TextDecorationsProperty.AddOwner(typeof(RibbonTwoLineText));
75
public static readonly DependencyProperty TextEffectsProperty =
TextBlock
.TextEffectsProperty.AddOwner(typeof(RibbonTwoLineText));
83
public static readonly DependencyProperty BaselineOffsetProperty =
TextBlock
.BaselineOffsetProperty.AddOwner(typeof(RibbonTwoLineText));
91
new public static readonly DependencyProperty PaddingProperty =
TextBlock
.PaddingProperty.AddOwner(typeof(RibbonTwoLineText));
106
TextBlock
.TextAlignmentProperty.AddOwner(typeof(RibbonTwoLineText));
121
TextBlock
.TextTrimmingProperty.AddOwner(typeof(RibbonTwoLineText));
138
TextBlock
.LineHeightProperty.AddOwner(typeof(RibbonTwoLineText));
153
TextBlock
.LineStackingStrategyProperty.AddOwner(typeof(RibbonTwoLineText));
206
TextBlock
.TextProperty.AddOwner(typeof(RibbonTwoLineText),
263
_textBlock1 = this.GetTemplateChild("PART_TextBlock1") as
TextBlock
;
264
_textBlock2 = this.GetTemplateChild("PART_TextBlock2") as
TextBlock
;
366
_textBlock1.ClearValue(
TextBlock
.TextWrappingProperty);
434
_textBlock1.ClearValue(
TextBlock
.WidthProperty);
437
_textBlock1.ClearValue(
TextBlock
.TextWrappingProperty);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
635
TextBlock
textBlock;
650
else if ((textBlock = o as
TextBlock
) != null)
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHostPropertyMap.cs (2)
143
SWC.
TextBlock
childTextBlock = elementHost.Child as SWC.
TextBlock
;