title: How to remove 1px in ItemsPanel on ListBox WPF
body: <p>i can not found margin 1px in ListBox items panel.</p>
  
  <p>my xaml code.</p>
  
  <pre><code>&lt;ListBox&gt;
      &lt;ListBox.Resource&gt;
          &lt;Style TargetType="ListBoxItem"&gt;
              &lt;Setter Property="Padding" Value="0"/&gt;
              &lt;Setter Property="Margin" Value="0"/&gt;
              &lt;Setter Property="Template"&gt;
                  &lt;Setter.Value&gt;
                      &lt;ControlTemplate TargetType="ListBoxItem"&gt;
                          &lt;Border Padding="{TemplateBinding Padding}"
                                  Margin="{TemplateBinding Margin}"
                                  Background="{TemplateBinding Background"&gt;
                          &lt;/Border&gt;
                      &lt;/ControlTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
  
          &lt;Style TargetType="ListBox"&gt;
              &lt;Setter Property="BorderBrush" Value="Black"/&gt;
              &lt;Setter Property="BorderThickness" Value="1"/&gt;
              &lt;Setter Property="Padding" Value="0"/&gt;
              &lt;Setter Property="Background" Value="Blue"/&gt;
              &lt;Setter Property="ItemsPanel"&gt;
                  &lt;Setter.Value&gt;
                     &lt;ItemsPanelTemplate&gt;
                         &lt;UniformGrid Columns="2" Background="Red" Margin="0"/&gt;
                     &lt;/ItemsPanelTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
      &lt;/ListBox.Resource&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>and result image.
  <a href="https://i.stack.imgur.com/ipLLl.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>i want to remove blue background!!
  please help me!! </p>