protected override void OnValidate() { base.OnValidate(); if (this.IsActive()) { if (this.graphic != null) { this.graphic.SetMaterialDirty(); } MaskUtilities.NotifyStencilStateChanged(this); } }