Ho开发者_StackOverfloww can I place listbox item separated from each other or leaving some space in between.
I believe if you have a datatemplate, you can just add the following code to the listbox itself: Margin="10" (or any number you like) and that will set a space between each item.
Are you using a template for the listbox items? Are you using databinding and the DataContext or ItemSource properties? I'm sure you can add margins to the items you add to the template to create the space you desire. Check out Nerd Dinner Example for use of a template.
精彩评论