1 write to _textBlock1
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
263_textBlock1 = this.GetTemplateChild("PART_TextBlock1") as TextBlock;
38 references to _textBlock1
System.Windows.Controls.Ribbon (38)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (38)
270if (_textBlock1 != null && _textBlock2 != null && _path != null) 276_textBlock1.Text = null; 277_textBlock1.Visibility = Visibility.Collapsed; 291TextPointer secondLinePointer = _textBlock1.ContentStart; 308_textBlock1.Text = firstLineText; 309_textBlock1.Visibility = Visibility.Visible; 322_textBlock1.Text = this.Text; 323_textBlock1.Visibility = Visibility.Visible; 341Debug.Assert(_textBlock1 != null && _textBlock2 != null); 344_textBlock1.Text = this.Text; 345_textBlock1.TextWrapping = TextWrapping.WrapWithOverflow; 346_textBlock1.Visibility = Visibility.Visible; 350_textBlock1.Measure(availableSize); 359Size bufferedSize = new Size(_textBlock1.DesiredSize.Width + 0.5, 360_textBlock1.DesiredSize.Height); 361_textBlock1.Arrange(new Rect(bufferedSize)); 363secondLinePointer = _textBlock1.ContentStart.GetLineStartPosition(1); 366_textBlock1.ClearValue(TextBlock.TextWrappingProperty); 375Debug.Assert(_textBlock1 != null && _textBlock2 != null); 380_textBlock1.Text = this.Text; 381_textBlock1.TextWrapping = TextWrapping.WrapWithOverflow; 382_textBlock1.Visibility = Visibility.Visible; 389_textBlock1.Measure(infinity); 391double width = _textBlock1.DesiredSize.Width; 398_textBlock1.Width = Math.Max(1.0, width / 2.0); 399_textBlock1.Measure(infinity); 400_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 403TextPointer currentLinePointer = _textBlock1.ContentStart.GetLineStartPosition(2); 421lastCharacter = _textBlock1.ContentEnd.GetCharacterRect(LogicalDirection.Backward); 426_textBlock1.Width = _textBlock1.Width + extraLength / 2; 427_textBlock1.Measure(infinity); 428_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 431secondLinePointer = _textBlock1.ContentStart.GetLineStartPosition(1); 434_textBlock1.ClearValue(TextBlock.WidthProperty); 437_textBlock1.ClearValue(TextBlock.TextWrappingProperty);