Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
How to determine UltraListView UIElement partially in view
posted

Hi,

I have a custom creation filter on ultralistview to load image on demand. when item is fully visible its image will load.,

it works good but in thumbnail view if just 1 px of item is out of scope it does not load image.

 

is there any way to determine partially viewed items or one more line before and one more line after from viewed items at least.

here a part of my custom creation filter...

Public Sub AfterCreateChildElements(parent As UIElement) Implements IUIElementCreationFilter.AfterCreateChildElements

     If TypeOf parent Is UltraListViewItemUIElement Then

         Dim item As UltraListViewItemUIElement = DirectCast(parent, UltraListViewItemUIElement)

         If item.Item.Appearance.Image Is Nothing AndAlso item.IsFullyVisible Then

             item.Item.Appearance.Image = Me.GetThumbnail(item.Item.SubItems("FilePath").Value.ToString())

         End If

     End If

End Sub

Public Function BeforeCreateChildElements(parent As UIElement) As Boolean Implements IUIElementCreationFilter.BeforeCreateChildElements

     Return False

End Function

Parents Reply Children