Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > ImageViewer Class : VirtualizeItemReady Event |
public event EventHandler<ImageViewerVirtualizerEventArgs> VirtualizeItemReady
'Declaration
Public Event VirtualizeItemReady As EventHandler(Of ImageViewerVirtualizerEventArgs)
The event handler receives an argument of type ImageViewerVirtualizerEventArgs containing data related to this event. The following ImageViewerVirtualizerEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Data | The image data for the item. |
IsHandled | Indicates whether the viewer should perform the default action when a virtualizer item is ready |
Item | The source item. |
Virtualizer | Virtualizer object that initiated this event. |
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.
For an example, refer to ImageViewerVirtualizer.