我有一个WPF控件具有Message
属性。WPF绑定到两个属性
目前,我有这样的:
<dxlc:LayoutItem >
<local:Indicator Message="{Binding PropertyOne}" />
</dxlc:LayoutItem>
但我需要的是Message
属性绑定到两个属性。
显然无法做到这样的,但是这可以帮助解释它是什么,我想:
<dxlc:LayoutItem >
<local:Indicator Message="{Binding PropertyOne && Binding PropertyTwo}" />
</dxlc:LayoutItem>
可能的重复:https://stackoverflow.com/q/2552853/1518546 –