private void __clickItem(EventContext context) { if (dropdown.parent is GRoot) ((GRoot)dropdown.parent).HidePopup(dropdown); _selectedIndex = int.MinValue; this.selectedIndex = _list.GetChildIndex((GObject)context.data); onChanged.Call(); }