Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To elaborate on <a href="https://stackoverflow.com/users/249281/sheridan">@Sheridan</a>'s answer, here is a simple <code>TabControl</code> XAML that does what you need:</p> <pre><code>&lt;TabControl TabStripPlacement="Left"&gt; &lt;TabItem Header="Option 1"&gt; &lt;Grid Background="DarkGray"&gt; &lt;TextBlock Foreground="AliceBlue" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Text="View 1"/&gt; &lt;/Grid&gt; &lt;/TabItem&gt; &lt;TabItem Header="Option 2"&gt; &lt;Grid Background="DarkBlue"&gt; &lt;TextBlock Foreground="AliceBlue" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Text="View 2"/&gt; &lt;/Grid&gt; &lt;/TabItem&gt; &lt;TabItem Header="Option 3"&gt; &lt;Grid Background="DarkSlateBlue"&gt; &lt;TextBlock Foreground="AliceBlue" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Text="View 3"/&gt; &lt;/Grid&gt; &lt;/TabItem&gt; &lt;/TabControl&gt; </code></pre> <p>Result:</p> <p><img src="https://i.stack.imgur.com/TBmDL.png" alt="enter image description here"></p> <p>You can customize it a little bit by adding this simple <code>Style</code> To your <code>Window.Resources</code>:</p> <pre><code> &lt;Window.Resources&gt; &lt;Style TargetType="TabItem"&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="TabItem"&gt; &lt;RadioButton Content="{TemplateBinding Header}" Margin="2" IsChecked="{Binding IsSelected, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"/&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; &lt;/Window.Resources&gt; </code></pre> <p>Which then results in:</p> <p><img src="https://i.stack.imgur.com/4zwPm.png" alt="enter image description here"></p> <p>The "WPF Mentality" makes you think the UI controls in terms of their functionality, not their appearance, this is a <code>TabControl</code> =)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload