跳到主要内容

github/tai

公开

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

提交记录
修改UI/Views/CategoryAppListPage.xaml+31 −29看文件
@@ -1,18 +1,19 @@
1删除:<Page xmlns:Button="clr-namespace:UI.Controls.Button" x:Class="UI.Views.CategoryAppListPage"
1新增:<c:TPage xmlns:Button="clr-namespace:UI.Controls.Button" x:Class="UI.Views.CategoryAppListPage"
22 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66 xmlns:local="clr-namespace:UI.Views" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:select="clr-namespace:UI.Controls.Select" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:input="clr-namespace:UI.Controls.Input"
7新增: xmlns:c="clr-namespace:UI.Controls"
78 mc:Ignorable="d"
89 d:DesignHeight="450" d:DesignWidth="800"
9删除: Title="CategoryAppListPage" Foreground="{DynamicResource StandardTextBrush}">
10新增: Title="CategoryAppListPage" Foreground="{DynamicResource StandardTextBrush}" IsFillPage="True">
1011
1112 <Grid>
1213 <!--选择应用-->
1314 <Grid Visibility="{Binding ChooseVisibility}" Panel.ZIndex="2" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
1415 <Border Background="Black" Opacity=".7"/>
15删除: <Border Height="460" Background="{DynamicResource StandardBackgroundBrush2}" CornerRadius="10" BorderBrush="{DynamicResource WindowContentBorder}" BorderThickness="1" Margin="50" VerticalAlignment="Top">
16新增: <Border Background="{DynamicResource PopupBackgroundBrush}" CornerRadius="10" BorderBrush="{DynamicResource PopupBorderBrush}" BorderThickness="1" Margin="50" VerticalAlignment="Top">
1617 <Grid>
1718 <Grid.RowDefinitions>
1819 <RowDefinition Height="40"/>
@@ -34,7 +35,7 @@
3435 </i:Interaction.Triggers>
3536 </input:InputBox>
3637 </Border>
37删除: <ListView ItemsSource="{Binding AppList}" Margin="20" Grid.Row="2">
38新增: <ListView ItemsSource="{Binding AppList}" Margin="20,0" Grid.Row="2" VirtualizingPanel.IsVirtualizing="True" ScrollViewer.CanContentScroll="True">
3839 <ListBox.Resources>
3940 <Style TargetType="{x:Type ListView}">
4041 <Setter Property="OverridesDefaultStyle" Value="True"/>
@@ -72,13 +73,13 @@
7273 </ListBox.ItemsPanel>
7374 <ListView.ItemTemplate>
7475 <DataTemplate>
75删除: <StackPanel >
76删除: <Border HorizontalAlignment="Stretch">
76新增: <!--<VirtualizingStackPanel>-->
77新增: <!--<Border HorizontalAlignment="Stretch">-->
7778 <select:Option Visibility="{Binding Visibility}" HorizontalAlignment="Stretch" IsChecked="{Binding IsChoosed,Mode=TwoWay}" Value="{Binding Value}"/>
7879
79删除: </Border>
80新增: <!--</Border>-->
8081
81删除: </StackPanel>
82新增: <!--</VirtualizingStackPanel>-->
8283 </DataTemplate>
8384 </ListView.ItemTemplate>
8485 </ListView>
@@ -88,20 +89,27 @@
8889
8990 </Border>
9091 </Grid>
91删除: <StackPanel Margin="20">
92新增:
93新增:
94新增: <Grid Margin="20">
95新增: <Grid.RowDefinitions>
96新增: <RowDefinition Height="auto"/>
97新增: <RowDefinition Height="auto"/>
98新增: <RowDefinition Height="*"/>
99新增: </Grid.RowDefinitions>
92100 <StackPanel Orientation="Horizontal" Margin="0,0,0,20">
93101 <TextBlock FontSize="18" Text="分类"/>
94删除: <base:Icon IconType="Forward" Margin="10,0" FontSize="12" Foreground="#ccc"/>
102新增: <base:Icon IconType="ChevronRightMed" Margin="10,0" FontSize="12" Foreground="#ccc"/>
95103 <TextBlock FontSize="18" Text="{Binding Category.Data.Name}"/>
96104
97105 </StackPanel>
98删除: <TextBlock Text="应用列表"/>
106新增: <TextBlock Grid.Row="1" Text="应用列表"/>
99107
100删除: <Button:Button Content="选择" HorizontalAlignment="Right" Width="150" Command="{Binding ShowChooseCommand}"/>
101删除: <base:View Condition="empty" Value="{Binding Data}">
108新增: <Button:Button Grid.Row="1" Content="选择" HorizontalAlignment="Right" Width="150" Command="{Binding ShowChooseCommand}"/>
109新增: <base:View Grid.Row="2" Condition="empty" Value="{Binding Data}">
102110 <base:EmptyData/>
103111 </base:View>
104删除: <ListView ItemsSource="{Binding Data}" SelectedItem="{Binding SelectedItem,Mode=TwoWay}" Margin="0,20,0,0">
112新增: <ListView Grid.Row="2" ItemsSource="{Binding Data}" SelectedItem="{Binding SelectedItem,Mode=TwoWay}" Margin="0,20,0,0" VirtualizingPanel.IsVirtualizing="True" ScrollViewer.CanContentScroll="True">
105113 <ListView.ContextMenu>
106114 <ContextMenu>
107115
@@ -121,9 +129,9 @@
121129 <Setter Property="Template">
122130 <Setter.Value>
123131 <ControlTemplate TargetType="{x:Type ListView}">
124删除: <Border>
132新增: <ScrollViewer>
125133 <ItemsPresenter />
126删除: </Border>
134新增: </ScrollViewer>
127135 </ControlTemplate>
128136 </Setter.Value>
129137 </Setter>
@@ -138,7 +146,6 @@
138146 <Border.Effect>
139147 <DropShadowEffect Color="#f3f3f3" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.15" RenderingBias="Performance" ></DropShadowEffect>
140148 </Border.Effect>
141删除: <ContentPresenter/>
142149 </Border>
143150
144151 <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="{DynamicResource StandardBackgroundBrush2}" Margin="0,0,0,10" Padding="15" CornerRadius="10">
@@ -161,20 +168,15 @@
161168 </ListBox.Resources>
162169 <ListBox.ItemsPanel>
163170 <ItemsPanelTemplate>
164删除: <StackPanel/>
171新增: <VirtualizingStackPanel/>
165172 </ItemsPanelTemplate>
166173 </ListBox.ItemsPanel>
167174 <ListView.ItemTemplate>
168175 <DataTemplate>
169删除:
170删除: <WrapPanel Orientation="Horizontal">
171删除: <Border >
172删除:
173删除:
174176 <Grid>
175177 <Grid.ColumnDefinitions>
176178 <ColumnDefinition Width="50"/>
177删除: <ColumnDefinition Width="*"/>
179新增: <ColumnDefinition Width="auto"/>
178180 </Grid.ColumnDefinitions>
179181 <Border>
180182 <base:Img Width="25" Height="25" URL="{Binding IconFile}"/>
@@ -189,12 +191,12 @@
189191
190192
191193 </Grid>
192删除: </Border>
193删除:
194删除: </WrapPanel>
195194 </DataTemplate>
196195 </ListView.ItemTemplate>
197196 </ListView>
198删除: </StackPanel>
197新增: </Grid>
198新增:
199新增:
199200 </Grid>
200删除:</Page>
201新增:
202新增:</c:TPage>
修改UI/Views/CategoryAppListPage.xaml.cs+2 −1看文件
@@ -12,6 +12,7 @@ using System.Windows.Media;
1212using System.Windows.Media.Imaging;
1313using System.Windows.Navigation;
1414using System.Windows.Shapes;
15新增:using UI.Controls;
1516using UI.ViewModels;
1617
1718namespace UI.Views
@@ -19,7 +20,7 @@ namespace UI.Views
1920 /// <summary>
2021 /// CategoryAppListPage.xaml 的交互逻辑
2122 /// </summary>
22删除: public partial class CategoryAppListPage : Page
23新增: public partial class CategoryAppListPage : TPage
2324 {
2425 public CategoryAppListPage(CategoryAppListPageVM vm)
2526 {