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)
270
if (
_textBlock1
!= null && _textBlock2 != null && _path != null)
276
_textBlock1
.Text = null;
277
_textBlock1
.Visibility = Visibility.Collapsed;
291
TextPointer secondLinePointer =
_textBlock1
.ContentStart;
308
_textBlock1
.Text = firstLineText;
309
_textBlock1
.Visibility = Visibility.Visible;
322
_textBlock1
.Text = this.Text;
323
_textBlock1
.Visibility = Visibility.Visible;
341
Debug.Assert(
_textBlock1
!= null && _textBlock2 != null);
344
_textBlock1
.Text = this.Text;
345
_textBlock1
.TextWrapping = TextWrapping.WrapWithOverflow;
346
_textBlock1
.Visibility = Visibility.Visible;
350
_textBlock1
.Measure(availableSize);
359
Size bufferedSize = new Size(
_textBlock1
.DesiredSize.Width + 0.5,
360
_textBlock1
.DesiredSize.Height);
361
_textBlock1
.Arrange(new Rect(bufferedSize));
363
secondLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(1);
366
_textBlock1
.ClearValue(TextBlock.TextWrappingProperty);
375
Debug.Assert(
_textBlock1
!= null && _textBlock2 != null);
380
_textBlock1
.Text = this.Text;
381
_textBlock1
.TextWrapping = TextWrapping.WrapWithOverflow;
382
_textBlock1
.Visibility = Visibility.Visible;
389
_textBlock1
.Measure(infinity);
391
double 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));
403
TextPointer currentLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(2);
421
lastCharacter =
_textBlock1
.ContentEnd.GetCharacterRect(LogicalDirection.Backward);
426
_textBlock1
.Width =
_textBlock1
.Width + extraLength / 2;
427
_textBlock1
.Measure(infinity);
428
_textBlock1
.Arrange(new Rect(
_textBlock1
.DesiredSize));
431
secondLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(1);
434
_textBlock1
.ClearValue(TextBlock.WidthProperty);
437
_textBlock1
.ClearValue(TextBlock.TextWrappingProperty);