Default Implementation of CSS Sprites in DevExpress Themes
- 2 minutes to read
All built-in DevExpress ASP.NET Themes utilize CSS image sprites. Each theme includes "sprite.png" and "sprite.gif" files with composite images (the latter is required for IE6 support, since this browser does not support transparent PNG files). Individual image settings are stored within 'sprite.css' files.
The following table illustrates image settings for the Aqua Theme. It displays the file structure, the content of the 'sprite.png' file and the content of the sprite.css file (truncated for demonstration purposes).
Note that not all images are combined in a sprite image. Animation (such as 'Loading.gif') and repeated background images are stored as standalone files.
Default sprite images and sprite CSS files are stored as resources within the ASPxThemes Assembly. This implementation provides optimal application performance, because CSS image sprites reduce the number of requests for images, and resource file compression (such as scripts and CSS files) minimizes traffic.