How to override inline style in xaml
<p>I have a TabControl which is bound to ViewModel. I want to set the margin of the auto generated TabPanel, but I am unable to do so, because I think the style is set inline via TabControl's implementation...</p>

<p>Here is my style...</p>

<pre><code>&lt;TabControl.Resources&gt;
    &lt;Style TargetType="{x:Type TabPanel}"&gt;
        &lt;Setter Property="Margin" Value="14,0,0,0" /&gt;
    &lt;/Style&gt;
&lt;/TabControl.Resources&gt;
</code></pre>

<p>and the resulting style using Visual Studio's Live Property Explorer is like this...</p>

<p><a href="https://i.stack.imgur.com/6kRUs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6kRUs.png" alt="enter image description here"></a></p>

<p>UPDATE 1:</p>

<p>Here is the <code>XAML</code> for ItemTemplate that generates the <code>TabPanel</code> itself:</p>

<pre><code>&lt;TabControl.ItemTemplate&gt;
    &lt;DataTemplate&gt;
        &lt;Grid&gt;
            &lt;Grid.RowDefinitions&gt;
                &lt;RowDefinition /&gt;
                &lt;RowDefinition /&gt;
            &lt;/Grid.RowDefinitions&gt;
            &lt;Grid.ColumnDefinitions&gt;
                &lt;ColumnDefinition MaxWidth="150" /&gt;
            &lt;/Grid.ColumnDefinitions&gt;
            &lt;Image Grid.Row="0" Grid.Column="0" Source="{Binding ImageUri}" 
                   Height="25" Width="35" Margin="0,0,0,10" /&gt;
            &lt;TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding TestName}" TextAlignment="Center" 
                       TextWrapping="Wrap" FontFamily="Open Sans" FontWeight="Regular" FontSize="14" /&gt;
        &lt;/Grid&gt;
    &lt;/DataTemplate&gt;
&lt;/TabControl.ItemTemplate&gt;
</code></pre>