protected override void HandleGrayedChanged() { Controller cc = GetController("grayed"); if (cc != null) cc.selectedIndex = this.grayed ? 1 : 0; else base.HandleGrayedChanged(); }