UIListItem.OnDisable C# (CSharp) Method

OnDisable() protected method

protected OnDisable ( ) : void
return void
	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);
	}