Skip to content

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

@CodingOctocat

Description

@CodingOctocat

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions