title: How-to define Empty DataTemplate for the ItemsControl based controls like ListView or DataGrid
body: <p>ASP.NET controls like ListView allows providing a custom template by setting the <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.emptydatatemplate.aspx" rel="noreferrer">ListView.EmptyDataTemplate</a> property, this template will be rendered in case of empty data source.</p>
  
  <p>How to do the same in WPF (XAML only preferrable) for <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol.aspx" rel="noreferrer">ItemsControl</a> based controls like <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.listview.aspx" rel="noreferrer">ListView</a> and <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.aspx" rel="noreferrer">DataGrid</a>? So I want to show my custom DataTemplate in case when <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol.itemssource.aspx" rel="noreferrer">ItemsSource</a> is empty.</p>