System\Windows\Controls\TextBlock.cs (71)
390if(CheckFlags(Flags.ContentChangeInProgress))
600!textblock.CheckFlags(Flags.TextContentChanging) &&
1180if (CheckFlags(Flags.PendingTextContainerEventInit))
1184SetFlags(false, Flags.PendingTextContainerEventInit);
1227bool formattedOnce = CheckFlags(Flags.FormattedOnce);
1249SetFlags(true, Flags.RequiresAlignment); // Need to update LineMetrics.Start when FinalSize is known.
1250SetFlags(true, Flags.FormattedOnce);
1251SetFlags(false, Flags.HasParagraphEllipses);
1252SetFlags(true, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode);
1287if (!CheckFlags(Flags.HasFirstLine))
1289SetFlags(true, Flags.HasFirstLine);
1319SetFlags(true, Flags.HasParagraphEllipses);
1348SetFlags(false, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode);
1396SetFlags(true, Flags.TreeInReadOnlyMode);
1397SetFlags(true, Flags.ArrangeInProgress);
1456SetFlags(false, Flags.TreeInReadOnlyMode);
1457SetFlags(false, Flags.ArrangeInProgress);
1500SetFlags(false, Flags.RequiresAlignment);
1501SetFlags(true, Flags.TreeInReadOnlyMode);
1523SetFlags(CheckFlags(Flags.HasParagraphEllipses), Flags.RequiresAlignment);
1534if (CheckFlags(Flags.HasParagraphEllipses))
1551if (!CheckFlags(Flags.HasParagraphEllipses) ||
1573if (!CheckFlags(Flags.HasParagraphEllipses))
1588SetFlags(false, Flags.TreeInReadOnlyMode);
1604if (CheckFlags(Flags.FormattedOnce))
1852if(CheckFlags(Flags.ContentChangeInProgress))
1934SetFlags(false, Flags.PendingTextContainerEventInit);
1942SetFlags(false, Flags.ContentChangeInProgress);
1962if (CheckFlags(Flags.MeasureInProgress))
2037if (CheckFlags(Flags.RequiresAlignment))
2742CheckFlags(Flags.HasFirstLine) &&
2743!CheckFlags(Flags.ContentChangeInProgress) &&
2744!CheckFlags(Flags.MeasureInProgress) &&
2745!CheckFlags(Flags.ArrangeInProgress); // Content is not currently changeing
2767return !CheckFlags(Flags.IsTypographySet);
2788get { return CheckFlags(Flags.IsContentPresenterContainer); }
2789set { SetFlags(value, Flags.IsContentPresenterContainer); }
2795((TextBlock) d).SetFlags(true, Flags.IsTypographySet);
2884if (CheckFlags(Flags.FormattedOnce))
2888Invariant.Assert(!CheckFlags(Flags.PendingTextContainerEventInit));
2911SetFlags(true, Flags.PendingTextContainerEventInit);
2936Invariant.Assert(CheckFlags(Flags.FormattedOnce), "Unexpected Highlights.Changed callback before first format!");
2958if (CheckFlags(Flags.FormattedOnce))
2965SetFlags(true, Flags.ContentChangeInProgress);
2993if (CheckFlags(Flags.FormattedOnce))
2998SetFlags(false, Flags.ContentChangeInProgress);
3003if (!CheckFlags(Flags.TextContentChanging) && args.TextChange != TextChangeType.PropertyModified)
3005SetFlags(true, Flags.TextContentChanging);
3016SetFlags(false, Flags.TextContentChanging);
3146if (!CheckFlags(Flags.HasParagraphEllipses))
3348if (CheckFlags(Flags.TreeInReadOnlyMode))
3407Debug.Assert(CheckFlags(Flags.RequiresAlignment));
3448SetFlags(false, Flags.RequiresAlignment);
3516if (CheckFlags(Flags.HasFirstLine))
3549private void SetFlags(bool value, Flags flags)
3557private bool CheckFlags(Flags flags)
3567if(CheckFlags(Flags.MeasureInProgress))
3572if(CheckFlags(Flags.ArrangeInProgress))
3577if(CheckFlags(Flags.ContentChangeInProgress))
3687if (!CheckFlags(Flags.MeasureInProgress))
3746if (CheckFlags(Flags.HasFirstLine))
3760SetFlags(false, Flags.HasFirstLine);
3769if (CheckFlags(Flags.IsHyphenatorSet))
3778SetFlags(true, Flags.IsHyphenatorSet);
3870private Flags _flags;
4084if (text.CheckFlags(Flags.TextContentChanging))
4097text.SetFlags(true, Flags.TextContentChanging);
4123text.SetFlags(false, Flags.TextContentChanging);