Now let's create an xml file for our gallery. In admin\modules\simpleGalleryModule there is a template.xml file. It's the default gallery template file. If we open it, we'll see that there are two properties described - Preview and Thumbnail.
...
Let's go back to the BackgroundGalleryModuleclass. We create new methods for setting the current image (setCurrent) and for loading it (loadImage):
...
The module is resizable now. But we will lock it so that there is no possibility to drag it and change size. It will be resized automatically with the help of script.
...
The logic of centering works relatively to the zero coordinates, but they are not absolute. They change their position while resizing and that makes the centering work incorrect. We have to include this offsetting to make the centering look right.
...
Difference between ASP.net and Silverlight?
What is the difference between ASP.net and Silverlight?
samward 05-21-2013, 12:08 PM