コード例 #1
0
        public void SetSelectedValue(string valueAsString)
        {
            var foundEntry = KeyValueList.FirstOrDefault(x => x.Value == valueAsString);

            SelectedValue = KeyValueList.Any(x => x.Value == valueAsString)
                ? KeyValueList.First(x => x.Value == valueAsString).Value
                : "--- selecte from list ---";
        }