Want to add some margin for initial TabControl headers:
enter image description here

use this ItemContainerStyle

<TabControl mahapps:TabControlHelper.Underlined="SelectedTabItem">
    <TabControl.ItemContainerStyle>
        <Style TargetType="TabItem" BasedOn="{StaticResource {x:Type TabItem}}">
            <Setter Property="Margin" Value="0,0,40,0"/>
        </Style>
    </TabControl.ItemContainerStyle>
</TabControl>

result:
enter image description here


Padding
Using Padding instead of Margin is not an option due to Underline enter image description here


How to save all letters? Letters are good fellows.


(Update) Negative Margin
Tried <Setter Property="Margin" Value="-10,0,0,0"/> enter image description here

0 Answers