Skip to content

TabControlEx: TabStripPlacement issues #174

@imonikov

Description

@imonikov

Describe the bug

It looks like TabControlEx works properly only with default TabStripPlacement="Top" property. Try to change it to Left, Right, Bottom and see the issue - template parts are located incorrectly.

Steps to reproduce

Set TabStripPlacement Left, Right or Bottom and see the result.

<controlz:TabControlEx TabStripPlacement="Left">
    <TabItem Header="Lorem">
        <TextBlock Text="Lorem ipsum dolor sit amet, consetetur sadipscing"
                   HorizontalAlignment="Center"
                   FontSize="30" />
    </TabItem>
    <TabItem Header="ipsum">
        <TextBox Text="Lorem ipsum dolor sit amet, consetetur sadipscing"
                 HorizontalAlignment="Center"
                 Margin="5" />
    </TabItem>
</controlz:TabControlEx>

Workaround

Set style from Tabcontrol directly:
<controlzex:TabControlEx Style="{StaticResource {x:Type TabControl}}" TabStripPlacement="Left">

Expected behavior

TabStripPlacement="Left":
LeftEx

Actual behavior

TabStripPlacement="Left":
Left

Environment

ControlzEx version=5.0.2
Windows build number: Win10 22H2
Visual Studio: 2017 15.9.51
Target Framework: net472

Screenshots

TabStripPlacement="Bottom":
Bottom

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions