Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Discover the top 5 tips for understanding .NET Interop
Search :       Advanced Search »
Home » WPF » Making an Image SlideShow in WPF: Part IV

Making an Image SlideShow in WPF: Part IV

In this article we will see how we can loop through the Image List and display it in ListBox.

Author Rank :
Page Views : 8691
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 


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.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 Article Extensions
Contents added by Diptimaya Patra on May 22, 2010
Download Source with images
Contents added by Diptimaya Patra on May 19, 2010
http://www.ziddu.com/download/9933852/SlideShow.zip.html
 [Top] Rate this article
 
 About the author
 
Diptimaya Patra

Diptimaya is working as a Sr. Software Engineer in Microsoft Technologies (C#). He is a Microsoft MVP in Client App Dev, he has a good hands on in Silverlight 2/3/4, WPF 3/4, Expression Blend 3/4.


Follow him in Twitter: http://www.twitter.com/dpatra

Blog: http://dpatra.blogspot.com , http://diptimayapatra.wordpress.com

Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
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.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the Top 5 .NET Memory Management Fundamentals
To write the best .NET code, you need to know exactly how the .NET framework really manages memory. Ricky Leeks presents the Top 5 fundamental facts of .NET memory management. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
Team Foundation Server Hosting
Become a Sponsor
 Comments
Source would be great by Paul On March 8, 2010
I'm working on a project now that requires this kind of functionality and I've never worked with presentation foundation before. This would give me a great head start.
Reply | Email | Modify 
Re: Source would be great by Abdul Javed On March 8, 2010
Where can I find is the download link to this slide show...
Reply | Email | Modify 
Re: Re: Source would be great by Diptimaya On March 11, 2010
I am trying to finish the app for slideshow only, then I would share it definitely. As promised. :-)
Reply | Email | Modify 
Re: Re: Re: Source would be great by Abdul Javed On March 17, 2010
Thank you very much.
Reply | Email | Modify 
Source Code by Priscila On May 12, 2010
Good evening!

I am Brazilian and unfortunately here we do not have many sources of advice / research on "new" technologies like WPF, very difficult to find something, and am currently working at the same time learning WPF and the need arose to make a slideshow.

I was looking for something on the Internet SlideShow done in WPF, and a execelente chance I found your article, which helped me in parts, but some parts of the source code posted here is collapsed and I could not understand some things, I know his idea is to just give the kick-start, and I loved your article, but would you post the source code for download, not just me as others.

Sorry if my English is rather bad and being a little long in the post.
If you can contact me by email: priscilatome@gmail.com

Thanks
Priscila Tomé
Reply | Email | Modify 
Re: Download Link by Priscila On May 25, 2010
Thanks a Lot.

Priscila Tomé
Reply | Email | Modify 
Re: Download Link by anish On October 15, 2010
Sir,
Liked the tutotrial. Can you please the XML scheme. I wish to try your application.
Thank you.
Reply | Email | Modify 
Re: Download Link by Arun On September 20, 2011
Please tell me what is the schema for xml??
Reply | Email | Modify 
Where are the images and XML files? by Chris On June 7, 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.
Reply | Email | Modify 
Complete Code by Dorababu On May 3, 2011
I am unable to see the output as you said form the downloaded code so can you attach the complete working code again
Reply | Email | Modify 
Nevron Chart
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.