title: WPF. If ListView empty, ListView dissappear
body: <p>i have problem with ListView. If there are no items, its has to shown for example something like "No item" And I can do it, but if i do ListView disappear. I need that this text appear inside listview and listview header have to stay the same.</p>
  
  <p>My listView style for empty list now is:</p>
  
  <pre><code> &lt;Style TargetType="{x:Type ListView}" &gt;
              &lt;Setter Property="BorderThickness" Value="2,2,0,0"/&gt;
              &lt;Setter Property="BorderBrush" Value="#FFFFFF"/&gt;
  
              &lt;Style.Triggers&gt;
                  &lt;DataTrigger Binding="{Binding Path=Items.Count,
                      RelativeSource={RelativeSource Self}}"  Value="0"&gt;
                      &lt;Setter Property="Template"&gt;
                          &lt;Setter.Value&gt;
                              &lt;ControlTemplate&gt;
  
                                  &lt;Border BorderThickness="1" BorderBrush="#FFFFFF"
                                          Background="#FFFFFF"&gt;
                                     &lt;TextBlock&gt; No items&lt;/TextBlock&gt;
                                  &lt;/Border&gt;
                              &lt;/ControlTemplate&gt;
                          &lt;/Setter.Value&gt;
                      &lt;/Setter&gt;
                  &lt;/DataTrigger&gt;
              &lt;/Style.Triggers&gt;
          &lt;/Style&gt;
  </code></pre>