AlbumOnNet WebControl Suite

Album.UseCustomItemTemplate Property

Whether a custom ItemTemplate should be used instead of the standard Album template.

[Visual Basic]
Overridable Public Property UseCustomItemTemplate As Boolean
[C#]
public virtual bool UseCustomItemTemplate {get; set;}

Property Value

true if a custom made ItemTemplate should be used when displaying an Image and data in the Album, false otherwise. Default false.

Remarks

When creating a custom ItemTemplate, place an AlbumImage control in the template to display images. Set it's SlideShowControl, ImageUrl and SlideImageId properties when the Album connected to a SlideShow. Display meta data using DataBinde syntax (see example below). [aspx]

<axp:album id=Album1 runat="server" SlideShowControl="SlideShow1" AlbumUrl="albums/albumExif/" ForeColor="Yellow" Font-Size="XX-Small" Font-Names="Tahoma" UseCustomItemTemplate="True" BorderStyle="Groove" 
            BorderColor="DarkGreen" BackColor="DimGray" BorderWidth="5px" GridLines="Both">
            <ItemStyle HorizontalAlign="Center">
            	 </ItemStyle>
            
            	 <ItemTemplate>
            <axp:AlbumImage id="AlbumImage1" runat="server" SlideShowControl="SlideShow1" Width="120px"
            ImageUrl='<%#DataBinder.Eval(Container.DataItem, "ThumbUrl").ToString()%>' 
            SlideImageId='<%#DataBinder.Eval(Container.DataItem, "Id").ToString()%>'>
            </axp:AlbumImage><br>
            <span style="font-size:7pt">
            	 <%#DataBinder.Eval(Container.DataItem, "Title").ToString()%><br>
            	 <%#DataBinder.Eval(Container.DataItem, "Width").ToString()%>x<%#DataBinder.Eval(Container.DataItem, "Height").ToString()%><br>
            	 <a style="color:white" 
            			href="javascript:openSlideWin('<%#DataBinder.Eval(Container.DataItem, "ImageUrl").ToString()%>','<%#DataBinder.Eval(Container.DataItem, "FileNameText").ToString()%>','<%#DataBinder.Eval(Container.DataItem, "Width").ToString()%>','<%#DataBinder.Eval(Container.DataItem, "Height").ToString()%>')">View Full Size</a>
            </span>
            </ItemTemplate>
            </axp:album>
            

See Also

Album Class | AlbumOnNet Namespace