title: Uniform Grid inside a ListBox
body: <p>I'm in the development of a program that requires its own custom file manager/explorer.
  It's pretty typical: I have a user-control (named FileItem) and it includes an Image (thumbnail) and a Label (file name).</p>
  
  <p>The problem I'm experiencing is with the layout; I need it in a grid layout (so I'm using Uniform Grid which nails it), exactly like Windows Explorer when you're on icon view:</p>
  
  <p><img src="https://i.stack.imgur.com/HUHn0.jpg" alt="Windows Explorer"></p>
  
  <p>I also need to be able to select file, or multiple files etc. which ListBox does perfectly.
  The problem is that I can't use both.</p>
  
  <p>So I tried to insert a Uniform Grid inside a ListBox. The layout was great, but I couldn't select the files (as if the ListBox wasn't there).</p>
  
  <p>A quick Google search suggested to just use a ListView, but it doesn't do a good job since it has fixed columns and rows (and at the program I'm working on the size will change).</p>
  
  <p>So how can I exactly achieve both of the functionality of ListBox and Uniform Grid?</p>
  
  <p><strong>Edit (Important):</strong>
  If you also need this look and want an answer I actually recommend WrapPanel and not Uniform Grid. It will automatically allow you to dynamically change the number of the rows according to the content.</p>