System\Windows\Controls\TextBlock.cs (71)
388if(CheckFlags(Flags.ContentChangeInProgress))
598!textblock.CheckFlags(Flags.TextContentChanging) &&
1178if (CheckFlags(Flags.PendingTextContainerEventInit))
1182SetFlags(false, Flags.PendingTextContainerEventInit);
1225bool formattedOnce = CheckFlags(Flags.FormattedOnce);
1244SetFlags(true, Flags.RequiresAlignment); // Need to update LineMetrics.Start when FinalSize is known.
1245SetFlags(true, Flags.FormattedOnce);
1246SetFlags(false, Flags.HasParagraphEllipses);
1247SetFlags(true, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode);
1282if (!CheckFlags(Flags.HasFirstLine))
1284SetFlags(true, Flags.HasFirstLine);
1314SetFlags(true, Flags.HasParagraphEllipses);
1343SetFlags(false, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode);
1388SetFlags(true, Flags.TreeInReadOnlyMode);
1389SetFlags(true, Flags.ArrangeInProgress);
1448SetFlags(false, Flags.TreeInReadOnlyMode);
1449SetFlags(false, Flags.ArrangeInProgress);
1492SetFlags(false, Flags.RequiresAlignment);
1493SetFlags(true, Flags.TreeInReadOnlyMode);
1515SetFlags(CheckFlags(Flags.HasParagraphEllipses), Flags.RequiresAlignment);
1526if (CheckFlags(Flags.HasParagraphEllipses))
1543if (!CheckFlags(Flags.HasParagraphEllipses) ||
1565if (!CheckFlags(Flags.HasParagraphEllipses))
1580SetFlags(false, Flags.TreeInReadOnlyMode);
1596if (CheckFlags(Flags.FormattedOnce))
1844if(CheckFlags(Flags.ContentChangeInProgress))
1923SetFlags(false, Flags.PendingTextContainerEventInit);
1931SetFlags(false, Flags.ContentChangeInProgress);
1951if (CheckFlags(Flags.MeasureInProgress))
2026if (CheckFlags(Flags.RequiresAlignment))
2731CheckFlags(Flags.HasFirstLine) &&
2732!CheckFlags(Flags.ContentChangeInProgress) &&
2733!CheckFlags(Flags.MeasureInProgress) &&
2734!CheckFlags(Flags.ArrangeInProgress); // Content is not currently changeing
2756return !CheckFlags(Flags.IsTypographySet);
2777get { return CheckFlags(Flags.IsContentPresenterContainer); }
2778set { SetFlags(value, Flags.IsContentPresenterContainer); }
2784((TextBlock) d).SetFlags(true, Flags.IsTypographySet);
2873if (CheckFlags(Flags.FormattedOnce))
2877Invariant.Assert(!CheckFlags(Flags.PendingTextContainerEventInit));
2900SetFlags(true, Flags.PendingTextContainerEventInit);
2925Invariant.Assert(CheckFlags(Flags.FormattedOnce), "Unexpected Highlights.Changed callback before first format!");
2947if (CheckFlags(Flags.FormattedOnce))
2954SetFlags(true, Flags.ContentChangeInProgress);
2982if (CheckFlags(Flags.FormattedOnce))
2987SetFlags(false, Flags.ContentChangeInProgress);
2992if (!CheckFlags(Flags.TextContentChanging) && args.TextChange != TextChangeType.PropertyModified)
2994SetFlags(true, Flags.TextContentChanging);
3005SetFlags(false, Flags.TextContentChanging);
3137if (!CheckFlags(Flags.HasParagraphEllipses))
3339if (CheckFlags(Flags.TreeInReadOnlyMode))
3398Debug.Assert(CheckFlags(Flags.RequiresAlignment));
3439SetFlags(false, Flags.RequiresAlignment);
3507if (CheckFlags(Flags.HasFirstLine))
3540private void SetFlags(bool value, Flags flags)
3548private bool CheckFlags(Flags flags)
3558if(CheckFlags(Flags.MeasureInProgress))
3563if(CheckFlags(Flags.ArrangeInProgress))
3568if(CheckFlags(Flags.ContentChangeInProgress))
3678if (!CheckFlags(Flags.MeasureInProgress))
3737if (CheckFlags(Flags.HasFirstLine))
3751SetFlags(false, Flags.HasFirstLine);
3760if (CheckFlags(Flags.IsHyphenatorSet))
3769SetFlags(true, Flags.IsHyphenatorSet);
3861private Flags _flags;
4075if (text.CheckFlags(Flags.TextContentChanging))
4088text.SetFlags(true, Flags.TextContentChanging);
4114text.SetFlags(false, Flags.TextContentChanging);