71 references to Flags
PresentationFramework (71)
System\Windows\Controls\TextBlock.cs (71)
387if(CheckFlags(Flags.ContentChangeInProgress)) 597!textblock.CheckFlags(Flags.TextContentChanging) && 1177if (CheckFlags(Flags.PendingTextContainerEventInit)) 1181SetFlags(false, Flags.PendingTextContainerEventInit); 1224bool formattedOnce = CheckFlags(Flags.FormattedOnce); 1243SetFlags(true, Flags.RequiresAlignment); // Need to update LineMetrics.Start when FinalSize is known. 1244SetFlags(true, Flags.FormattedOnce); 1245SetFlags(false, Flags.HasParagraphEllipses); 1246SetFlags(true, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode); 1281if (!CheckFlags(Flags.HasFirstLine)) 1283SetFlags(true, Flags.HasFirstLine); 1313SetFlags(true, Flags.HasParagraphEllipses); 1342SetFlags(false, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode); 1387SetFlags(true, Flags.TreeInReadOnlyMode); 1388SetFlags(true, Flags.ArrangeInProgress); 1447SetFlags(false, Flags.TreeInReadOnlyMode); 1448SetFlags(false, Flags.ArrangeInProgress); 1491SetFlags(false, Flags.RequiresAlignment); 1492SetFlags(true, Flags.TreeInReadOnlyMode); 1514SetFlags(CheckFlags(Flags.HasParagraphEllipses), Flags.RequiresAlignment); 1525if (CheckFlags(Flags.HasParagraphEllipses)) 1542if (!CheckFlags(Flags.HasParagraphEllipses) || 1564if (!CheckFlags(Flags.HasParagraphEllipses)) 1579SetFlags(false, Flags.TreeInReadOnlyMode); 1595if (CheckFlags(Flags.FormattedOnce)) 1843if(CheckFlags(Flags.ContentChangeInProgress)) 1922SetFlags(false, Flags.PendingTextContainerEventInit); 1930SetFlags(false, Flags.ContentChangeInProgress); 1950if (CheckFlags(Flags.MeasureInProgress)) 2025if (CheckFlags(Flags.RequiresAlignment)) 2730CheckFlags(Flags.HasFirstLine) && 2731!CheckFlags(Flags.ContentChangeInProgress) && 2732!CheckFlags(Flags.MeasureInProgress) && 2733!CheckFlags(Flags.ArrangeInProgress); // Content is not currently changeing 2755return !CheckFlags(Flags.IsTypographySet); 2776get { return CheckFlags(Flags.IsContentPresenterContainer); } 2777set { SetFlags(value, Flags.IsContentPresenterContainer); } 2783((TextBlock) d).SetFlags(true, Flags.IsTypographySet); 2872if (CheckFlags(Flags.FormattedOnce)) 2876Invariant.Assert(!CheckFlags(Flags.PendingTextContainerEventInit)); 2899SetFlags(true, Flags.PendingTextContainerEventInit); 2924Invariant.Assert(CheckFlags(Flags.FormattedOnce), "Unexpected Highlights.Changed callback before first format!"); 2946if (CheckFlags(Flags.FormattedOnce)) 2953SetFlags(true, Flags.ContentChangeInProgress); 2981if (CheckFlags(Flags.FormattedOnce)) 2986SetFlags(false, Flags.ContentChangeInProgress); 2991if (!CheckFlags(Flags.TextContentChanging) && args.TextChange != TextChangeType.PropertyModified) 2993SetFlags(true, Flags.TextContentChanging); 3004SetFlags(false, Flags.TextContentChanging); 3136if (!CheckFlags(Flags.HasParagraphEllipses)) 3338if (CheckFlags(Flags.TreeInReadOnlyMode)) 3397Debug.Assert(CheckFlags(Flags.RequiresAlignment)); 3438SetFlags(false, Flags.RequiresAlignment); 3506if (CheckFlags(Flags.HasFirstLine)) 3539private void SetFlags(bool value, Flags flags) 3547private bool CheckFlags(Flags flags) 3557if(CheckFlags(Flags.MeasureInProgress)) 3562if(CheckFlags(Flags.ArrangeInProgress)) 3567if(CheckFlags(Flags.ContentChangeInProgress)) 3677if (!CheckFlags(Flags.MeasureInProgress)) 3736if (CheckFlags(Flags.HasFirstLine)) 3750SetFlags(false, Flags.HasFirstLine); 3759if (CheckFlags(Flags.IsHyphenatorSet)) 3768SetFlags(true, Flags.IsHyphenatorSet); 3860private Flags _flags; 4074if (text.CheckFlags(Flags.TextContentChanging)) 4087text.SetFlags(true, Flags.TextContentChanging); 4113text.SetFlags(false, Flags.TextContentChanging);