Hi I'm using the lastest service release 2020.1 (15/07/2020) and when opening the Appstylist facility I get the following message
UltraDockManager - DragDrop disabled - The AllowDrop property is set to true but the ApartmentState of the current thread does not support drag drop. To disbale drag drop functionality set the AllowDrop property to false.
I had the same message in my own code and I could change my own code to AllowDrop = False which removed the message but I cannot do anything about your Appstylist facility.
Kind RegardsPaul Kitching
Hi,the latest service release in the download section is still 20.1.42. Why is 20.1.47 not listed in the download section? Is it a beta? Is 20.1.47 relieable?Anton
Hello Mike + Divya,
Thank you both for the quick responses. The reflection-based workaround ended up not being necessary as SR 47 does indeed fix it. :)
Thanks again,
Sören Kuklau
Hello Soren,
Here you can find the bi-weekly link to download for version 20.1.47/19.2.399:
http://builds.infragistics.com/products/WinForms/2020.1/Infragistics_WinForms_20201.47_SR.zip
http://builds.infragistics.com/products/WinForms/2019.2/Infragistics_WinForms_20192.399_SR.zip
Let me know if you have any question.
Sincerely,
Divya Jain
Hi Sören,
The issue has been fixed internally and it's fixed in the latest bi-weekly build which is available for download. I will see about getting you a link or some instructions on how to download it. :)
If you would prefer, you can work around the issue...Copy this method into your code and then call it for each DockManager component in your application. You only need to call this method once, perhaps in your form's constructor. It requires full trust, though, since it uses reflection.
private void SuspendSTAThreadWarning(Infragistics.Win.UltraWinDock.UltraDockManager dockManager) { var dockManagerType = dockManager.GetType(); var STAThreadWarningSuspendedProperty = dockManagerType.GetField("STAThreadWarningSuspended", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); STAThreadWarningSuspendedProperty.SetValue(dockManager, true); }
Hi,
I think I'm running into the same issue, but in my own app — after upgrading it from 2019.1 to 2020.1, I get this message on startup. `System.Threading.Thread.CurrentThread.GetApartmentState()` returns STA.
Will there be a service release soon?
Thanks!