Example #1
0
        public void PreInvalidate(Region invalidateRegion)
        {
            if (InvalidateRegion == null)
            {
                return;
            }

            RemoveOverlapsFromRegion(invalidateRegion, false);
            InvalidateRegion.Union(invalidateRegion);
        }
Example #2
0
        public void Invalidate(Region invalidateRegion)
        {
            if (InvalidateRegion == null)
            {
                return;
            }

            RemoveOverlapsFromRegion(invalidateRegion, false);
            InvalidateRegion.Union(invalidateRegion);
            if (InvalidateDisabled <= 0)
            {
                InvalidateIfNeeded();
            }
        }