Is Parent binding supported?
Posted: 23 Jun 2021, 11:25
Hello,
recently I've ran into issue with binding commands to a button. I used binding to Parent which works just fine in WPF, but under Unity it is not.
I wanted to ask if this feature is supported, since I couldn't find it here: https://www.noesisengine.com/docs/3.0/G ... nding.html
It says in the documentation that RelativeSource binding should work, so I was curious if Path might be the issue here.
Note: I could always move that command to current DataContext and avoid binding to a parent. Tho I would like to know reasoning behind as to why it is not working this way.
Thanks for any insight on this.
recently I've ran into issue with binding commands to a button. I used binding to Parent which works just fine in WPF, but under Unity it is not.
I wanted to ask if this feature is supported, since I couldn't find it here: https://www.noesisengine.com/docs/3.0/G ... nding.html
It says in the documentation that RelativeSource binding should work, so I was curious if Path might be the issue here.
Code: Select all
Command="{Binding Parent.DataContext.OpenHomeCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"Thanks for any insight on this.