Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Add a custom thumbnail image to a custom item in the thumbnail view

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView.Net/WPF
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Thu Apr 19, 2007 2:24 pm    Post subject: HOWTO : Add a custom thumbnail image to a custom item in the thumbnail view

To supply a custom thumbnail image for an item, you must first add it to the FileView imagelist using AddCustomIcon method. This method returns an index value which you can use with AddCustomItem method.

You must add following code in the BeforeFill or AfterFill event of FileView.

[C#]

private void fileView1_BeforeFill(object sender, System.EventArgs e)
{

int thumbIndex =fileView1.AddCustomIcon((Bitmap)Bitmap.FromFile("<<Full path of thumbnail image>>"),FileViewImageLists.ThumbnailFramed);
fileView1.AddCustomItem("Custom item display name",thumbIndex);

}
Back to top
Display posts from previous:   
Forum Index -> FileView.Net/WPF All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group