question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArgumentException when changing DataContext

See original GitHub issue

I get the following error:

grafik

It occurs, every time I change the DataContext of my Control. I have 3 GroupModel3Ds bound to different ObservableElement3DCollections like so:

<hx:GroupModel3D ItemsSource="{Binding SxxBoxes}" IsRendering="..." />
<hx:GroupModel3D ItemsSource="{Binding SyyBoxes}" IsRendering="..." />
<hx:GroupModel3D ItemsSource="{Binding SzzBoxes}" IsRendering="..." />

This only occurs, when I update the DataContext which already has Items in ItemsSource!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
leonbohmanncommented, Feb 14, 2020

Maybe that error occurs because I have a GroupModel in a GroupModel in a DataTemplate of an ItemsModel?

0reactions
holancecommented, Feb 25, 2020

Could you create a sample demo to show this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binding issue after data context changed - wpf
So the best way, to solve the issue is to change the data in the VM assigned as DataContext instead of assigning another...
Read more >
wsod when changing a datacontext if the gridview has a ...
I am using a gridview to display an entitycollection, if i remove an item from the entitycollection and re bind the datacontext it...
Read more >
Customize Data Display with Data Binding and WPF
You can easily give any element in the window a different DataContext value, which causes all of that element's descendant elements to inherit ......
Read more >
DataContext is not notified on changes
My question is if there is a way to avoid the reassigment of the DataContext and it gets notified every time CurrentCustomer changed....
Read more >
Using T4 Generated DataContext with .Net Core ...
Hello, i look the article for Configuring LINQ To DB for ASP.Net Core and it's actually work. But when i create generated context...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found