title: How to use TabbedPage in Xamarin WPF
body: <p>I am trying to rebuild my old WinForms application using Xamarin Forms for more portability.</p>
  <p>The application uses a <code>TabControl</code>, and <a href="https://docs.microsoft.com/en-us/xamarin/cross-platform/desktop/controls/" rel="nofollow noreferrer">the docs</a> say that the closest Xamarin Forms element is the <code>TabbedPage</code>.</p>
  <p>Here is the code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
  &lt;TabbedPage xmlns=&quot;http://xamarin.com/schemas/2014/forms&quot;
               xmlns:x=&quot;http://schemas.microsoft.com/winfx/2009/xaml&quot; xmlns:local=&quot;clr-namespace:MyApp&quot;
              x:Class=&quot;MyApp.MainPage&quot;&gt;
      &lt;TabbedPage.ToolbarItems&gt;
          &lt;ToolbarItem Text=&quot;Settings&quot;
                       Order=&quot;Primary&quot;
                       Priority=&quot;0&quot; /&gt;
          &lt;ToolbarItem Text=&quot;Tools&quot;
                       Order=&quot;Primary&quot;
                       Priority=&quot;1&quot; /&gt;
          &lt;ToolbarItem Text=&quot;Help&quot;
                       Order=&quot;Primary&quot;
                       Priority=&quot;2&quot; /&gt;
      &lt;/TabbedPage.ToolbarItems&gt;
  
      &lt;TabbedPage.Children&gt;
          &lt;ContentPage Title=&quot;Main&quot;&gt;
              &lt;Label Text=&quot;Coming soon!&quot;/&gt;
          &lt;/ContentPage&gt;
  
          &lt;ContentPage Title=&quot;Today&quot;&gt;
              &lt;Label Text=&quot;Coming soon!&quot;/&gt;
          &lt;/ContentPage&gt;
  
          &lt;ContentPage Title=&quot;This week&quot;&gt;
              &lt;Label Text=&quot;Coming soon!&quot;/&gt;
          &lt;/ContentPage&gt;
  
      &lt;/TabbedPage.Children&gt;
  
  &lt;/TabbedPage&gt;
  
  </code></pre>
  <p>It works well on my UWP build:</p>
  <p><a href="https://i.stack.imgur.com/REjV9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/REjV9.png" alt="enter image description here" /></a></p>
  <p>However, on my WPF build, it does not show the toolbar, making it impossible to switch tabs:
  <a href="https://i.stack.imgur.com/QS2Ue.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QS2Ue.png" alt="enter image description here" /></a></p>
  <p>So what am I doing wrong here?</p>
  <p>Thanks.</p>
  <h3>Update #1: I've tried to build the GTK target, it works correctly:</h3>
  <p><a href="https://i.stack.imgur.com/Ddl5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ddl5e.png" alt="enter image description here" /></a>
  This screenshot is taken on Ubuntu. GTK# on Windows works the same way, but the drawing of the controls are too buggy.</p>