protected virtual void OnEntityChanged(object oldValue, object newValue) { EntityChanged?.Invoke(this, isUserInteraction, oldValue, newValue); AutomationProperties.SetItemStatus(this, Common.GetEntityStringAndHashCode(newValue)); UpdateVisibility(); }