WPF ListView with horizontal arrangement of items? -


I want to put items in ListView in list mode in a similar manner to WinForms ListView. This is where the objects are not only vertically but also horizontally placed in the list view.

I have no problem that the items are kept like this:

1 4 7
2 5 8
3 6 9

< P> or like it:

1 2 3
4 5 6
7 8 9

The order to maximize the use of the available space Both are presented vertically and horizontally.

The closest I had this question was:

Only the items tell horizontally.

It looks like you are looking for one, which will not leave objects horizontally out of So that there is no other place, and then go to the next line, like:

()

You can use any one, Fixed number will be placed in rows or columns.

The way we get the items listed, the listbox, or any other way to use these panels, by changing the item control property. By setting ItemsPanel you can change it to the default stackpellel which is used by item controls. With RapPanel, we should also set the width.

  & lt; ListView & gt; & Lt; ListView.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; WrapPanel Width = "{Binding (Framework Element. ActualWidth), Relative Soros = {Resale Source Entier Type = Scroll Content Presenter}}" Item Wideth = "{see Binding (list view). Hemvid, Relative Soros = { = List view}} "minified =" {binding item wydath, relative sours = {resellers' self}} "itemhit =" {binding (listview.W.V.) • hemohyllt, relative sours = {reslevsor ustore type = listu }} "/ & Gt; & Lt; / ItemsPanelTemplate & gt; & Lt; /ListView.ItemsPanel> ... & lt; / ListView & gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -