0
나는 내가BindingExpression.UpdateSource()는 지정한 캐스트가
를 콤보 상자가 XAML<ComboBox Style="{StaticResource UiEditorComboBoxStyle}"
Name="comboBox_Business"
DisplayMemberPath="Value.Name"
SelectedValuePath="Value.BusinessId"
>
<ComboBox.SelectedValue>
<Binding Path="entity.BusinessId" UpdateSourceTrigger="Explicit" ValidatesOnDataErrors="True" ValidatesOnExceptions="True" Mode="TwoWay">
<Binding.ValidationRules>
<validators:ValidationRule_SelectedItem NotSelectedErrorMessage="A Business must be selected"
NotSelectedErrorMessageTranslationKey="BusinessMustBeSelected" />
</Binding.ValidationRules>
</Binding>
</ComboBox.SelectedValue>
</ComboBox>
에 정의되어
bindingExpression = ((ComboBox)(((Grid)(control.Content)).Children[0])).GetBindingExpression(ComboBox.SelectedValueProperty);
콤보 상자의 바인딩 식을 얻는다 일부 코드를 호출 한 경우 유효하지 않습니다 던졌습니다
bindingExpression.UpdateSource()
'지정된 캐스트가 유효하지 않습니다'예외가 발생합니다. 나는 그것을 자산 유형 (Guid)과 관련이 있다고 추측하고 있지만, 어떻게 대처해야 하는지를 알 수 없습니다.
콤보 상자의 값은 사전
어떤 포인터에 바인딩?
환호,