private void OnPropertyNameUpdated() { ValueString = string.Empty; var propertyMetaData = PropertyName.GetAttribute <CriteriaPropertyAttribute>(); CriteriaTypes = propertyMetaData.CriteriaTypes.ToList(); CriteriaType = CriteriaTypes.Count == 1 ? CriteriaTypes.Single() : (CriteriaType?)null; PropertyType = propertyMetaData.PropertyType; }