title: Dynamically binding NavigationViewItem && NavigationViewItemHeader in UWP XAML
body: <p>I want to populate <code>NavigationViewItem</code>s and <code>NavigationViewItemHeader</code>s dynamically in my <code>NavigationView</code>. However, I can not make it work. It looks like my <code>ListView</code>only take the space of one item. How can I create new Items dynamically?</p>
  
  <p>MainMenu.xaml</p>
  
  <pre><code>&lt;NavigationView x:Name="NavViewTester"
                  ItemInvoked="NavViewTester_ItemInvoked"Loaded="NavViewTester_Loaded" 
                  IsPaneToggleButtonVisible="True" IsPaneOpen="True"&gt;
       &lt;NavigationView.MenuItems&gt;
           &lt;NavigationViewItemHeader Content="My Books"&gt;
           &lt;/NavigationViewItemHeader&gt;
       &lt;/NavigationViewItemHeader&gt;  
  
           &lt;Grid x:Name="BooksGrid"&gt;
  
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="Auto"  /&gt;
                  &lt;RowDefinition Height="*" /&gt;
              &lt;/Grid.RowDefinitions&gt;
  
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="320" /&gt;
                  &lt;ColumnDefinition Width="*" /&gt;
              &lt;/Grid.ColumnDefinitions&gt;
  
              &lt;ListView
                  x:Name="NavigationListView"
                  Grid.Row="1"
                  ItemTemplate="{StaticResource NavigationListViewItemTemplate}"
                  ItemsSource="{x:Bind books.getBooks()}" 
                  IsItemClickEnabled="True"
                  ItemClick="NavigationListView_ItemClick"
                  &gt;
                  &lt;ListView.ItemContainerStyle&gt;
                      &lt;Style TargetType="ListViewItem"&gt;
                          &lt;Setter Property="HorizontalContentAlignment" Value="Stretch" /&gt;
                      &lt;/Style&gt;
                  &lt;/ListView.ItemContainerStyle&gt;
              &lt;/ListView&gt;
  
          &lt;/Grid&gt;   
       &lt;/NavigationView.MenuItems&gt;
  </code></pre>
  
  <p>I also tried <code>NavigationViewList</code> instead of my <code>ListView</code> but it is not helping.</p>