The moment that dragging a dimension from the Available Dimensions and Measures Tree begins, a System.NullReferenceException (Object reference not set to an instance of an Object) in Infragistics.WPF4.DragDrop.v.16.2.dll is thrown.
This occurs as of Infragistics.WPF4.DragDrop.v.16.2.dll build no 16.2.20162.2045
This problem did not occur as of build no 16.2.20162.1006
Hi Andrew
Bearing in mind that this was not an issue as of WPF 16.1.20161.2056, then some thing could have changed in the drag-drop framework or somewhere else since that build.
Anyway, thanks for the Support case and for your efforts thus far.
Best Regards
Hello PV87992,
Thank you for your update.
From the sample you attached to CAS-179935-B3H2Z5, this issue appears to be the same issue with our drag-drop framework as was discovered recently. That is, there is a regression in our drag-drop framework, in which it looks for a parental Window element to the element being dragged, and so this breaks in when hosting a WPF application in a Windows Forms app, as it will fail to cast the parent to a Window object. The XamPivotGrid uses this framework internally to drag and drop its corresponding dimensions, and I believe this is why you are currently seeing this issue. I am not positive on this just yet, though, and am currently trying to confirm it with your sample project.
In another forum thread, you had raised some concern that this is a "sensitive IP," and so I have created you a private support case on this matter so that we may continue our discussion there. This support case has an ID of CAS-179906-W0M2M1 and you can access it here: https://es.infragistics.com/my-account/support-activity.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Your solution works fine on my computer as well. This error does not manifest itself in simple "Hello World" type of projects
So I have extracted a section of our larger application and cut it down to the bare essentials into a sample application that produces the System.NullReferenceException when dragging a dimension.
This support incident is 1 of 3 WPF related current support incidents.
I have uploaded the sample application that covers this support incident (and the other 2 incidents) to the Support Activity section under CASE NUMBER / CAS-179935-B3H2Z5 .
I have been investigating into this issue, and after creating a sample XamPivotGrid project with a XamPivotDataSelector, I cannot seem to reproduce this System.NullReferenceException that you are seeing.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. As you had mentioned a specific version, my test was performed using version 16.2.20162.2045 in Infragistics for WPF 2016 Volume 2.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.