JohannesMoersch / QuickConverter

QuickConverter provides you with WPF markup that allows you to write inline converters, multi-bindings, and event handlers using a C# like language directly in your xaml.
MIT License
110 stars 13 forks source link

MultiBinding with two booleans AND expression is not compiling #8

Closed gitjsdr26 closed 4 years ago

gitjsdr26 commented 4 years ago

Dear All,

I'm trying to use a multiBinding with two booleans AND expression, but it is not compiling.

<ComboBox materialDesign:HintAssist.Hint="Port COM" IsEditable="False" Style="{StaticResource JasonFloatingHintComboBox}" ItemsSource="{Binding ComPorts}" Validation.ErrorTemplate="{StaticResource errorTemplateSilverlightStyle}" IsEnabled="{qc:MultiBinding '!$P0 && !$P1', P0={Binding ApplicationBusy}, P1={Binding Connected}}">

'!$P0 && !$P1' is not working whereas '!$P0 || !$P1' is working.

What am I doing wrong ?

Thank you for your help. Best regards

gitjsdr26 commented 4 years ago

I just found how to do it that is mentioned in the description project :

Note that the && operator must be written as &amp;&amp; in XAML.

Best regards