| 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:local="clr-namespace:UI.Controls.Tabbar" |
| 4 | xmlns:base="clr-namespace:UI.Controls.Base" |
| 5 | > |
| 6 | <Style TargetType="{x:Type local:Tabbar}"> |
| 7 | <Setter Property="SnapsToDevicePixels" |
| 8 | Value="true" /> |
| 9 | <Setter Property="MinWidth" Value="44"/> |
| 10 | <Setter Property="Height" Value="auto"/> |
| 11 | <Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
| 12 | <Setter Property="Background" Value="Transparent"/> |
| 13 | <Setter Property="SelectedTextColor" Value="{DynamicResource ThemeColor}"/> |
| 14 | <Setter Property="Template"> |
| 15 | <Setter.Value> |
| 16 | <ControlTemplate TargetType="{x:Type local:Tabbar}"> |
| 17 | |
| 18 | <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> |
| 19 | <Border x:Name="ActiveBlock" Width="35" CornerRadius="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Panel.ZIndex="9" RenderTransformOrigin="0,0"> |
| 20 | <Border.RenderTransform> |
| 21 | <TransformGroup> |
| 22 | <TranslateTransform X="0" Y="0"></TranslateTransform> |
| 23 | <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/> |
| 24 | </TransformGroup> |
| 25 | </Border.RenderTransform> |
| 26 | <base:Icon IconType="CaretUpSolid8" FontSize="10" Foreground="{DynamicResource ThemeBrush}" /> |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | </Border> |
| 36 | <Border Height="30" Margin="0,0,0,20"> |
| 37 | <Grid x:Name="ItemsContainer"> |
| 38 | |
| 39 | </Grid> |
| 40 | |
| 41 | </Border> |
| 42 | </Grid> |
| 43 | |
| 44 | |
| 45 | </ControlTemplate> |
| 46 | </Setter.Value> |
| 47 | </Setter> |
| 48 | </Style> |
| 49 | </ResourceDictionary> |