2010-11-24 9 views
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コンボボックスが値

どうすればいいですか? (「{」と「」

+0

姿を消したのではなく、 ? – AnthonyWJones

+0

はい、そのようなもの – bmanu

答えて

0

わたってるしきは何でも取るので、私は通常のSilverlightのWCFサービスによってDomainServicesを交換し、問題はあなたが表示値と平均 『特定の値を使用する』

関連する問題