private void PopulateFields() { var id = _modelItem.Properties["RetryEntryPointId"].ComputedValue; if (id != null && id.ToString() != Guid.Empty.ToString() && Gates.Count > 1) { var nameValue = Gates.First(o => o.Value == id.ToString()); SelectedGate = nameValue; IsExpanded = true; } else { SelectedGate = Gates[0]; } }