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)
266
if (
_textBlock1
!= null && _textBlock2 != null && _path != null)
272
_textBlock1
.Text = null;
273
_textBlock1
.Visibility = Visibility.Collapsed;
287
TextPointer secondLinePointer =
_textBlock1
.ContentStart;
304
_textBlock1
.Text = firstLineText;
305
_textBlock1
.Visibility = Visibility.Visible;
318
_textBlock1
.Text = this.Text;
319
_textBlock1
.Visibility = Visibility.Visible;
337
Debug.Assert(
_textBlock1
!= null && _textBlock2 != null);
340
_textBlock1
.Text = this.Text;
341
_textBlock1
.TextWrapping = TextWrapping.WrapWithOverflow;
342
_textBlock1
.Visibility = Visibility.Visible;
346
_textBlock1
.Measure(availableSize);
355
Size bufferedSize = new Size(
_textBlock1
.DesiredSize.Width + 0.5,
356
_textBlock1
.DesiredSize.Height);
357
_textBlock1
.Arrange(new Rect(bufferedSize));
359
secondLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(1);
362
_textBlock1
.ClearValue(TextBlock.TextWrappingProperty);
371
Debug.Assert(
_textBlock1
!= null && _textBlock2 != null);
376
_textBlock1
.Text = this.Text;
377
_textBlock1
.TextWrapping = TextWrapping.WrapWithOverflow;
378
_textBlock1
.Visibility = Visibility.Visible;
385
_textBlock1
.Measure(infinity);
387
double 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));
399
TextPointer currentLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(2);
417
lastCharacter =
_textBlock1
.ContentEnd.GetCharacterRect(LogicalDirection.Backward);
422
_textBlock1
.Width += extraLength / 2;
423
_textBlock1
.Measure(infinity);
424
_textBlock1
.Arrange(new Rect(
_textBlock1
.DesiredSize));
427
secondLinePointer =
_textBlock1
.ContentStart.GetLineStartPosition(1);
430
_textBlock1
.ClearValue(TextBlock.WidthProperty);
433
_textBlock1
.ClearValue(TextBlock.TextWrappingProperty);