ImageGear21.Windows.Controls Assembly > ImageGear.Windows.Controls Namespace > ImGearThumbnailList Class : ARTPageCache Property |
'Declaration Public ReadOnly Property ARTPageCache As ImGearReadOnlyDictionary(Of ImGearThumbnailPage,ImGearARTPage)
'Usage Dim instance As ImGearThumbnailList Dim value As ImGearReadOnlyDictionary(Of ImGearThumbnailPage,ImGearARTPage) value = instance.ARTPageCache
public ImGearReadOnlyDictionary<ImGearThumbnailPage,ImGearARTPage> ARTPageCache {get;}
public: __property ImGearReadOnlyDictionary<ImGearThumbnailPage*,ImGearARTPage*>* get_ARTPageCache();
public: property ImGearReadOnlyDictionary<ImGearThumbnailPage^,ImGearARTPage^>^ ARTPageCache { ImGearReadOnlyDictionary<ImGearThumbnailPage^,ImGearARTPage^>^ get(); }
When a thumbnail item is first generated, a new ImGearARTPage is created for the thumbnail item and added to the ARTPageCache. The MarksLoading event fires for the thumbnail item and can be used to specify the ImGearARTPage that is associated with the thumbnail item. The ThumbnailList.LoadAllARTPages method can be used to fire the MarksLoading event for all thumbnail items that do not have an associated ImGearARTPage. If the ThumbnailList.SelectedPageDisplay property is bound to a PageView.Display and the marks are modified in the PageView.Display, the modified ImGearARTPage for the selected thumbnail item will be updated in the ARTPageCache.
This cache can be used to access the ImGearARTPages associated with thumbnail items. For example, when your application is closing, you can iterate through the ImGearARTPages and check the ImGearARTPage.MarksChanged property to determine if an ImGearARTPage should be saved.