其他多绑定转换器中的转换器-输入值为UnSetValue. [英] Converter in other multibinding converter - input value is UnSetValue.
问题描述
请参见下面的xaml代码:
<
MultiBinding 转换器 = " { StaticResource twoBooleanAndConverter } " >
绑定 路径 = " Entity.IsPreDefined " 字体> 模式 = " OneWay " 转换器 = " {StaticResourcevertedBooleanConverter} " />
绑定 路径 = " Entity.Iwego " 模式 = " OneWay " />
</ MultiBinding >
</ ComboBox.Style >
问题出在 twoBooleanAndConverter ,第一个输入值始终是UnSetValue.如果我不使用反相器BooleanConverter,则t woBooleanAndConverter 中的输入值是正确的.
如果我绑定到ComboBox.IsEnabled属性,则开头带有示例代码是很奇怪的. (将 ComboBox.Style 更改为 ComboBox.IsEnabled
Please see the xaml code below:
<
<MultiBinding Converter="{StaticResource twoBooleanAndConverter}" >
<Binding Path="Entity.IsPreDefined" Mode="OneWay" Converter="{StaticResource invertedBooleanConverter}" />
<Binding Path="Entity.IsAdded" Mode="OneWay"/>
</MultiBinding>
</ComboBox.Style>
The problem is in twoBooleanAndConverter, the first input value is always UnSetValue. If I don't use inverterBooleanConverter, the input values in twoBooleanAndConverter are correct.
It's very strange that with the sample code in the beginning, if I bind to ComboBox.IsEnabled property (change ComboBox.Style to ComboBox.IsEnabled), it works well - the input values for twoBooleanAndConverter are correct.
Anyone has idea in this case?
Thank you very much.
推荐答案
Could you please provide a small, complete and ready-to-run example to demonstrate the issue you are encountering?
谢谢
这篇关于其他多绑定转换器中的转换器-输入值为UnSetValue.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!