跳到主要内容

github/tai

公开

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

浏览文件

BaseList.xaml

40 行 · 1.9 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.List"
4 xmlns:base="clr-namespace:UI.Controls.Base"
5 xmlns:sys="clr-namespace:System;assembly=mscorlib">
6 <Style TargetType="{x:Type local:BaseList}">
7 <Setter Property="SnapsToDevicePixels"
8 Value="true" />
9 <Setter Property="UseLayoutRounding" Value="True"/>
10
11 <!--<Setter Property="MinWidth" Value="150"/>-->
12 <Setter Property="Height" Value="auto"/>
13 <Setter Property="Background" Value="Transparent"/>
14 <Setter Property="Template">
15 <Setter.Value>
16 <ControlTemplate TargetType="{x:Type local:BaseList}">
17 <Border Background="{TemplateBinding Background}" x:Name="Border">
18
19 <Grid>
20 <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Hidden">
21 <StackPanel x:Name="Container">
22
23 </StackPanel>
24 </ScrollViewer>
25 </Grid>
26
27 </Border>
28 <ControlTemplate.Triggers>
29 <!--<Trigger Property="Icon" Value="None">
30 <Setter TargetName="Icon" Property="Visibility" Value="Collapsed"/>
31 </Trigger>
32 <Trigger Property="IsMouseOver" Value="True">
33 <Setter TargetName="BoxBorder" Property="BorderThickness" Value="0"/>
34 </Trigger>-->
35 </ControlTemplate.Triggers>
36 </ControlTemplate>
37 </Setter.Value>
38 </Setter>
39 </Style>
40</ResourceDictionary>