title: How to set corner radius for a container in WPF
body: <p>I have used Listbox in my application. I want to set corner radius for <code>listbox</code> items without using resources. I have set <code>borderthickness</code>, border brush and background using <code>itemsContainer</code> settings but there is no corner radius property there. By using resources then the only <code>cornerradius</code> property is accessed.</p>
  
  <p>How can I achieve this without using resources? </p>
  
  <p>I am new to .Net developing, so please give any suggestion to fix this,</p>
  
  <pre><code>  &lt;ListBox.ItemContainerStyle&gt;              
                  &lt;Style TargetType="ListBoxItem"&gt;
                      &lt;Setter Property="BorderThickness" Value="1"/&gt;
                      &lt;Setter Property="BorderBrush" Value="LightGray"/&gt;
                      &lt;Setter Property="Margin" Value="0,0,15,0"/&gt;
                      &lt;Setter Property="Background" Value="White"/&gt;                    
                  &lt;/Style&gt;
              &lt;/ListBox.ItemContainerStyle&gt;
  </code></pre>