+ [Infragistics.Win.UltraWinListView.UltraListViewItemUIElement] {Infragistics.Win.UltraWinListView.UltraListViewItemUIElement} Infragistics.Win.UltraWinListView.UltraListViewItemUIElementI have an UltraListView list control. The UltraListView has a vertical scroll bar. The UltraListViewItems that have to be scrolled to have no UltraListViewItemUIElements. I need to give some those items an UltraListViewItemUIElements. Is there easy way an UltraListViewItem and UltraListViewItemUIElements even though it is not being viewed.
When I do a drag operation with selected items in a UltraListView list control only the selected item that can be viewed in the control are being dragged. This becuase the code only uses the selected items which have a UltraListViewItemUIElements created for them. Is there a simple way I can also created UltraListViewItemUIElements for those selected items whose UIElement property is null so those items will also to be displayed in the drag operation or can I be sent the source code to the UltraListViewItemUIElement.Draw method. This would be the method that overrides the UIElemem's virtual Draw method
Hello,
Element has UIElement only if this element is visible to the end customer. So what you could do is to get selected UltraListViewItems, in order to get their text and icon and to generate visual element (visual representation of those UltraListViewItems, which haven’t had UIElemets). I have made some modification of “WinListView DragDrop” sample in order to demonstrate this approach. Please run the sample and let me know if this is what you are looking for.
Please let me know if you have any further questions.
Well I got your demo code to work. I just hard coded the
styleLibraryPath vairable. I do not have any images associated with a list view item so I can not use the var img = item.Appearance.Image as Bitmap in the GetImageFromItem.
If I remove the reference the img variable in the method and just hard code with and height the text does appear in the drag operation but the text is for away from where the mouse is.
If you can modify the demo not to have any icons at all, make list view control show all its item verticaly instest of cascaded, and just move the selected list view items on the a grag operation centered on mouse during the drag that should do it.
I tried doing the above in my application in the GetImageFromItem but the text was no where to be seen.
;
OK I got you sample code working in my application.
Thanks for all the help
Its greatly appreciated.
Thank you for your feedback. I am glad to hear that my suggestion helps you.
Thank you for using Infragistics Components.