跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

Tabbar.xaml

49 行 · 2.6 KB历史下载
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 <!--<Border Background="{TemplateBinding Background}">-->
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 <!--<Path
28 Width="15"
29 Height="15"
30 SnapsToDevicePixels="False"
31 Data="M 0 15 L 7.5 7.5 L 15 15" Fill="{DynamicResource ThemeBrush}"
32 Stroke="{DynamicResource ThemeBrush}"
33 StrokeThickness="1"
34 />-->
35 </Border>
36 <Border Height="30" Margin="0,0,0,20">
37 <Grid x:Name="ItemsContainer">
38
39 </Grid>
40 <!--<StackPanel Orientation="Horizontal" x:Name="ItemsPanel" VerticalAlignment="Bottom"/>-->
41 </Border>
42 </Grid>
43 <!--</Border>-->
44
45 </ControlTemplate>
46 </Setter.Value>
47 </Setter>
48 </Style>
49</ResourceDictionary>