Created
September 3, 2016 00:42
-
-
Save LGM-AdrianHum/f6056b79683c258d0ff33f126a4eebb5 to your computer and use it in GitHub Desktop.
Create A Listbox With A Wrap Panel as a Host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled"> | |
<ListBox.ItemsPanel> | |
<ItemsPanelTemplate> | |
<WrapPanel IsItemsHost="True" /> | |
</ItemsPanelTemplate> | |
</ListBox.ItemsPanel> | |
<ListBoxItem>listbox item 1</ListBoxItem> | |
<ListBoxItem>listbox item 2</ListBoxItem> | |
<ListBoxItem>listbox item 3</ListBoxItem> | |
<ListBoxItem>listbox item 4</ListBoxItem> | |
<ListBoxItem>listbox item 5</ListBoxItem> | |
</ListBox> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment