src\Framework\System\Windows\Controls\TextBlock.cs (71)
418if(CheckFlags(Flags.ContentChangeInProgress))
634!textblock.CheckFlags(Flags.TextContentChanging) &&
1268if (CheckFlags(Flags.PendingTextContainerEventInit))
1272SetFlags(false, Flags.PendingTextContainerEventInit);
1315bool formattedOnce = CheckFlags(Flags.FormattedOnce);
1337SetFlags(true, Flags.RequiresAlignment); // Need to update LineMetrics.Start when FinalSize is known.
1338SetFlags(true, Flags.FormattedOnce);
1339SetFlags(false, Flags.HasParagraphEllipses);
1340SetFlags(true, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode);
1375if (!CheckFlags(Flags.HasFirstLine))
1377SetFlags(true, Flags.HasFirstLine);
1407SetFlags(true, Flags.HasParagraphEllipses);
1436SetFlags(false, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode);
1484SetFlags(true, Flags.TreeInReadOnlyMode);
1485SetFlags(true, Flags.ArrangeInProgress);
1544SetFlags(false, Flags.TreeInReadOnlyMode);
1545SetFlags(false, Flags.ArrangeInProgress);
1591SetFlags(false, Flags.RequiresAlignment);
1592SetFlags(true, Flags.TreeInReadOnlyMode);
1614SetFlags(CheckFlags(Flags.HasParagraphEllipses), Flags.RequiresAlignment);
1625if (CheckFlags(Flags.HasParagraphEllipses))
1642if (!CheckFlags(Flags.HasParagraphEllipses) ||
1664if (!CheckFlags(Flags.HasParagraphEllipses))
1680SetFlags(false, Flags.TreeInReadOnlyMode);
1696if (CheckFlags(Flags.FormattedOnce))
1950if(CheckFlags(Flags.ContentChangeInProgress))
2032SetFlags(false, Flags.PendingTextContainerEventInit);
2040SetFlags(false, Flags.ContentChangeInProgress);
2061if (CheckFlags(Flags.MeasureInProgress))
2136if (CheckFlags(Flags.RequiresAlignment))
2841CheckFlags(Flags.HasFirstLine) &&
2842!CheckFlags(Flags.ContentChangeInProgress) &&
2843!CheckFlags(Flags.MeasureInProgress) &&
2844!CheckFlags(Flags.ArrangeInProgress); // Content is not currently changeing
2866return !CheckFlags(Flags.IsTypographySet);
2887get { return CheckFlags(Flags.IsContentPresenterContainer); }
2888set { SetFlags(value, Flags.IsContentPresenterContainer); }
2894((TextBlock) d).SetFlags(true, Flags.IsTypographySet);
2983if (CheckFlags(Flags.FormattedOnce))
2987Invariant.Assert(!CheckFlags(Flags.PendingTextContainerEventInit));
3010SetFlags(true, Flags.PendingTextContainerEventInit);
3035Invariant.Assert(CheckFlags(Flags.FormattedOnce), "Unexpected Highlights.Changed callback before first format!");
3057if (CheckFlags(Flags.FormattedOnce))
3064SetFlags(true, Flags.ContentChangeInProgress);
3092if (CheckFlags(Flags.FormattedOnce))
3097SetFlags(false, Flags.ContentChangeInProgress);
3102if (!CheckFlags(Flags.TextContentChanging) && args.TextChange != TextChangeType.PropertyModified)
3104SetFlags(true, Flags.TextContentChanging);
3115SetFlags(false, Flags.TextContentChanging);
3246if (!CheckFlags(Flags.HasParagraphEllipses))
3347if (CheckFlags(Flags.TreeInReadOnlyMode))
3406Debug.Assert(CheckFlags(Flags.RequiresAlignment));
3447SetFlags(false, Flags.RequiresAlignment);
3515if (CheckFlags(Flags.HasFirstLine))
3548private void SetFlags(bool value, Flags flags)
3556private bool CheckFlags(Flags flags)
3566if(CheckFlags(Flags.MeasureInProgress))
3571if(CheckFlags(Flags.ArrangeInProgress))
3576if(CheckFlags(Flags.ContentChangeInProgress))
3686if (!CheckFlags(Flags.MeasureInProgress))
3745if (CheckFlags(Flags.HasFirstLine))
3759SetFlags(false, Flags.HasFirstLine);
3768if (CheckFlags(Flags.IsHyphenatorSet))
3777SetFlags(true, Flags.IsHyphenatorSet);
3869private Flags _flags;
4083if (text.CheckFlags(Flags.TextContentChanging))
4096text.SetFlags(true, Flags.TextContentChanging);
4122text.SetFlags(false, Flags.TextContentChanging);