Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get multibinding working #14

Open
francotiveron opened this issue Aug 21, 2021 · 0 comments
Open

Unable to get multibinding working #14

francotiveron opened this issue Aug 21, 2021 · 0 comments

Comments

@francotiveron
Copy link

francotiveron commented Aug 21, 2021

This works

<local:DataItemUI 
x:Name="SetPosition" 
EditOrderNext="{Binding ElementName=LoadOffs, Mode=OneWay}" 
/>

This also works

<local:DataItemUI 
x:Name="SetPosition" 
EditOrderNext="{Binding ElementName=RotationsPerFoot, Mode=OneWay}" 
/>

Now I want to bind the EditOrderNext conditionally, but none of the following work (binding returns null)

<local:DataItemUI 
x:Name="SetPosition" 
EditOrderNext="{qc:MultiBinding  '$P0 ? $P1 : $P2', P0={Binding IsGroup}, P1={Binding ElementName=SoftUp}, P2={Binding ElementName=RotationsPerFoot}}"
/>
<local:DataItemUI 
x:Name="SetPosition" 
EditOrderNext="{qc:MultiBinding '$P0 ? $P1 : $P2', P0={Binding IsGroup}, P1={Binding Source={x:Reference SoftUp}}, P2={Binding Source={x:Reference RotationsPerFoot}}}"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant