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 brush binding errors #450

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

Garzuuhl
Copy link
Contributor

Hey,
we noticed that we are getting binding errors everytime we attach Snoop to our application.

System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Color; DataItem=null; target element is 'SolidColorBrush' (HashCode=31748810); target property is 'Color' (type 'Color')

I first thought it might be one of our bindings but couldn't find one where we bind to the mentioned path. I finally had some time to do some research and checked the source code of Snoop if there is such a binding.

I've added a converter to convert a Color to a SolidColorBrush and that fixed it.

Let me know if you want any changes.

@batzen batzen self-assigned this May 29, 2024
@batzen batzen added the bug label May 29, 2024
@batzen batzen added this to the 6.0.0 milestone May 29, 2024
@batzen batzen merged commit c7062b8 into snoopwpf:develop May 30, 2024
@batzen
Copy link
Collaborator

batzen commented May 30, 2024

Thanks for contributing!

batzen added a commit that referenced this pull request May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants