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?

Developer technologies Windows Presentation Foundation
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. DaisyTian-1203 11,646 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.