Preloading images

Some of the Dynamics AX controls, such as trees or lists, in most cases have small icon images in front of the text. The icons make the user interface look better and could represent a type, status, availability, or any other property of the current item in the control.

Images are binary data and processing them might be resource-demanding. The Dynamics AX application provides a way of handling images to increase application performance. Normally, for the forms with lists or trees, all required images are preloaded during the form initialization. This reduces the image loading time when the image is actually displayed to the user.

For this purpose, Dynamics AX contains a set of ImageListAppl derivative classes, which hold a specific ...

Get Microsoft Dynamics AX 2012 Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.