RotatorTemplate Control
Description
The RotatorTemplate control is used to enter a template that will be included in the TemplateRotator.
Properties & Methods
RotatorTemplateThe RotatorTemplate control is used to enter a template that will be included in the TemplateRotator control
  • LayoutTemplate - The ITemplate that that will be used in the TemplateRotator control
  • StyleValue - A String of CSS styles that will be applied to the div for this template
Source Code
TemplateRotator.vb:

Remarks
When creating your RotatorTemplates, it is a good idea to keep in mind the values of the TemplateRotator's RotatorHeight and RotatorWidth properties. The div that wraps each RotatorTemplate uses a CSS class that, along with the height and width specified by RotatorHeight and RotatorWidth, has the values {margin:0px;padding:0px;border-width:0px;overflow:hidden;}. Although the values specified by the StyleValue property will override these, I recommend taking caution when doing this in order to keep the dimensions of all RotatorTemplates equal.