1 write to _textBlock1
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
259_textBlock1 = this.GetTemplateChild("PART_TextBlock1") as TextBlock;
37 references to _textBlock1
System.Windows.Controls.Ribbon (37)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (37)
266if (_textBlock1 != null && _textBlock2 != null && _path != null) 272_textBlock1.Text = null; 273_textBlock1.Visibility = Visibility.Collapsed; 287TextPointer secondLinePointer = _textBlock1.ContentStart; 304_textBlock1.Text = firstLineText; 305_textBlock1.Visibility = Visibility.Visible; 318_textBlock1.Text = this.Text; 319_textBlock1.Visibility = Visibility.Visible; 337Debug.Assert(_textBlock1 != null && _textBlock2 != null); 340_textBlock1.Text = this.Text; 341_textBlock1.TextWrapping = TextWrapping.WrapWithOverflow; 342_textBlock1.Visibility = Visibility.Visible; 346_textBlock1.Measure(availableSize); 355Size bufferedSize = new Size(_textBlock1.DesiredSize.Width + 0.5, 356_textBlock1.DesiredSize.Height); 357_textBlock1.Arrange(new Rect(bufferedSize)); 359secondLinePointer = _textBlock1.ContentStart.GetLineStartPosition(1); 362_textBlock1.ClearValue(TextBlock.TextWrappingProperty); 371Debug.Assert(_textBlock1 != null && _textBlock2 != null); 376_textBlock1.Text = this.Text; 377_textBlock1.TextWrapping = TextWrapping.WrapWithOverflow; 378_textBlock1.Visibility = Visibility.Visible; 385_textBlock1.Measure(infinity); 387double width = _textBlock1.DesiredSize.Width; 394_textBlock1.Width = Math.Max(1.0, width / 2.0); 395_textBlock1.Measure(infinity); 396_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 399TextPointer currentLinePointer = _textBlock1.ContentStart.GetLineStartPosition(2); 417lastCharacter = _textBlock1.ContentEnd.GetCharacterRect(LogicalDirection.Backward); 422_textBlock1.Width += extraLength / 2; 423_textBlock1.Measure(infinity); 424_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 427secondLinePointer = _textBlock1.ContentStart.GetLineStartPosition(1); 430_textBlock1.ClearValue(TextBlock.WidthProperty); 433_textBlock1.ClearValue(TextBlock.TextWrappingProperty);