Reputation:
Any Ideas how to remove the Margin in the following image?
Upvotes: 1
Views: 172
Reputation: 13438
Checked it via Snoop. By default, the selected TabItem
has a margin of -2,-2,-2,-1
, so you can set this top margin for all tab items:
<Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource {x:Type TabItem}}">
<Setter Property="Margin" Value="0,-2,0,0"/>
</Style>
Upvotes: 3