public void PreInvalidate(Region invalidateRegion) { if (InvalidateRegion == null) { return; } RemoveOverlapsFromRegion(invalidateRegion, false); InvalidateRegion.Union(invalidateRegion); }
public void Invalidate(Region invalidateRegion) { if (InvalidateRegion == null) { return; } RemoveOverlapsFromRegion(invalidateRegion, false); InvalidateRegion.Union(invalidateRegion); if (InvalidateDisabled <= 0) { InvalidateIfNeeded(); } }