public override void OnOpen() { if (ResetSelectionOnOpen) { selected = 0; } SelectedItem.Activate(); }