跳到主要内容

github/tai

公开

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

浏览文件

Navigation.xaml

46 行 · 2.4 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.Navigation"
4 >
5 <Style TargetType="{x:Type local:Navigation}">
6 <Setter Property="SnapsToDevicePixels"
7 Value="true" />
8 <Setter Property="MinWidth" Value="44"/>
9 <Setter Property="Height" Value="auto"/>
10 <Setter Property="Background" Value="Transparent"/>
11 <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
12 <Setter Property="Template">
13 <Setter.Value>
14 <ControlTemplate TargetType="{x:Type local:Navigation}">
15 <!--<Border Background="{TemplateBinding Background}">-->
16 <Grid Margin="10">
17 <Grid.RowDefinitions>
18 <RowDefinition Height="auto"/>
19 <RowDefinition Height="*"/>
20 <RowDefinition Height="auto"/>
21
22 </Grid.RowDefinitions>
23 <ContentPresenter Content="{TemplateBinding TopExtContent}"/>
24 <Grid Grid.Row="1" Background="Transparent" x:Name="MenuGrid">
25 <Border x:Name="ActiveBlock" Width="5" Height="25" CornerRadius="2" Background="{DynamicResource ThemeBrush}" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="9" RenderTransformOrigin="0,0">
26 <!--<Border.RenderTransform>
27 <TransformGroup>
28 <TranslateTransform X="0" Y="0"></TranslateTransform>
29 <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/>
30 </TransformGroup>
31 </Border.RenderTransform>-->
32 </Border>
33 <ScrollViewer VerticalScrollBarVisibility="Auto">
34 <StackPanel x:Name="ItemsPanel"/>
35 </ScrollViewer>
36 </Grid>
37
38 <ContentPresenter Content="{TemplateBinding BottomExtContent}" Grid.Row="2"/>
39 </Grid>
40 <!--</Border>-->
41
42 </ControlTemplate>
43 </Setter.Value>
44 </Setter>
45 </Style>
46</ResourceDictionary>