This property sets an xml file that allows seperate comments to be displayed under each thumbnail image.

[Visual Basic] Public Property ShowFileNameText String
[C#] public string ShowFileNameText {get; set;}

Property Value

The default value is "FileNameText.xml".

Explanation

The ShowFileNameText property sets an xml file that allows seperate comments to be displayed under each thumbnail image. The default name for this xml file is "FileNameText.xml". It should be placed in the same directory as the images whose comments it sets. The xml tags in the FileNameText.xml file must correspond to the file names of the images. 

For example, if the following xml file, named "FileNameText.xml", exists in the same directory as these images "001.jpg", "abc.tif", "002.jpg", then the following comments will be displayed under the corresponding thumbnail images.

 

FileNameText.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<FileNameText>
<_001.jpg>Image_1</_001.jpg>
<abc.tif-1>Image_2</abc.tif-1>
<abc.tif-2>Image_3</abc.tif-2>
<_002.jpg>Image_4</_002.jpg>
</FileNameText>

Note: Because xml tags cannot contain a numeral as the first character, an underbar is added at the beginning of the xml tags for images "001.jpg" and "002.jpg". The Thumbnail Control will ignore the initial underbar in any tag within the FileNameText.xml file.  Also, image abc.tif is a multipage tiff image. In the xml tag, the second page of this multipage tiff image is designated in as <abc.tif-1> and the third page is designated as <abc.tif-2> (The page index starts with 0).  

Although we recommend that you keep the FileNameText.xml file in the same directory as the images that it modifies, it is possible to change the directory of the FileNameText.xml file. To do this, set a virtual path from the FileNameText.xmlfile to the directory containing the images that it modifies. In other words, setting the ShowFileNameText property to "/../../FileNameText.xml" means that the FileNameText.xml file is contained in the virtual directory two directories above the directory containing the images.

See Also

ImageKit.WPF.Web.Thumbnail Members | Newtone.ImageKit.WPF.Web.Thumbnail

The ImageKit WPF is created by Newtone Corporation