c# - WPF Image Gallery -


I'm running a touch-screen application (not a web app) that needs to be presented to a group of images Is the users? Wish is to present a 3x3 grid of pictures with a page forward / backward capability. They can choose something and I will present those pictures.

I do not think that ListView is very much what I want (although WPF is quite big that I could well remember something obvious!). I could set a grid and luggage images in grid position but I was expecting some good, more automatic, less brute force. Any thoughts or pointers?

You can enter a ItemsControl / list box and Then set the UniformGrid panel to get a proper WPF bindable solution as a ItemsPanel for a 3x3 display.

  & lt; Listbock ScrollViewer.HorizontalScrollBarVisibility = "Disabled" & gt; & Lt; ListBox.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; Uniform grid rows = "3" column = "3" /> & Lt; / ItemsPanelTemplate & gt; & Lt; /ListBox.ItemsPanel> & Lt; Image Source = "Images \ img1.jpg" width = "100" /> & Lt; Image Source = "Images \ img2.jpg" width = "50" /> & Lt; Image Source = "Images \ img3.jpg" width = "200" /> & Lt; Image source = "images \ img4.jpg" width = "75" /> & Lt; Image Source = "Images \ img5.jpg" width = "125" /> & Lt; Image Source = "Images \ img6.jpg" width = "100" /> & Lt; Image Source = "Images \ img7.jpg" width = "50" /> & Lt; Image Source = "Picture \ img8.jpg" width = "50" /> & Lt; Image Source = "Picture \ img9.jpg" width = "50" /> & Lt; / ListBox & gt;  

If you are looking for a dynamic solution, then you have to set up the collection of images in the form of cross-binding of items. But the question is very broad to give an accurate answer.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -