title: How To Create A Bottom Or Top AppBar in Windows Store App Using C#?
body: <p>I'm aware of the way to create the AppBar via XAML code. I want to know how to create the AppBar via C#. </p>
  
  <p>On the Windows Phone App, i can just do this.</p>
  
  <pre><code>ApplicationBar = new ApplicationBar(){
              Mode = ApplicationBarMode.Minimized
  };
  
  ApplicationBarMenuItem copyLinkButton = new ApplicationBarMenuItem();
  copyLinkButton.Click += (sender, e) =&gt; { //action };
  copyLinkButton.Text = "copy to clipboard";
  ApplicationBar.MenuItems.Add(copyLinkButton);
  
  ApplicationBarMenuItem openInIEButton = new ApplicationBarMenuItem();
  openInIEButton.Click += (sender, e) =&gt; { //action };
  openInIEButton.Text = "open in internet explorer";
  ApplicationBar.MenuItems.Add(openInIEButton);
  </code></pre>
  
  <p>How do i do it in Windows Store App?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Thank you @kimsk for giving me an answer to my previous question. I've solved it with your answer. But after solving that problem, another similar problem surfaced. </p>
  
  <p>Because i didn't simply use a button like this,</p>
  
  <pre><code>&lt;Button&gt;Button 3&lt;/Button&gt;
  </code></pre>
  
  <p>I have problem tapping into the Microsoft's default style. Is there anyway to reference to that particular style or do i have to create one from scratch by myself?</p>
  
  <pre><code>&lt;Button Style="{StaticResource EditAppBarButtonStyle}"/&gt;
  </code></pre>
  
  <p>Thanks again!</p>