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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

endlesstravel
Copy link

see issue #72

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

@endlesstravel
Copy link
Author

endlesstravel commented Jan 26, 2021

add support for shortcut of RelativeSource at 85ca73b

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 endlesstravel changed the title fix bug like {c:Binding .} fix bug like {c:Binding .} and add support for shortcut of RelativeSource Jan 26, 2021
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

Successfully merging this pull request may close these issues.

1 participant