How to make WPF TabControl‘s first TabItem on the left and others on the right?

ZCShou 1 Reputation point
2020-07-23T02:35:44.617+00:00

How to make WPF TabControl‘s first TabItem on the left and others on the right?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. DaisyTian-1203 11,621 Reputation points
    2020-07-23T06:51:00.237+00:00

    You can change the TabControl 's TabPanel to DockPanel and set DockPanel.Dock="Right" HorizontalAlignment="Right" for the TabItem to make it in the right.

    Step:
    1.Go to the Document outline for the TabControl and Edit Template.
    13417-2020-07-23-144617.jpg

    2.Change the TabPanel to DockPanel.

    3.Set DockPanel.Dock="Right" HorizontalAlignment="Right" for the TabItems which want to be set left.

    4.Run and get the result:

    13442-2020-07-23-144956.jpg

    0 comments No comments