←Select platform

IsHandled Property

Summary

Indicates whether the viewer should perform the default action when a virtualizer item is ready

Syntax

C#
VB
C++
public bool IsHandled { get; set; } 
Public Property IsHandled() As Boolean 
   Get 
   Set 
public:  
   property bool IsHandled 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

false if the viewer should perform the default action when a virtualizer item is ready, otherwise; true to indicate that the action was handled and the viewer should render the item.

Remarks

VirtualizeItemReady 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.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.WinForms Assembly