public override bool Freeze() { bool gotFrozen = base.Freeze(); if (gotFrozen) { ElementType.Freeze(); } return(gotFrozen); }