Hi,
I am facing a weird issue with the XamCarousellistBox control and might sound kind of funny.
I have a XamCarousellistBox control on which user can drag and drop items which will be added to the control. And this works fine in normal case. But if I do not set the Background property for the XamCarousellistBox control or if I try to set the property by binding the value from a data source, it no longer allows us to drop any objects on the control. Any idea why?
Regards,
Nik
Hello Nik,
I was able to reproduce a similar issue with XamCarouselListBox.
When dragging and dropping, dropping event will not fire if dropped on transparent element.
By default, if you don't set explicitly, XamCarouselListBox has transparent background and it will not be notified for any element dropped. The event will be fired for the control that is beneath XamCarouselListBox.
To solve your issue, always set any background different from transparent to XamCarouselListBox. You can also create an implicit style for XamCarouselListBox that has a setter for the Background property.
Let me know if this helps you. Do not hesitate to ask further.
Sincerely,
Lazar Nikolov
Infragistics
www.infragistics.com/support
Hi Lazar,
Thanks for your reply. Setting the Background property works, but then I won't be able to bind that property.
Is it possible to set a default and bind it too?
I am glad you have found a solution to your issue. Please do not hesitate to contact us if you have any questions.
Thanks its working now.
I am just checking your progress on the issue. Please do not hesitate to let me know if you have any further questions on this matter.
In general, it is possible to set a default value by setting the Background property. When you bind the value to some other data the default value will change.
I would suggest not set the default but ensure that all values that could be assigned to the background thru binding are different from Transparent.
Is that possible in your case?
In any case, if the background is transparent, either set by default (and never changed) or set thru binding to transparent, the drag and drop functionality will not work.