Hello,
We are facing a problem when using XamPropertyGrid with templated editors. If we have a property with many similar fields e.g. string property using XamComboBox for selection, when scrolling down and up again fast, the recycled controls stay with the values they received on the other end (see screenshots). Could it be that there's some problem within the PropertyGridRecyclingManager?
Could someone please have a look at it, I have attached an example to reproduce the behavior.
Infragistics version is 23.2.20232.94
XamPropertyGridBug.zip
Hello Andreas,
I have been investigating into the behavior you are seeing, and I was able to reproduce it. Interestingly though, this only appears to happen if the ContentPresenter is used with the ContentTemplate rather than directly placing the XamComboEditor within the EditTemplate.
Is there a reason you are placing the ContentPresenter within the EditTemplate rather than just placing the XamComboEditor there?
Yes, there is a reason, this is just a simplified code to demonstrate the behavior.
If I use the combo editor directly, it works but in the original code we need to select the editor and it's available choices or ranges dependent on property attributes of the data class.
Today I tested it with version 24.1.57 with the same result.
Thank you for your update on this matter.
It seems like this issue is very specific to something relating to ContentPresenter, as if I use just about anything else, I cannot reproduce the issue. Interestingly, a ContentControl instead of ContentPresenter also works just fine, so I would recommend using this as a workaround for the time being:
<DataTemplate x:Shared="False"> <ContentControl Content="{Binding}" ContentTemplate="{StaticResource PropertyItem.DataTemplate.ComboBox}" /> </DataTemplate>
The issue with the ContentPresenter is unexpected, and as such I have asked our engineering teams to investigate it further. To ensure it receives attention, I have logged it in our internal tracking systems with a development ID of 34441. The next step is for a developer to offer a fix or other resolution to this issue. I have created you a private support case that I will be linking this issue to so that you can be notified when this happens. It has an ID of C-00239728, and you can access it via the Support tab in your account on the Infragistics website. You can continue to send updates to this forum thread or the case at any time.
Please let me know if you have any other questions or concerns on this matter.
Thanks Andrew,
The ContentControl does the trick in our case.