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