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

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

Open
CodingOctocat opened this issue Sep 25, 2021 · 0 comments
Open

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

CodingOctocat opened this issue Sep 25, 2021 · 0 comments

Comments

@CodingOctocat
Copy link

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?

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