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

Overlay.Info: bindings to DataContext don't work because it uses MS TemplatedAdorner #63

Open
bogdan799 opened this issue Mar 7, 2021 · 1 comment

Comments

@bogdan799
Copy link

The issue is whenever you try to bind to the original datacontext from inside the Info adorner, it throws binding errors. After little investigations and source code decompilation, I figured out that internally MS TemplatedAdorner created a child and sets it's datacontext to validation errors.
image

@bogdan799
Copy link
Author

I solved that by specifying DataContext inside the template using RelativeSource to the first Adorner element, but it would be great if you could take a look and improve a library, cause in the readme you specified that the DataContext will be of the underlying object which is not correct at this point. Also thanks a lot for such a useful library, I'm making some drawing tool with WPF and it helps me a lot!

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

No branches or pull requests

1 participant