Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Image scroller - looking for a control that behaves like in the image

Tags:

wpf

In WPF, What is the best way to implement a control like in the picture below ? you have many images, not all of them can be seen at once but you can do some paging to the right and to the left, or scrolling , I'm not sure how to call it. the two buttons in the sides scroll right and left and brings new images.

enter image description here

like image 915
Erez Avatar asked Oct 08 '22 23:10

Erez


1 Answers

If you require scrolling of images you can use a simple ListBox (you can make it horizontal if you would like to), and if you bind the listbox to an ItemsSource of images apply an ItemTemplate that will contain images.

Here's an example for an horizontal ListBox -

http://immersivenick.wordpress.com/2012/01/14/wpf-short-horizontal-listbox/

If you do not use binding you can just add LisBoxItems with image content.

like image 183
Dror Avatar answered Oct 10 '22 22:10

Dror