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)
267
if (
_textBlock1
!= null && _textBlock2 != null && _path != null)
273
_textBlock1
.Text = null;
274
_textBlock1
.Visibility = Visibility.Collapsed;
288
TextPointer secondLinePointer =
_textBlock1
.ContentStart;
305
_textBlock1
.Text = firstLineText;
306
_textBlock1
.Visibility = Visibility.Visible;
319
_textBlock1
.Text = this.Text;
320
_textBlock1
.Visibility = Visibility.Visible;
338
Debug.Assert(
_textBlock1
!= null && _textBlock2 != null);
341
_textBlock1
.Text = this.Text;
342
_textBlock1
.TextWrapping = TextWrapping.WrapWithOverflow;
343
_textBlock1
.Visibility = Visibility.Visible;
347
_textBlock1
.Measure(availableSize);
356
Size bufferedSize = new Size(
_textBlock1
.DesiredSize.Width + 0.5,
357
_textBlock1
.DesiredSize.Height);
358
_textBlock1
.Arrange(new Rect(bufferedSize));
360
secondLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(1);
363
_textBlock1
.ClearValue(TextBlock.TextWrappingProperty);
372
Debug.Assert(
_textBlock1
!= null && _textBlock2 != null);
377
_textBlock1
.Text = this.Text;
378
_textBlock1
.TextWrapping = TextWrapping.WrapWithOverflow;
379
_textBlock1
.Visibility = Visibility.Visible;
386
_textBlock1
.Measure(infinity);
388
double 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));
400
TextPointer currentLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(2);
418
lastCharacter =
_textBlock1
.ContentEnd.GetCharacterRect(LogicalDirection.Backward);
423
_textBlock1
.Width =
_textBlock1
.Width + extraLength / 2;
424
_textBlock1
.Measure(infinity);
425
_textBlock1
.Arrange(new Rect(
_textBlock1
.DesiredSize));
428
secondLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(1);
431
_textBlock1
.ClearValue(TextBlock.WidthProperty);
434
_textBlock1
.ClearValue(TextBlock.TextWrappingProperty);