71 references to Flags
PresentationFramework (71)
System\Windows\Controls\TextBlock.cs (71)
400if(CheckFlags(Flags.ContentChangeInProgress)) 610!textblock.CheckFlags(Flags.TextContentChanging) && 1190if (CheckFlags(Flags.PendingTextContainerEventInit)) 1194SetFlags(false, Flags.PendingTextContainerEventInit); 1237bool formattedOnce = CheckFlags(Flags.FormattedOnce); 1259SetFlags(true, Flags.RequiresAlignment); // Need to update LineMetrics.Start when FinalSize is known. 1260SetFlags(true, Flags.FormattedOnce); 1261SetFlags(false, Flags.HasParagraphEllipses); 1262SetFlags(true, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode); 1297if (!CheckFlags(Flags.HasFirstLine)) 1299SetFlags(true, Flags.HasFirstLine); 1329SetFlags(true, Flags.HasParagraphEllipses); 1358SetFlags(false, Flags.MeasureInProgress | Flags.TreeInReadOnlyMode); 1406SetFlags(true, Flags.TreeInReadOnlyMode); 1407SetFlags(true, Flags.ArrangeInProgress); 1466SetFlags(false, Flags.TreeInReadOnlyMode); 1467SetFlags(false, Flags.ArrangeInProgress); 1510SetFlags(false, Flags.RequiresAlignment); 1511SetFlags(true, Flags.TreeInReadOnlyMode); 1533SetFlags(CheckFlags(Flags.HasParagraphEllipses), Flags.RequiresAlignment); 1544if (CheckFlags(Flags.HasParagraphEllipses)) 1561if (!CheckFlags(Flags.HasParagraphEllipses) || 1583if (!CheckFlags(Flags.HasParagraphEllipses)) 1598SetFlags(false, Flags.TreeInReadOnlyMode); 1614if (CheckFlags(Flags.FormattedOnce)) 1862if(CheckFlags(Flags.ContentChangeInProgress)) 1944SetFlags(false, Flags.PendingTextContainerEventInit); 1952SetFlags(false, Flags.ContentChangeInProgress); 1972if (CheckFlags(Flags.MeasureInProgress)) 2047if (CheckFlags(Flags.RequiresAlignment)) 2752CheckFlags(Flags.HasFirstLine) && 2753!CheckFlags(Flags.ContentChangeInProgress) && 2754!CheckFlags(Flags.MeasureInProgress) && 2755!CheckFlags(Flags.ArrangeInProgress); // Content is not currently changeing 2777return !CheckFlags(Flags.IsTypographySet); 2798get { return CheckFlags(Flags.IsContentPresenterContainer); } 2799set { SetFlags(value, Flags.IsContentPresenterContainer); } 2805((TextBlock) d).SetFlags(true, Flags.IsTypographySet); 2894if (CheckFlags(Flags.FormattedOnce)) 2898Invariant.Assert(!CheckFlags(Flags.PendingTextContainerEventInit)); 2921SetFlags(true, Flags.PendingTextContainerEventInit); 2946Invariant.Assert(CheckFlags(Flags.FormattedOnce), "Unexpected Highlights.Changed callback before first format!"); 2968if (CheckFlags(Flags.FormattedOnce)) 2975SetFlags(true, Flags.ContentChangeInProgress); 3003if (CheckFlags(Flags.FormattedOnce)) 3008SetFlags(false, Flags.ContentChangeInProgress); 3013if (!CheckFlags(Flags.TextContentChanging) && args.TextChange != TextChangeType.PropertyModified) 3015SetFlags(true, Flags.TextContentChanging); 3026SetFlags(false, Flags.TextContentChanging); 3156if (!CheckFlags(Flags.HasParagraphEllipses)) 3358if (CheckFlags(Flags.TreeInReadOnlyMode)) 3417Debug.Assert(CheckFlags(Flags.RequiresAlignment)); 3458SetFlags(false, Flags.RequiresAlignment); 3526if (CheckFlags(Flags.HasFirstLine)) 3559private void SetFlags(bool value, Flags flags) 3567private bool CheckFlags(Flags flags) 3577if(CheckFlags(Flags.MeasureInProgress)) 3582if(CheckFlags(Flags.ArrangeInProgress)) 3587if(CheckFlags(Flags.ContentChangeInProgress)) 3697if (!CheckFlags(Flags.MeasureInProgress)) 3756if (CheckFlags(Flags.HasFirstLine)) 3770SetFlags(false, Flags.HasFirstLine); 3779if (CheckFlags(Flags.IsHyphenatorSet)) 3788SetFlags(true, Flags.IsHyphenatorSet); 3880private Flags _flags; 4094if (text.CheckFlags(Flags.TextContentChanging)) 4107text.SetFlags(true, Flags.TextContentChanging); 4133text.SetFlags(false, Flags.TextContentChanging);