Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can specify Border's properties BorderThickness and CornerRadius in terms of individual value for each side, for example:</p> <pre><code>&lt;Border CornerRadius="2,2,0,0" BorderThickness="2,2,2,0"/&gt; </code></pre> <p>It will have topLeft and topRight corners radius set to 2 and left, top and right border parts set to 2.</p> <p><strong>UPDATE:</strong></p> <p>Also you can create your custom Adorner. More info provided <a href="http://msdn.microsoft.com/en-us/library/ms743737(VS.85).aspx" rel="nofollow noreferrer">by this MSDN Article</a></p> <p>And simply add some self sized geometry to TabItem control template. More info on it provided <a href="http://msdn.microsoft.com/en-us/library/ms752032(VS.85).aspx" rel="nofollow noreferrer">this MSDN Article</a></p> <p><strong>SAMPLE</strong></p> <pre><code>&lt;Style TargetType="{x:Type TabItem}"&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="{x:Type TabItem}"&gt; &lt;Grid&gt; &lt;Viewbox Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Stretch="Fill" StretchDirection="DownOnly"&gt; &lt;Path x:Name="path" Stretch="Fill" Stroke="Black" Fill="{StaticResource LightBrush}" Width="Auto" Height="Auto" Data="M 0,20 L 0,5 5,0 100,0 100,20 "/&gt; &lt;/Viewbox&gt; &lt;Border Visibility="Visible" x:Name="Border" Margin="5,1,0,1" &gt; &lt;ContentPresenter x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Header" Margin="12,2,12,2" RecognizesAccessKey="True"/&gt; &lt;/Border&gt; &lt;/Grid&gt; &lt;ControlTemplate.Triggers&gt; &lt;Trigger Property="IsSelected" Value="True"&gt; &lt;Setter Property="Panel.ZIndex" Value="100" /&gt; &lt;Setter TargetName="path" Property="Fill" Value="{StaticResource WindowBackgroundBrush}" /&gt; &lt;/Trigger&gt; &lt;Trigger Property="IsEnabled" Value="False"&gt; &lt;Setter TargetName="path" Property="Fill" Value="{StaticResource DisabledBackgroundBrush}" /&gt; &lt;Setter TargetName="path" Property="Stroke" Value="{StaticResource DisabledBorderBrush}" /&gt; &lt;Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" /&gt; &lt;/Trigger&gt; &lt;/ControlTemplate.Triggers&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload