CalcBinding icon indicating copy to clipboard operation
CalcBinding copied to clipboard

When should I use single quotes' and parentheses()?

Open CodingOctocat opened this issue 4 years ago • 0 comments

I see the following usage in the documentation:

use one single quotes:   👇
<TextBox Text="{c:Binding '(A == 2) ? local:Class.A :4 + local:Class.B}"/>
use two single quotes:         👇                                                      👇
 <Button Background="{c:Binding '(A > B ? media:Brushes.LightBlue : media:Brushes.White)'}"/>

I find that sometimes one single quote is used, sometimes two single quotes are used, sometimes parentheses are needed, sometimes not, what does the correct syntax really look like?

CodingOctocat avatar Sep 25 '21 01:09 CodingOctocat