public void SetSelectedOption(int index) { if (index != -1 && AvailableOptions.ElementAt(index) == null) { throw new ArgumentOutOfRangeException(nameof(index)); } SelectedOptionIndex = index; OnSelectedOptionChanged(); }