0
[Display(Name = "Type of Delivery:",
Description = "(TBC)")]
public string DeliveryType
{
get { return _deliveryType; }
set
{
Validator.ValidateProperty(value,
new ValidationContext(this, null, null)
{MemberName = CalculatorParameters.GetPropertyName()});
_deliveryType = value;
}
}
<ComboBox ItemsSource="{Binding ElementName=v_DeliveriesOrderedDomainDataSource, Path=Data}" SelectedItem="{Binding DeliveryType, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" DisplayMemberPath="Description" Margin="12,12"/>
これはバインド値は私のオブジェクトv_DeliveriesOrderedのToStringメソッド()であることを除いて、正常に動作への結合が、私は特定のフィールド すなわち使用したいと思います:値が「V_DeliveriesOrderedです:{米国、USA私はフィールドコードを使用したいと思っていますが、価値があるのはUSコンボボックスが値
どうすればいいですか? (「{」と「」
姿を消したのではなく、 ? – AnthonyWJones
はい、そのようなもの – bmanu