I have discovered what I believe is a bug in PropertyGrid.
Here is a simplified explanation of the issue.
I have a MainWindow that has a PropertyGrid that has its Item property bound to a CurrentWidget. I have a ListBox that has its ItemSource bound to a Widgets collection and its SelectedItem bound to CurrentWidget (TwoWay).
I have a MainWindowViewModel that has a CurrentWidget property and a Widgets collection (Observable).
The Widget class just has four basic properties (ints, bools).
As you click through the Widgets in the ListBox (or arrow up/down), the properties of the selected widget are loaded into the PropertyGrid, but as you move through the items one less property is added to the PropertyGrid until the property count is zero and then it starts back at all of the properties and continues to work down to zero properties, etc.
We have noticed that this is only happening when we have AutoGeneratePropertyDefinitions set to true (the default).
I have created a small proof-of-concept application that isolates and illustrates the bug. Please advise on how to get this to you guys.
Thanks in advance!
Here is a simplified explanation of the issue.
I have a MainWindow that has a PropertyGrid that has its Item property bound to a CurrentWidget. I have a ListBox that has its ItemSource bound to a Widgets collection and its SelectedItem bound to CurrentWidget (TwoWay).
I have a MainWindowViewModel that has a CurrentWidget property and a Widgets collection (Observable).
The Widget class just has four basic properties (ints, bools).
As you click through the Widgets in the ListBox (or arrow up/down), the properties of the selected widget are loaded into the PropertyGrid, but as you move through the items one less property is added to the PropertyGrid until the property count is zero and then it starts back at all of the properties and continues to work down to zero properties, etc.
We have noticed that this is only happening when we have AutoGeneratePropertyDefinitions set to true (the default).
I have created a small proof-of-concept application that isolates and illustrates the bug. Please advise on how to get this to you guys.
Thanks in advance!