CalcBinding icon indicating copy to clipboard operation
CalcBinding copied to clipboard

fix bug like {c:Binding .} and `add support for shortcut of RelativeSource`

Open endlesstravel opened this issue 5 years ago • 1 comments

see issue https://github.com/Alex141/CalcBinding/issues/72

it will lead {c:Binding .} work like {Binding .}

endlesstravel avatar Jan 26 '21 00:01 endlesstravel

add support for shortcut of RelativeSource at https://github.com/Alex141/CalcBinding/pull/73/commits/85ca73b5d749bd848280574a0a38bebcb7892080

zzzzz@PreviousData           // means {Binding Path=zzzzz, RelativeSource={RelativeSource PreviousData}}
yyyyy@TemplatedParent        // means {Binding Path=yyyyy, RelativeSource={RelativeSource TemplatedParent}}
Parent.Name@Self             // means {Binding Path=Parent.Name, RelativeSource={RelativeSource Self}}
[email protected]       // means {Binding Path=xxxx, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}
xxxx@FindAncestor[2].Grid    // means {Binding Path=xxxx, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}, AncestorLevel=2}}
xxxx@Grid                    // means {Binding Path=xxxx, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}
Title@Window                 // means {Binding Path=Title, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}

endlesstravel avatar Jan 26 '21 07:01 endlesstravel