1 write to _textBlock1
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
260_textBlock1 = this.GetTemplateChild("PART_TextBlock1") as TextBlock;
38 references to _textBlock1
System.Windows.Controls.Ribbon (38)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (38)
267if (_textBlock1 != null && _textBlock2 != null && _path != null) 273_textBlock1.Text = null; 274_textBlock1.Visibility = Visibility.Collapsed; 288TextPointer secondLinePointer = _textBlock1.ContentStart; 305_textBlock1.Text = firstLineText; 306_textBlock1.Visibility = Visibility.Visible; 319_textBlock1.Text = this.Text; 320_textBlock1.Visibility = Visibility.Visible; 338Debug.Assert(_textBlock1 != null && _textBlock2 != null); 341_textBlock1.Text = this.Text; 342_textBlock1.TextWrapping = TextWrapping.WrapWithOverflow; 343_textBlock1.Visibility = Visibility.Visible; 347_textBlock1.Measure(availableSize); 356Size bufferedSize = new Size(_textBlock1.DesiredSize.Width + 0.5, 357_textBlock1.DesiredSize.Height); 358_textBlock1.Arrange(new Rect(bufferedSize)); 360secondLinePointer = _textBlock1.ContentStart.GetLineStartPosition(1); 363_textBlock1.ClearValue(TextBlock.TextWrappingProperty); 372Debug.Assert(_textBlock1 != null && _textBlock2 != null); 377_textBlock1.Text = this.Text; 378_textBlock1.TextWrapping = TextWrapping.WrapWithOverflow; 379_textBlock1.Visibility = Visibility.Visible; 386_textBlock1.Measure(infinity); 388double width = _textBlock1.DesiredSize.Width; 395_textBlock1.Width = Math.Max(1.0, width / 2.0); 396_textBlock1.Measure(infinity); 397_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 400TextPointer currentLinePointer = _textBlock1.ContentStart.GetLineStartPosition(2); 418lastCharacter = _textBlock1.ContentEnd.GetCharacterRect(LogicalDirection.Backward); 423_textBlock1.Width = _textBlock1.Width + extraLength / 2; 424_textBlock1.Measure(infinity); 425_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 428secondLinePointer = _textBlock1.ContentStart.GetLineStartPosition(1); 431_textBlock1.ClearValue(TextBlock.WidthProperty); 434_textBlock1.ClearValue(TextBlock.TextWrappingProperty);