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.
You can also read Part I
and Part II
of this series.
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.
we can have the LINQ query to have SKIP and TAKE set of records. Such
you see in above code display, I have used a variable count. This variable is initialized as 0.
When we Click on Next Button we are making an increment and in Previous Button Click we are making a decrement.
we will have our Previous and Next Button Click events.
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 ListBox we need to display
the Image in large.
following screenshot is the final SlideShow.
we have successfully created the Slide Show. I will post the Source Code once the
application is full fledged.
You can also download the sample project used in above example below
Hope you like this article series.