title: Dynamic list of hamburger menu buttons
body: <p>I want to create a <code>HamburgerMenu</code> from a dynamic list of items, preferably I'd like to bind something like a <code>ListBox</code> with a template to a list on my view model, and have the menu items appear dynamically.  (See: <a href="http://bit.ly/1Lac78E" rel="nofollow noreferrer">http://bit.ly/1Lac78E</a>).</p>
  
  <p>Attempting to add anything to the <code>PrimaryButtons</code> (or probably the <code>SecondaryButtons</code>) collection other than <code>HamburgerButtonInfo</code> causes an error.  Presumably because those collections are declared as:</p>
  
  <pre><code>PrimaryButtons = new ObservableItemCollection&lt;HamburgerButtonInfo&gt;(); 
  SecondaryButtons = new ObservableItemCollection&lt;HamburgerButtonInfo&gt;(); 
  </code></pre>
  
  <p>So is it possible to do this with the Template10 hamburger menu, without using code-behind like in this question: <a href="https://stackoverflow.com/questions/35231721/uwp-template-10-create-a-dynamic-hamburgermenu/35244589">UWP Template 10 create a dynamic hamburgermenu</a>?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>To clarify, I am trying to create a navigation menu (using the Hamburger menu template) similar to the Mail and Calendar app, where there is a dynamic list of folders and items in the folders.</p>
  
  <p><a href="https://i.stack.imgur.com/ePtUb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ePtUb.png" alt="enter image description here"></a></p>