|  | 
| 30 | 30 |             <Setter Property="Foreground" Value="Black"/> | 
| 31 | 31 |         </Style> | 
| 32 | 32 | 
 | 
| 33 |  | - | 
| 34 |  | - | 
|  | 33 | +        <Style x:Key="RounedBorder" TargetType="Border"> | 
|  | 34 | +            <Setter Property="CornerRadius" Value="{StaticResource CornerRadius}"/> | 
|  | 35 | +        </Style> | 
| 35 | 36 | 
 | 
| 36 | 37 |         <Style x:Key="DefaultButton" TargetType="Button" > | 
| 37 | 38 |             <Setter Property="Background" Value="{StaticResource AccentBrush}"/> | 
|  | 
| 40 | 41 |             <Setter Property="Template"> | 
| 41 | 42 |                 <Setter.Value> | 
| 42 | 43 |                     <ControlTemplate TargetType="Button"> | 
| 43 |  | -                          <Border  Height="Auto" Width="Auto" BorderBrush="{TemplateBinding Background}" Background="{TemplateBinding Background}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius}"> | 
| 44 |  | -                            <TextBlock  Background="Transparent" Margin="5" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/> | 
|  | 44 | +                          <Border  Height="Auto" Width="Auto" BorderBrush="{TemplateBinding Background}" Background="{TemplateBinding Background}" BorderThickness="0" CornerRadius="{StaticResource CornerRadius}"> | 
|  | 45 | +                            <TextBlock  FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Margin="5" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/> | 
| 45 | 46 |                           </Border> | 
| 46 | 47 |                     </ControlTemplate> | 
| 47 | 48 |                 </Setter.Value> | 
|  | 
| 102 | 103 |             </Style.Triggers> | 
| 103 | 104 |         </Style> | 
| 104 | 105 |         <Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"/> | 
| 105 |  | -         | 
| 106 |  | -        <Style x:Key="DefaultTabItem" TargetType="TabItem"> | 
|  | 106 | + | 
|  | 107 | + | 
|  | 108 | + | 
|  | 109 | +        <Style x:Key="DefaultTabHeader" TargetType="TabItem"> | 
| 107 | 110 |             <Setter Property="Background" Value="{StaticResource AccentBrush}"/> | 
| 108 | 111 |             <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> | 
|  | 112 | +            <Setter Property="BorderThickness" Value="0"/> | 
| 109 | 113 |             <Setter Property="Template"> | 
| 110 | 114 |                 <Setter.Value> | 
| 111 | 115 |                     <ControlTemplate TargetType="TabItem"> | 
| 112 |  | -                        <Border  Height="Auto" Width="Auto" BorderBrush="{StaticResource AccentBrush}" Background="{TemplateBinding Background}" BorderThickness="1 1 1 0" CornerRadius="3 3 0 0"> | 
| 113 |  | -                            <TextBlock  Padding="5,5,5,5" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Header}" HorizontalAlignment="Center" VerticalAlignment="Center"/> | 
|  | 116 | +                        <Border x:Name="HeaderBorder"  Height="Auto" Width="Auto" BorderBrush="{TemplateBinding Background}"  CornerRadius="3 3 0 0"> | 
|  | 117 | +                            <TextBlock x:Name="HeaderContent" FontSize="{TemplateBinding  FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Margin="5" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Header}" HorizontalAlignment="Center" VerticalAlignment="Center"/> | 
| 114 | 118 |                         </Border> | 
|  | 119 | +                        <ControlTemplate.Triggers> | 
|  | 120 | +                            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsSelected}" Value="True" > | 
|  | 121 | +                                <Setter TargetName="HeaderContent"  Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> | 
|  | 122 | +                                <Setter TargetName="HeaderBorder" Property="Background" Value="{StaticResource AccentBrush}"/> | 
|  | 123 | +                                <Setter TargetName="HeaderContent" Property="FontSize" Value="18"/> | 
|  | 124 | + | 
|  | 125 | +                            </DataTrigger> | 
|  | 126 | + | 
|  | 127 | +                            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsSelected}" Value="False" > | 
|  | 128 | +                                <Setter  TargetName="HeaderContent" Property="Foreground" Value="Black"/> | 
|  | 129 | + | 
|  | 130 | +                            </DataTrigger> | 
|  | 131 | + | 
|  | 132 | +                        </ControlTemplate.Triggers> | 
| 115 | 133 |                     </ControlTemplate> | 
| 116 | 134 |                 </Setter.Value> | 
| 117 | 135 |             </Setter> | 
| 118 |  | -            <Style.Triggers> | 
| 119 |  | -                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsSelected}" Value="True" > | 
| 120 |  | -                    <Setter Property="Background" Value="{StaticResource AccentBrush}"/> | 
| 121 |  | -                    <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> | 
| 122 |  | -                    <Setter Property="BorderThickness" Value="0.8 1 1 1"/> | 
| 123 | 136 | 
 | 
| 124 |  | -                </DataTrigger> | 
| 125 |  | -                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsSelected}" Value="False" > | 
| 126 |  | -                    <Setter Property="Background" Value="White"/> | 
| 127 |  | -                    <Setter Property="Foreground" Value="Black"/> | 
| 128 |  | -                    <Setter Property="BorderThickness" Value="0"/> | 
| 129 |  | - | 
| 130 |  | -                </DataTrigger> | 
| 131 |  | -            </Style.Triggers> | 
| 132 | 137 | 
 | 
| 133 | 138 |         </Style> | 
| 134 |  | -        <Style TargetType="TabItem" BasedOn="{StaticResource DefaultTabItem}"/> | 
|  | 139 | + | 
|  | 140 | +        <Style TargetType="TabItem" BasedOn="{StaticResource DefaultTabHeader}"/> | 
|  | 141 | + | 
|  | 142 | +         | 
| 135 | 143 | 
 | 
| 136 | 144 | 
 | 
| 137 | 145 |         <local:EnumLocaleConverter x:Key="EnumLocaleConverter"/> | 
|  | 
0 commit comments