ListBox [Binding]An error occurred binding #19338
pzelektron
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This took me two days but accidentally I fixed it. But I'm still curious why this working.
This is my simple UserControl KatalogW it contains button and ItemsControl contains another instance of my control KatalogW.
When I press button to list is added new model for my control KatalogM and new control is display.
It displays something like treeview but branches are added only when I pres button.
Button press Command:
Class KatalogM contains only :
And now the weird part. When I use :
<ListBox.ItemTemplate>
<app:KatalogW ObecnyKatalog="{Binding }"/>
</ListBox.ItemTemplate>
I get lot of this errors:
But after switch to ItemsControl everything starts working. Why this happening ? And maybe I should change something in my model class code?
Beta Was this translation helpful? Give feedback.
All reactions