src\Framework\System\Windows\Data\CollectionView.cs (38)
93SetFlag(CollectionViewFlags.AllowsCrossThreadChanges, syncInfo.IsSynchronized);
118SetFlag(CollectionViewFlags.IsDynamic, true);
147SetFlag(CollectionViewFlags.IsCurrentBeforeFirst, _currentPosition < 0);
148SetFlag(CollectionViewFlags.IsCurrentAfterLast, _currentPosition < 0);
149SetFlag(CollectionViewFlags.CachedIsEmpty, _currentPosition < 0);
155SetFlag(CollectionViewFlags.ShouldProcessCollectionChanged, shouldProcessCollectionChanged);
329SetFlag(CollectionViewFlags.NeedsRefresh, false);
400return CheckFlag(CollectionViewFlags.IsCurrentAfterLast);
414return CheckFlag(CollectionViewFlags.IsCurrentBeforeFirst);
752get { return CheckFlag(CollectionViewFlags.NeedsRefresh); }
857bool oldIsCurrentAfterLast = CheckFlag(CollectionViewFlags.IsCurrentAfterLast);
858bool oldIsCurrentBeforeFirst = CheckFlag(CollectionViewFlags.IsCurrentBeforeFirst);
944if (isEmpty != CheckFlag(CollectionViewFlags.CachedIsEmpty))
946SetFlag(CollectionViewFlags.CachedIsEmpty, isEmpty);
981SetFlag(CollectionViewFlags.IsCurrentBeforeFirst, false);
982SetFlag(CollectionViewFlags.IsCurrentAfterLast, false);
987SetFlag(CollectionViewFlags.IsCurrentBeforeFirst, true);
988SetFlag(CollectionViewFlags.IsCurrentAfterLast, true);
994SetFlag(CollectionViewFlags.IsCurrentBeforeFirst, newPosition < 0);
995SetFlag(CollectionViewFlags.IsCurrentAfterLast, newPosition >= count);
1092bool oldIsCurrentAfterLast = CheckFlag(CollectionViewFlags.IsCurrentAfterLast);
1093bool oldIsCurrentBeforeFirst = CheckFlag(CollectionViewFlags.IsCurrentBeforeFirst);
1179if (CheckFlag(CollectionViewFlags.ShouldProcessCollectionChanged))
1281SetFlag(CollectionViewFlags.NeedsRefresh, true);
1307return CheckFlag(CollectionViewFlags.IsDynamic);
1324get { return CheckFlag(CollectionViewFlags.AllowsCrossThreadChanges); }
1329bool oldValue = CheckFlag(CollectionViewFlags.AllowsCrossThreadChanges);
1333SetFlag(CollectionViewFlags.AllowsCrossThreadChanges, value);
1790SetFlag(CollectionViewFlags.IsCurrentBeforeFirst, true);
1795SetFlag(CollectionViewFlags.IsCurrentAfterLast, true);
1800SetFlag(CollectionViewFlags.IsCurrentBeforeFirst | CollectionViewFlags.IsCurrentAfterLast, false);
1821if (_deferLevel == 0 && CheckFlag(CollectionViewFlags.NeedsRefresh))
1905private bool CheckFlag(CollectionViewFlags flags)
1910private void SetFlag(CollectionViewFlags flags, bool value)
2186CollectionViewFlags _flags = CollectionViewFlags.ShouldProcessCollectionChanged |
2187CollectionViewFlags.NeedsRefresh;