protected override void OnDisable() { // First, save our state as it will get changed // in UIButton's implementation: CONTROL_STATE oldState = controlState; base.OnDisable(); // Now restore our previous state: SetControlState(oldState); }