SIGN UP MEMBER LOGIN:    
ARTICLE

Making an Image SlideShow in WPF: Part IV

Posted by Diptimaya Patra Articles | WPF with C# March 07, 2010
In this article we will see how we can loop through the Image List and display it in ListBox.
Reader Level:

Introduction

In part III of this article series we have seen the Window Transparency and it's FullScreen View. We have seen how we can achieve Tooltip as the small Image Preview of the Mouse Hovered Image. In this article we will see how we can loop through the Image List and display it in ListBox.

To start with let me explain how I am using the List. I am having a Global List that will be refreshed each time a new item is added or an existing item is updated.

The following Global List is kept inside a Class. So that it can be accessed for other windows.

image1.gif

Now we can have the LINQ query to have SKIP and TAKE set ot records. Such as:

image2.gif

As you see in above code display, I have used a variable count. This variable is initiliazised as 0.

When we Click on Next Button we are making an increament and in Previous Button Click we are making a decreament.

Now we will have our Previous and Next Button Click events.

image3.gif

As the number of images displayed in the ListBox is always 10, we have to use the above logic to take the List.

Count * 10 is the number of records to be Skipped and next 10 records are to be taken for display.

Now the last tiny thing left is on SelectionChanged event of the ListBoc we need to display the Image in large.

image4.gif

The following screenshot is the final SlideShow.

image5.gif

So we have successfully created the SlideShow. I will post the Source Code once the application is full fledge.

Hope you like this article series.

Login to add your contents and source code to this article
Article Extensions
Contents added by Diptimaya Patra on May 22, 2010
Contents added by Diptimaya Patra on May 19, 2010
share this article :
post comment
 

Please tell me what is the schema for xml??

Posted by Arun Joseph Sep 20, 2011

I am unable to see the output as you said form the downloaded code so can you attach the complete working code again

Posted by Dorababu M May 03, 2011

Sir,

Liked the tutotrial. Can you please the XML scheme. I wish to try your application.
Thank you.

Posted by anish shres Oct 15, 2010

I recently downloaded the application but did not see the image files or XML file.  These would be very helpful in learning how to customize the application.  Is there anyway for you to share these?  Thanks.

Posted by Chris Egan Jun 07, 2010

Thanks a Lot.

Priscila Tomé

Posted by Priscila Tome May 25, 2010
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Become a Sponsor