1 type derived from TextBlock
Microsoft.VisualStudio.LanguageServices (1)
Utilities\BindableTextBlock.cs (1)
15internal sealed class BindableTextBlock : TextBlock
23 instantiations of TextBlock
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
57var 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)
269return new TextBlock()
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
67var 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)
511_textBlock = new TextBlock();
System\Windows\Controls\ContentPresenter.cs (1)
969TextBlock text = new TextBlock();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
164TextBlock outerBlock = new TextBlock();
System\Windows\Controls\DataGridTextColumn.cs (1)
80TextBlock textBlock = new TextBlock();
System\Windows\Controls\GridViewRowPresenter.cs (1)
583cell = new TextBlock
System\Windows\Controls\Primitives\Popup.cs (1)
1311TextBlock lbl = new TextBlock
System\windows\Documents\TextEditorContextMenu.cs (1)
489TextBlock text = new TextBlock
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11016DefaultConstructor = delegate () { return new System.Windows.Controls.TextBlock(); },
System\Windows\Markup\KnownTypes.cs (1)
1584case KnownElements.TextBlock: o = new System.Windows.Controls.TextBlock(); break;
PresentationFramework.Tests (3)
System\Windows\ResourceDictionaryTests.cs (3)
111var textBlock = new TextBlock(); 126var textBlock = new TextBlock(); 147var textBlock = new TextBlock();
PresentationUI (2)
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
123_frameworkElement = new TextBlock();
MS\Internal\Documents\SignatureResourceHelper.cs (1)
149_frameworkElement = new TextBlock();
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\ForceLowMemoryModePage.cs (1)
41lowMemoryGroup.Children.Add(new TextBlock { Text = "megabytes of extra memory in devenv.exe" });
PerfMargin\PerfMarginPanel.cs (1)
102var label = new TextBlock();
271 references to TextBlock
Microsoft.CodeAnalysis.EditorFeatures.Wpf (12)
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\SmartRename\SmartRenameStatusControl.g.cs (2)
44internal System.Windows.Controls.TextBlock ErrorTextBlock; 81this.ErrorTextBlock = ((System.Windows.Controls.TextBlock)(target));
InlineDiagnostics\InlineDiagnosticsTag.cs (2)
57var block = new TextBlock 185if (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)
315public 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)
67var block = new TextBlock
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Options\OptionPageSearchHandlerTests.vb (1)
176Dim textBlock = Assert.IsType(Of TextBlock)(control.Content)
PresentationFramework (183)
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
48text.SetBinding(TextBlock.TextProperty, binding); 65text.SetBinding(TextBlock.TextProperty, binding);
MS\Internal\Documents\TextContainerHelper.cs (3)
546Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 568Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 665Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox,
MS\Internal\Documents\TextParagraphView.cs (2)
37internal TextParagraphView(System.Windows.Controls.TextBlock owner, ITextContainer textContainer) 792private readonly System.Windows.Controls.TextBlock _owner;
MS\Internal\LayoutDump.cs (4)
451AddUIElementDumpHandler(typeof(System.Windows.Controls.TextBlock), new DumpCustomUIElement(DumpText)); 479System.Windows.Controls.TextBlock text = element as System.Windows.Controls.TextBlock; 494writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(TextBlock.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture));
MS\Internal\PtsHost\RunClient.cs (2)
56double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(TextBlock.BaselineOffsetProperty); 79double baselineOffsetValue = (double)UIElementIsland.Root.GetValue(TextBlock.BaselineOffsetProperty);
MS\Internal\Text\ComplexLine.cs (1)
139internal ComplexLine(System.Windows.Controls.TextBlock owner) : base(owner)
MS\Internal\Text\InlineObject.cs (4)
29internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.TextBlock host) 51double baselineOffsetValue = (double) Element.GetValue(TextBlock.BaselineOffsetProperty); 73double baselineOffsetValue = (double)Element.GetValue(TextBlock.BaselineOffsetProperty); 184private readonly System.Windows.Controls.TextBlock _host;
MS\Internal\Text\Line.cs (2)
58internal Line(System.Windows.Controls.TextBlock owner) 625protected System.Windows.Controls.TextBlock _owner;
MS\Internal\Text\LineProperties.cs (3)
133if (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)
122internal SimpleLine(System.Windows.Controls.TextBlock owner, string content, TextRunProperties textProps) : base(owner)
MS\Internal\Text\TextLineResult.cs (2)
230internal TextLineResult(System.Windows.Controls.TextBlock owner, int dcp, int cch, Rect layoutBox, double baseline, int index) 272private readonly System.Windows.Controls.TextBlock _owner;
MS\Internal\Text\TextProperties.cs (2)
256TextBlock tb = element as TextBlock;
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
24internal GridViewCellAutomationPeer(TextBlock owner, ListViewAutomationPeer parent) 40if (Owner is TextBlock) 65if (Owner is TextBlock)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
64else if (ele is TextBlock) 66peer = new GridViewCellAutomationPeer((TextBlock)ele, _listviewAP);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
54if (obj is string || obj is TextBlock
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (5)
23public TextBlockAutomationPeer(TextBlock owner) 33TextBlock owner = (TextBlock)Owner; 65TextBlock tb = (TextBlock)Owner;
System\Windows\Controls\AccessText.cs (5)
354TextBlock.TextTrimmingProperty.AddOwner( 375TextBlock.TextWrappingProperty.AddOwner( 396TextBlock.BaselineOffsetProperty.AddOwner(typeof(AccessText), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnPropertyChanged))); 464internal TextBlock TextBlock 782private TextBlock _textBlock;
System\Windows\Controls\ComboBox.cs (2)
1592TextBlock text; 1597if ((text = d as TextBlock) != null)
System\Windows\Controls\ContentPresenter.cs (9)
54text.SetValue(TextBlock.TextProperty, new TemplateBindingExtension(ContentProperty)); 66text.SetBinding(TextBlock.TextProperty, binding); 736text.SetBinding(TextBlock.TextProperty, binding); 764text.SetBinding(TextBlock.TextProperty, binding); 961FrameworkElementFactory text = new FrameworkElementFactory(typeof(TextBlock)); 967private static TextBlock CreateTextBlock(ContentPresenter container) 969TextBlock text = new TextBlock(); 1070TextBlock textBlock = CreateTextBlock(container); 1086private void DoDefaultExpansion(TextBlock textBlock, object content, ContentPresenter container)
System\Windows\Controls\DataGridHyperlinkColumn.cs (3)
116TextBlock outerBlock = cell.Content as TextBlock; 164TextBlock outerBlock = new TextBlock();
System\Windows\Controls\DataGridTextColumn.cs (4)
35Style style = new Style(typeof(TextBlock)); 38style.Setters.Add(new Setter(TextBlock.MarginProperty, new Thickness(2.0, 0.0, 2.0, 0.0))); 80TextBlock textBlock = new TextBlock(); 85ApplyBinding(textBlock, TextBlock.TextProperty);
System\Windows\Controls\GridViewRowPresenter.cs (4)
311if (binding != null && cell is TextBlock) 313cell.SetBinding(TextBlock.TextProperty, binding); 590cell.SetBinding(TextBlock.TextProperty, binding); 654Debug.Assert(cell is TextBlock, "cells are either TextBlocks or ContentPresenters");
System\Windows\Controls\Primitives\BulletDecorator.cs (9)
331TextBlock textElement = ((TextBlock)text); 375private TextBlock FindText(Visual root) 378TextBlock text = root as TextBlock; 390TextBlock textBlock = child as TextBlock; 398textBlock = VisualTreeHelper.GetChild(accessText, 0) as TextBlock; 411return VisualTreeHelper.GetChild(accessText, 0) as TextBlock;
System\Windows\Controls\Primitives\Popup.cs (1)
1311TextBlock lbl = new TextBlock
System\Windows\Controls\TextBlock.cs (39)
305typeof(TextBlock), 315typographyProperties[i].OverrideMetadata(typeof(TextBlock), new FrameworkPropertyMetadata(onTypographyChanged)); 318EventManager.RegisterClassHandler(typeof(TextBlock), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 319DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBlock), new FrameworkPropertyMetadata(typeof(TextBlock))); 518typeof(TextBlock), 563typeof(TextBlock), 589TextBlock textblock = (TextBlock)d; 620TextElement.FontFamilyProperty.AddOwner(typeof(TextBlock)); 660TextElement.FontStyleProperty.AddOwner(typeof(TextBlock)); 699TextElement.FontWeightProperty.AddOwner(typeof(TextBlock)); 738TextElement.FontStretchProperty.AddOwner(typeof(TextBlock)); 778typeof(TextBlock)); 821typeof(TextBlock)); 861typeof(TextBlock), 881typeof(TextBlock), 901typeof(TextBlock), 919Block.LineHeightProperty.AddOwner(typeof(TextBlock)); 959Block.LineStackingStrategyProperty.AddOwner(typeof(TextBlock)); 998typeof(TextBlock), 1016Block.TextAlignmentProperty.AddOwner(typeof(TextBlock)); 1058typeof(TextBlock), 1082typeof(TextBlock), 1102Block.IsHyphenationEnabledProperty.AddOwner(typeof(TextBlock)); 2783((TextBlock) d).SetFlags(true, Flags.IsTypographySet); 3455TextBlock textBlock = sender as TextBlock; 3460if (TextBlock.ContainsContentElement(textBlock, child)) 3482private static bool ContainsContentElement(TextBlock textBlock, ContentElement element) 3704TextBlock tb = parent as TextBlock; 3897internal ComplexContent(TextBlock owner, ITextContainer textContainer, bool foreignTextContianer, string content) 3912TextBlock.InsertTextRun(this.TextContainer.End, content, /*whitespacesIgnorable:*/false); 3925internal void Detach(TextBlock owner) 4040TextBlock tb = (TextBlock) d; 4072TextBlock text = (TextBlock) d;
System\Windows\Controls\TextBox.cs (1)
576TextBlock.TextWrappingProperty.AddOwner(
System\Windows\Documents\InlineCollection.cs (1)
191if (this.Parent is TextBlock textBlock)
System\windows\Documents\TextEditorContextMenu.cs (1)
489TextBlock text = new TextBlock
System\Windows\Documents\TextElementCollection.cs (3)
41Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is TextBlock); 690if (_owner is TextBlock) 692textContainer = (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)
443while (value == null && (element is Inline || element is Paragraph || element is TextBlock))
System\Windows\Documents\TextSchema.cs (2)
813else if (typeof(TextBlock).IsAssignableFrom(parentType)) 1195TextBlock.BaselineOffsetProperty,
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
731case 638: t = () => typeof(TextBlock); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (39)
3573Type type = typeof(System.Windows.Controls.TextBlock); 3574DependencyProperty dp = System.Windows.Controls.TextBlock.BackgroundProperty; 3576this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3592Type type = typeof(System.Windows.Controls.TextBlock); 3593DependencyProperty dp = System.Windows.Controls.TextBlock.FontFamilyProperty; 3595this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3611Type type = typeof(System.Windows.Controls.TextBlock); 3612DependencyProperty dp = System.Windows.Controls.TextBlock.FontSizeProperty; 3614this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3630Type type = typeof(System.Windows.Controls.TextBlock); 3631DependencyProperty dp = System.Windows.Controls.TextBlock.FontStretchProperty; 3633this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3649Type type = typeof(System.Windows.Controls.TextBlock); 3650DependencyProperty dp = System.Windows.Controls.TextBlock.FontStyleProperty; 3652this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3668Type type = typeof(System.Windows.Controls.TextBlock); 3669DependencyProperty dp = System.Windows.Controls.TextBlock.FontWeightProperty; 3671this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3687Type type = typeof(System.Windows.Controls.TextBlock); 3688DependencyProperty dp = System.Windows.Controls.TextBlock.ForegroundProperty; 3690this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3706Type type = typeof(System.Windows.Controls.TextBlock); 3707DependencyProperty dp = System.Windows.Controls.TextBlock.TextProperty; 3709this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3725Type type = typeof(System.Windows.Controls.TextBlock); 3726DependencyProperty dp = System.Windows.Controls.TextBlock.TextDecorationsProperty; 3728this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3744Type type = typeof(System.Windows.Controls.TextBlock); 3745DependencyProperty dp = System.Windows.Controls.TextBlock.TextTrimmingProperty; 3747this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 3763Type type = typeof(System.Windows.Controls.TextBlock); 3764DependencyProperty dp = System.Windows.Controls.TextBlock.TextWrappingProperty; 3766this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 6301Type type = typeof(System.Windows.Controls.TextBlock); 6303this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType 6310GetDelegate = delegate (object target) { return ((System.Windows.Controls.TextBlock)target).Inlines; }, 7978Type type = typeof(System.Windows.Controls.TextBlock); 7979DependencyProperty dp = System.Windows.Controls.TextBlock.TextAlignmentProperty; 7981this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11013typeof(System.Windows.Controls.TextBlock),
System\Windows\Markup\KnownTypes.cs (13)
1883return System.Windows.Controls.TextBlock.BackgroundProperty; 1885return System.Windows.Controls.TextBlock.FontFamilyProperty; 1887return System.Windows.Controls.TextBlock.FontSizeProperty; 1889return System.Windows.Controls.TextBlock.FontStretchProperty; 1891return System.Windows.Controls.TextBlock.FontStyleProperty; 1893return System.Windows.Controls.TextBlock.FontWeightProperty; 1895return System.Windows.Controls.TextBlock.ForegroundProperty; 1897return System.Windows.Controls.TextBlock.TextProperty; 1899return System.Windows.Controls.TextBlock.TextDecorationsProperty; 1901return System.Windows.Controls.TextBlock.TextTrimmingProperty; 1903return System.Windows.Controls.TextBlock.TextWrappingProperty; 2526case KnownElements.TextBlock: return (o as System.Windows.Controls.TextBlock).Inlines; 6185case KnownElements.TextBlock: t = typeof(System.Windows.Controls.TextBlock); break;
PresentationFramework.Tests (6)
System\Windows\ResourceDictionaryTests.cs (6)
111var textBlock = new TextBlock(); 114textBlock.SetResourceReference(TextBlock.ForegroundProperty, key); 126var textBlock = new TextBlock(); 128textBlock.SetResourceReference(TextBlock.ForegroundProperty, key); 147var textBlock = new TextBlock(); 148textBlock.SetResourceReference(TextBlock.ForegroundProperty, key);
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)
51_infoBarText = infoBarButton.Template.FindName("PUIInfoBarText", infoBarButton) as TextBlock; 198private 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)
60text = new FrameworkElementFactory(typeof(TextBlock)); 61text.SetValue(TextBlock.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty)); 846TextBlock text; 851if ((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))] 50private TextBlock _textBlock1, _textBlock2; 63public static readonly DependencyProperty TextDecorationsProperty = TextBlock.TextDecorationsProperty.AddOwner(typeof(RibbonTwoLineText)); 71public static readonly DependencyProperty TextEffectsProperty = TextBlock.TextEffectsProperty.AddOwner(typeof(RibbonTwoLineText)); 79public static readonly DependencyProperty BaselineOffsetProperty = TextBlock.BaselineOffsetProperty.AddOwner(typeof(RibbonTwoLineText)); 87public static new readonly DependencyProperty PaddingProperty = TextBlock.PaddingProperty.AddOwner(typeof(RibbonTwoLineText)); 102TextBlock.TextAlignmentProperty.AddOwner(typeof(RibbonTwoLineText)); 117TextBlock.TextTrimmingProperty.AddOwner(typeof(RibbonTwoLineText)); 134TextBlock.LineHeightProperty.AddOwner(typeof(RibbonTwoLineText)); 149TextBlock.LineStackingStrategyProperty.AddOwner(typeof(RibbonTwoLineText)); 202TextBlock.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)
629TextBlock textBlock; 644else if ((textBlock = o as TextBlock) != null)
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHostPropertyMap.cs (2)
138SWC.TextBlock childTextBlock = elementHost.Child as SWC.TextBlock;