←Select platform

VirtualizeItemReady Event

Summary

Occurs when the virtualizer has an item ready to be rendered.

Syntax
C#
VB
C++
public event EventHandler<ImageViewerVirtualizerEventArgs> VirtualizeItemReady 
Public Event VirtualizeItemReady As EventHandler(Of Leadtools.Controls.ImageViewerVirtualizerEventArgs) 
public:  
   event EventHandler<Leadtools::Controls::ImageViewerVirtualizerEventArgs^>^ VirtualizeItemReady 

Remarks

This event is raised through Virtualizer after LoadItem returns the image data of an item. The viewer will automatically invalidate the item area so it can be re-rendered and the place holder replaced with the actual image data.

You can use subscribe to this event to perform the following:

  • Track when an image data of an item is ready for debugging or logging purposes.

  • Replace the default implementation described above. Set the value of ImageViewerVirtualizerEventArgs.IsHandled to true to stop the viewer from invalidated the area of the item to be re-rendered.

Example

For an example, refer to ImageViewerVirtualizer.

Event Data

ParameterTypeDescription
senderobjectThe source of the event.
eImageViewerVirtualizerEventArgsThe event data.

Requirements

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly