1 type derived from TextBlock
Microsoft.VisualStudio.LanguageServices (1)
Utilities\BindableTextBlock.cs (1)
15internal class BindableTextBlock : TextBlock
20 instantiations of TextBlock
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
58var block = new TextBlock
InlineHints\InlineHintsTag.cs (1)
129var block = new TextBlock
WpfClassificationExtensions.cs (1)
90var textBlock = new TextBlock
Microsoft.VisualStudio.LanguageServices (3)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (1)
70_lazyToolTipTextBlock = new TextBlock
PreviewPane\PreviewPane.xaml.cs (1)
268return new TextBlock()
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
68var block = new TextBlock
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Options\Formatting\IndentationViewModel.cs (1)
87Items.Add(new TextBlock() { Text = CSharpVSResources.Label_Indentation });
PresentationFramework (9)
System\Windows\Controls\AccessText.cs (1)
512_textBlock = new TextBlock();
System\Windows\Controls\ContentPresenter.cs (1)
956TextBlock text = new TextBlock();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
165TextBlock outerBlock = new TextBlock();
System\Windows\Controls\DataGridTextColumn.cs (1)
81TextBlock textBlock = new TextBlock();
System\Windows\Controls\GridViewRowPresenter.cs (1)
584cell = new TextBlock();
System\Windows\Controls\Primitives\Popup.cs (1)
1301TextBlock lbl = new TextBlock();
System\windows\Documents\TextEditorContextMenu.cs (1)
490TextBlock text = new TextBlock();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9930bamlType.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)
123_frameworkElement = new TextBlock();
MS\Internal\Documents\SignatureResourceHelper.cs (1)
150_frameworkElement = new TextBlock();
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\ForceLowMemoryModePage.cs (1)
42lowMemoryGroup.Children.Add(new TextBlock { Text = "megabytes of extra memory in devenv.exe" });
PerfMargin\PerfMarginPanel.cs (1)
102var label = new TextBlock();
275 references to TextBlock
Microsoft.CodeAnalysis.EditorFeatures.Wpf (20)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameFlyout.g.cs (2)
126internal System.Windows.Controls.TextBlock SubmitTextBlock; 206this.SubmitTextBlock = ((System.Windows.Controls.TextBlock)(target));
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Dashboard\RenameDashboard.g.cs (8)
60internal System.Windows.Controls.TextBlock Instructions; 116internal System.Windows.Controls.TextBlock ResolvableConflictText; 132internal System.Windows.Controls.TextBlock UnresolvableConflictText; 140internal System.Windows.Controls.TextBlock ErrorText; 212this.Instructions = ((System.Windows.Controls.TextBlock)(target)); 233this.ResolvableConflictText = ((System.Windows.Controls.TextBlock)(target)); 239this.UnresolvableConflictText = ((System.Windows.Controls.TextBlock)(target)); 242this.ErrorText = ((System.Windows.Controls.TextBlock)(target));
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameStatusControl.g.cs (2)
44internal System.Windows.Controls.TextBlock ErrorTextBlock; 81this.ErrorTextBlock = ((System.Windows.Controls.TextBlock)(target));
InlineDiagnostics\InlineDiagnosticsTag.cs (2)
58var block = new TextBlock 186if (child is TextBlock block)
InlineHints\InlineHintsTag.cs (1)
129var block = new TextBlock
WpfClassificationExtensions.cs (5)
67public static TextBlock ToTextBlock( 77public static TextBlock ToTextBlock( 85public static TextBlock ToTextBlock( 90var textBlock = new TextBlock 102public static TextBlock ToTextBlock(this TaggedText part, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap)
Microsoft.VisualStudio.LanguageServices (17)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (2)
61internal System.Windows.Controls.TextBlock ParametersTextBlock; 304this.ParametersTextBlock = ((System.Windows.Controls.TextBlock)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (6)
62internal System.Windows.Controls.TextBlock TitleTextBlock; 86internal System.Windows.Controls.TextBlock IdTextBlock; 126internal System.Windows.Controls.TextBlock LearnMoreTextBlock; 208this.TitleTextBlock = ((System.Windows.Controls.TextBlock)(target)); 229this.IdTextBlock = ((System.Windows.Controls.TextBlock)(target)); 250this.LearnMoreTextBlock = ((System.Windows.Controls.TextBlock)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (1)
101((System.Windows.Controls.TextBlock)(target)).IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.TextBlock_IsVisibleChanged);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingRoot.g.cs (2)
53internal System.Windows.Controls.TextBlock EmptyTextMessage; 93this.EmptyTextMessage = ((System.Windows.Controls.TextBlock)(target));
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
316public TextBlock SignatureDisplay
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (2)
25private TextBlock? _lazyToolTipTextBlock; 35public TextBlock ToolTipTextBlock
StackTraceExplorer\StackTraceExplorer.xaml.cs (2)
53var textBlock = (TextBlock)sender;
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
68var block = new TextBlock
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Options\OptionPageSearchHandlerTests.vb (1)
176Dim textBlock = Assert.IsType(Of TextBlock)(control.Content)
PresentationFramework (185)
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
47text.SetBinding(TextBlock.TextProperty, binding); 62text.SetBinding(TextBlock.TextProperty, binding);
MS\Internal\Documents\TextContainerHelper.cs (3)
547Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 569Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 666Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox,
MS\Internal\Documents\TextParagraphView.cs (2)
38internal TextParagraphView(System.Windows.Controls.TextBlock owner, ITextContainer textContainer) 793private readonly System.Windows.Controls.TextBlock _owner;
MS\Internal\LayoutDump.cs (4)
450AddUIElementDumpHandler(typeof(System.Windows.Controls.TextBlock), new DumpCustomUIElement(DumpText)); 478System.Windows.Controls.TextBlock text = element as System.Windows.Controls.TextBlock; 493writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(TextBlock.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture));
MS\Internal\PtsHost\RunClient.cs (2)
57double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(TextBlock.BaselineOffsetProperty); 80double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(TextBlock.BaselineOffsetProperty);
MS\Internal\Text\ComplexLine.cs (1)
140internal ComplexLine(System.Windows.Controls.TextBlock owner) : base(owner)
MS\Internal\Text\InlineObject.cs (4)
30internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.TextBlock host) 52double baselineOffsetValue = (double) Element.GetValue(TextBlock.BaselineOffsetProperty); 74double baselineOffsetValue = (double)Element.GetValue(TextBlock.BaselineOffsetProperty); 185private readonly System.Windows.Controls.TextBlock _host;
MS\Internal\Text\Line.cs (2)
59internal Line(System.Windows.Controls.TextBlock owner) 626protected System.Windows.Controls.TextBlock _owner;
MS\Internal\Text\LineProperties.cs (3)
134if (contentHost is TextBlock || contentHost is ITextBoxViewHost) 139_textWrapping = (TextWrapping)contentHost.GetValue(TextBlock.TextWrappingProperty); 140_textTrimming = (TextTrimming)contentHost.GetValue(TextBlock.TextTrimmingProperty);
MS\Internal\Text\SimpleLine.cs (1)
123internal SimpleLine(System.Windows.Controls.TextBlock owner, string content, TextRunProperties textProps) : base(owner)
MS\Internal\Text\TextLineResult.cs (2)
231internal TextLineResult(System.Windows.Controls.TextBlock owner, int dcp, int cch, Rect layoutBox, double baseline, int index) 273private readonly System.Windows.Controls.TextBlock _owner;
MS\Internal\Text\TextProperties.cs (2)
257TextBlock tb = element as TextBlock;
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
25internal GridViewCellAutomationPeer(TextBlock owner, ListViewAutomationPeer parent) 41if (Owner is TextBlock) 66if (Owner is TextBlock)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
65else if (ele is TextBlock) 67peer = new GridViewCellAutomationPeer((TextBlock)ele, _listviewAP);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
55if (obj is string || obj is TextBlock
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (5)
24public TextBlockAutomationPeer(TextBlock owner) 34TextBlock owner = (TextBlock)Owner; 66TextBlock tb = (TextBlock)Owner;
System\Windows\Controls\AccessText.cs (5)
355TextBlock.TextTrimmingProperty.AddOwner( 376TextBlock.TextWrappingProperty.AddOwner( 397TextBlock.BaselineOffsetProperty.AddOwner(typeof(AccessText), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnPropertyChanged))); 465internal TextBlock TextBlock 779private TextBlock _textBlock;
System\Windows\Controls\ComboBox.cs (2)
1595TextBlock text; 1600if ((text = d as TextBlock) != null)
System\Windows\Controls\ContentPresenter.cs (9)
55text.SetValue(TextBlock.TextProperty, new TemplateBindingExtension(ContentProperty)); 65text.SetBinding(TextBlock.TextProperty, binding); 729text.SetBinding(TextBlock.TextProperty, binding); 753text.SetBinding(TextBlock.TextProperty, binding); 948FrameworkElementFactory text = new FrameworkElementFactory(typeof(TextBlock)); 954static TextBlock CreateTextBlock(ContentPresenter container) 956TextBlock text = new TextBlock(); 1057TextBlock textBlock = CreateTextBlock(container); 1073private void DoDefaultExpansion(TextBlock textBlock, object content, ContentPresenter container)
System\Windows\Controls\DataGridHyperlinkColumn.cs (3)
117TextBlock outerBlock = cell.Content as TextBlock; 165TextBlock outerBlock = new TextBlock();
System\Windows\Controls\DataGridTextColumn.cs (4)
36Style style = new Style(typeof(TextBlock)); 39style.Setters.Add(new Setter(TextBlock.MarginProperty, new Thickness(2.0, 0.0, 2.0, 0.0))); 81TextBlock textBlock = new TextBlock(); 86ApplyBinding(textBlock, TextBlock.TextProperty);
System\Windows\Controls\GridViewRowPresenter.cs (4)
312if (binding != null && cell is TextBlock) 314cell.SetBinding(TextBlock.TextProperty, binding); 590cell.SetBinding(TextBlock.TextProperty, binding); 652Debug.Assert(cell is TextBlock, "cells are either TextBlocks or ContentPresenters");
System\Windows\Controls\Primitives\BulletDecorator.cs (9)
332TextBlock textElement = ((TextBlock)text); 376private TextBlock FindText(Visual root) 379TextBlock text = root as TextBlock; 391TextBlock textBlock = child as TextBlock; 399textBlock = VisualTreeHelper.GetChild(accessText, 0) as TextBlock; 412return VisualTreeHelper.GetChild(accessText, 0) as TextBlock;
System\Windows\Controls\Primitives\Popup.cs (1)
1301TextBlock lbl = new TextBlock();
System\Windows\Controls\TextBlock.cs (39)
308typeof(TextBlock), 318typographyProperties[i].OverrideMetadata(typeof(TextBlock), new FrameworkPropertyMetadata(onTypographyChanged)); 321EventManager.RegisterClassHandler(typeof(TextBlock), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 322DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBlock), new FrameworkPropertyMetadata(typeof(TextBlock))); 521typeof(TextBlock), 566typeof(TextBlock), 592TextBlock textblock = (TextBlock)d; 623TextElement.FontFamilyProperty.AddOwner(typeof(TextBlock)); 663TextElement.FontStyleProperty.AddOwner(typeof(TextBlock)); 702TextElement.FontWeightProperty.AddOwner(typeof(TextBlock)); 741TextElement.FontStretchProperty.AddOwner(typeof(TextBlock)); 781typeof(TextBlock)); 824typeof(TextBlock)); 864typeof(TextBlock), 884typeof(TextBlock), 904typeof(TextBlock), 922Block.LineHeightProperty.AddOwner(typeof(TextBlock)); 962Block.LineStackingStrategyProperty.AddOwner(typeof(TextBlock)); 1001typeof(TextBlock), 1019Block.TextAlignmentProperty.AddOwner(typeof(TextBlock)); 1061typeof(TextBlock), 1085typeof(TextBlock), 1105Block.IsHyphenationEnabledProperty.AddOwner(typeof(TextBlock)); 2795((TextBlock) d).SetFlags(true, Flags.IsTypographySet); 3465TextBlock textBlock = sender as TextBlock; 3470if (TextBlock.ContainsContentElement(textBlock, child)) 3492private static bool ContainsContentElement(TextBlock textBlock, ContentElement element) 3714TextBlock tb = parent as TextBlock; 3907internal ComplexContent(TextBlock owner, ITextContainer textContainer, bool foreignTextContianer, string content) 3922TextBlock.InsertTextRun(this.TextContainer.End, content, /*whitespacesIgnorable:*/false); 3935internal void Detach(TextBlock owner) 4050TextBlock tb = (TextBlock) d; 4082TextBlock text = (TextBlock) d;
System\Windows\Controls\TextBox.cs (1)
575TextBlock.TextWrappingProperty.AddOwner(
System\Windows\Documents\InlineCollection.cs (3)
192if (this.Parent is TextBlock) 194TextBlock textBlock = (TextBlock)this.Parent;
System\windows\Documents\TextEditorContextMenu.cs (1)
490TextBlock text = new TextBlock();
System\Windows\Documents\TextElementCollection.cs (3)
42Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is TextBlock); 691if (_owner is TextBlock) 693textContainer = (TextContainer)((TextBlock)_owner).TextContainer;
System\Windows\Documents\TextPointer.cs (5)
19/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 65/// methods like <see cref="TextBlock.GetPositionFromPoint"/>.</para> 408/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 1681/// which can be one of <see cref="TextBlock"/> or 1698/// which can be one of <see cref="TextBlock"/> or
System\Windows\Documents\TextRangeBase.cs (1)
444while (value == null && (element is Inline || element is Paragraph || element is TextBlock))
System\Windows\Documents\TextSchema.cs (2)
819else if (typeof(TextBlock).IsAssignableFrom(parentType)) 1201TextBlock.BaselineOffsetProperty,
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
732case 638: t = () => typeof(TextBlock); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (39)
3432Type type = typeof(System.Windows.Controls.TextBlock); 3433DependencyProperty dp = System.Windows.Controls.TextBlock.BackgroundProperty; 3435this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3449Type type = typeof(System.Windows.Controls.TextBlock); 3450DependencyProperty dp = System.Windows.Controls.TextBlock.FontFamilyProperty; 3452this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3466Type type = typeof(System.Windows.Controls.TextBlock); 3467DependencyProperty dp = System.Windows.Controls.TextBlock.FontSizeProperty; 3469this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3483Type type = typeof(System.Windows.Controls.TextBlock); 3484DependencyProperty dp = System.Windows.Controls.TextBlock.FontStretchProperty; 3486this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3500Type type = typeof(System.Windows.Controls.TextBlock); 3501DependencyProperty dp = System.Windows.Controls.TextBlock.FontStyleProperty; 3503this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3517Type type = typeof(System.Windows.Controls.TextBlock); 3518DependencyProperty dp = System.Windows.Controls.TextBlock.FontWeightProperty; 3520this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3534Type type = typeof(System.Windows.Controls.TextBlock); 3535DependencyProperty dp = System.Windows.Controls.TextBlock.ForegroundProperty; 3537this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3551Type type = typeof(System.Windows.Controls.TextBlock); 3552DependencyProperty dp = System.Windows.Controls.TextBlock.TextProperty; 3554this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3568Type type = typeof(System.Windows.Controls.TextBlock); 3569DependencyProperty dp = System.Windows.Controls.TextBlock.TextDecorationsProperty; 3571this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3585Type type = typeof(System.Windows.Controls.TextBlock); 3586DependencyProperty dp = System.Windows.Controls.TextBlock.TextTrimmingProperty; 3588this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3602Type type = typeof(System.Windows.Controls.TextBlock); 3603DependencyProperty dp = System.Windows.Controls.TextBlock.TextWrappingProperty; 3605this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 5890Type type = typeof(System.Windows.Controls.TextBlock); 5892this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 5898bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TextBlock)target).Inlines; }; 7399Type type = typeof(System.Windows.Controls.TextBlock); 7400DependencyProperty dp = System.Windows.Controls.TextBlock.TextAlignmentProperty; 7402this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9928typeof(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\x86\Debug\net10.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\x86\Debug\net10.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\x86\Debug\net10.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)
52_infoBarText = infoBarButton.Template.FindName("PUIInfoBarText", infoBarButton) as TextBlock; 199private TextBlock _infoBarText;
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\PerfMarginPanel.cs (1)
102var label = new TextBlock();
System.Windows.Controls.Ribbon (23)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (4)
61text = new FrameworkElementFactory(typeof(TextBlock)); 62text.SetValue(TextBlock.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty)); 844TextBlock text; 849if ((text = d as TextBlock) != null)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (17)
32[TemplatePart(Name = "PART_TextBlock1", Type = typeof(TextBlock))] 33[TemplatePart(Name = "PART_TextBlock2", Type = typeof(TextBlock))] 51private TextBlock _textBlock1, _textBlock2; 64public static readonly DependencyProperty TextDecorationsProperty = TextBlock.TextDecorationsProperty.AddOwner(typeof(RibbonTwoLineText)); 72public static readonly DependencyProperty TextEffectsProperty = TextBlock.TextEffectsProperty.AddOwner(typeof(RibbonTwoLineText)); 80public static readonly DependencyProperty BaselineOffsetProperty = TextBlock.BaselineOffsetProperty.AddOwner(typeof(RibbonTwoLineText)); 88new public static readonly DependencyProperty PaddingProperty = TextBlock.PaddingProperty.AddOwner(typeof(RibbonTwoLineText)); 103TextBlock.TextAlignmentProperty.AddOwner(typeof(RibbonTwoLineText)); 118TextBlock.TextTrimmingProperty.AddOwner(typeof(RibbonTwoLineText)); 135TextBlock.LineHeightProperty.AddOwner(typeof(RibbonTwoLineText)); 150TextBlock.LineStackingStrategyProperty.AddOwner(typeof(RibbonTwoLineText)); 203TextBlock.TextProperty.AddOwner(typeof(RibbonTwoLineText), 260_textBlock1 = this.GetTemplateChild("PART_TextBlock1") as TextBlock; 261_textBlock2 = this.GetTemplateChild("PART_TextBlock2") as TextBlock; 363_textBlock1.ClearValue(TextBlock.TextWrappingProperty); 431_textBlock1.ClearValue(TextBlock.WidthProperty); 434_textBlock1.ClearValue(TextBlock.TextWrappingProperty);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
630TextBlock textBlock; 645else if ((textBlock = o as TextBlock) != null)
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHostPropertyMap.cs (2)
141SWC.TextBlock childTextBlock = elementHost.Child as SWC.TextBlock;