CalcBinding
CalcBinding copied to clipboard
fix bug like {c:Binding .} and `add support for shortcut of RelativeSource`
see issue https://github.com/Alex141/CalcBinding/issues/72
it will lead {c:Binding .} work like {Binding .}
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}}}