提交记录修改Core/Models/Config/Link/LinkModel.cs+2 −2看文件
修改UI/App.xaml+13 −9看文件
修改UI/Controls/Base/IconConverter.cs+2 −0看文件
修改UI/Controls/Base/IconTypes.cs+3 −1看文件
修改UI/Controls/Base/View.cs+67 −41看文件
修改UI/Controls/Select/Select.cs+11 −1看文件
修改UI/Themes/Select/Select.xaml+26 −1看文件
修改UI/Views/DetailPage.xaml+99 −89看文件
修改UI/Views/SettingPage.xaml+3 −3看文件
| @@ -11,12 +11,12 @@ namespace Core.Models.Config.Link | ||
| 11 | 11 | /// <summary> |
| 12 | 12 | /// 关联名称 |
| 13 | 13 | /// </summary> |
| 14 | 删除: [Config(Name = "关联名称", Description = "设置一个名称用于识别该关联的目的", IsName = true, IsCanRepeat = false)] | |
| 14 | 新增: [Config(Name = "名称", Description = "设置一个名称用于识别该关联", IsName = true, IsCanRepeat = false)] | |
| 15 | 15 | public string Name { get; set; } = "新的关联"; |
| 16 | 16 | /// <summary> |
| 17 | 17 | /// 关联进程列表 |
| 18 | 18 | /// </summary> |
| 19 | 删除: [Config(Name = "关联进程", Description = "将需要关联的进程名称(不带.exe)添加到此", IsCanRepeat = false)] | |
| 19 | 新增: [Config(Name = "关联进程", Description = "将需要关联的进程名称(不带.exe)添加到此,至少两个。", IsCanRepeat = false)] | |
| 20 | 20 | public List<string> ProcessList { get; set; } = new List<string>(); |
| 21 | 21 | } |
| 22 | 22 | } |
| @@ -3,6 +3,7 @@ | ||
| 3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | 4 | xmlns:local="clr-namespace:UI" |
| 5 | 5 | Startup="OnStartup" |
| 6 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 6 | 7 | > |
| 7 | 8 | <Application.Resources> |
| 8 | 9 | <!--上下文菜单样式--> |
| @@ -76,7 +77,7 @@ | ||
| 76 | 77 | <Setter Property="Height" |
| 77 | 78 | Value="1" /> |
| 78 | 79 | <Setter Property="Margin" |
| 79 | 删除: Value="35,5,5,5" /> | |
| 80 | 新增: Value="45,5,15,5" /> | |
| 80 | 81 | <Setter Property="Template"> |
| 81 | 82 | <Setter.Value> |
| 82 | 83 | <ControlTemplate TargetType="{x:Type Separator}"> |
| @@ -201,17 +202,18 @@ | ||
| 201 | 202 | Padding="0,6"> |
| 202 | 203 | <Grid> |
| 203 | 204 | <Grid.ColumnDefinitions> |
| 204 | 删除: <ColumnDefinition Width="20" | |
| 205 | 新增: <ColumnDefinition Width="30" | |
| 205 | 206 | SharedSizeGroup="Icon" /> |
| 206 | 207 | <ColumnDefinition Width="20" /> |
| 207 | 208 | <ColumnDefinition Width="Auto" |
| 208 | 209 | SharedSizeGroup="Shortcut" /> |
| 209 | 210 | <ColumnDefinition Width="13" /> |
| 210 | 211 | </Grid.ColumnDefinitions> |
| 212 | 新增: | |
| 211 | 213 | <ContentPresenter x:Name="Icon" |
| 212 | 214 | |
| 213 | 215 | VerticalAlignment="Center" |
| 214 | 删除: | |
| 216 | 新增: TextElement.Foreground="Gray" | |
| 215 | 217 | HorizontalAlignment="Center" |
| 216 | 218 | ContentSource="Icon" /> |
| 217 | 219 | <Rectangle x:Name="CheckMark" |
| @@ -228,7 +230,9 @@ | ||
| 228 | 230 | <ContentPresenter x:Name="HeaderHost" |
| 229 | 231 | Grid.Column="2" |
| 230 | 232 | ContentSource="Header" |
| 231 | 删除: RecognizesAccessKey="True" /> | |
| 233 | 新增: Margin="0,0,10,0" | |
| 234 | 新增: VerticalAlignment="Center" | |
| 235 | 新增:HorizontalAlignment="Left" RecognizesAccessKey="True" /> | |
| 232 | 236 | <TextBlock x:Name="InputGestureText" |
| 233 | 237 | Grid.Column="3" |
| 234 | 238 | FontWeight="Normal" |
| @@ -689,14 +693,14 @@ | ||
| 689 | 693 | </BeginStoryboard> |
| 690 | 694 | </EventTrigger> |
| 691 | 695 | </ControlTemplate.Triggers> |
| 692 | 删除: | |
| 696 | 新增: | |
| 693 | 697 | </ControlTemplate> |
| 694 | 698 | </Setter.Value> |
| 695 | 699 | </Setter> |
| 696 | 700 | </Style> |
| 697 | 删除: | |
| 698 | 删除: | |
| 699 | 删除: | |
| 700 | 删除: | |
| 701 | 新增: | |
| 702 | 新增: | |
| 703 | 新增: | |
| 704 | 新增: | |
| 701 | 705 | </Application.Resources> |
| 702 | 706 | </Application> |
| @@ -127,6 +127,8 @@ namespace UI.Controls.Base | ||
| 127 | 127 | {IconTypes.SkypeCircleClock,"\xEF7E"}, |
| 128 | 128 | {IconTypes.FlameSolid,"\xF1F3"}, |
| 129 | 129 | {IconTypes.PieSingleSolid,"\xF530"}, |
| 130 | 新增: {IconTypes.Refresh,"\xE72C"}, | |
| 131 | 新增: {IconTypes.Export,"\xEDE1"}, | |
| 130 | 132 | |
| 131 | 133 | |
| 132 | 134 | }; |
| @@ -150,6 +150,8 @@ namespace UI.Controls.Base | ||
| 150 | 150 | MSNVideosSolid, |
| 151 | 151 | SkypeCircleClock, |
| 152 | 152 | FlameSolid, |
| 153 | 删除: PieSingleSolid | |
| 153 | 新增: PieSingleSolid, | |
| 154 | 新增: Refresh, | |
| 155 | 新增: Export | |
| 154 | 156 | } |
| 155 | 157 | } |
| @@ -56,73 +56,99 @@ namespace UI.Controls.Base | ||
| 56 | 56 | |
| 57 | 57 | private void Handle() |
| 58 | 58 | { |
| 59 | 删除: if (string.IsNullOrEmpty(Condition) && Value == null) | |
| 59 | 新增: try | |
| 60 | 60 | { |
| 61 | 删除: return; | |
| 62 | 删除: } | |
| 63 | 删除: | |
| 64 | 删除: bool isShow = false; | |
| 65 | 删除: if (string.IsNullOrEmpty(Condition)) | |
| 66 | 删除: { | |
| 67 | 删除: if ((bool)Value) | |
| 61 | 新增: if (string.IsNullOrEmpty(Condition) && Value == null) | |
| 68 | 62 | { |
| 69 | 删除: isShow = true; | |
| 63 | 新增: return; | |
| 70 | 64 | } |
| 71 | 删除: } | |
| 72 | 删除: else | |
| 73 | 删除: { | |
| 74 | 删除: | |
| 75 | 65 | |
| 76 | 删除: if (Condition.IndexOf("=") != -1) | |
| 66 | 新增: bool isShow = false; | |
| 67 | 新增: if (string.IsNullOrEmpty(Condition)) | |
| 77 | 68 | { |
| 78 | 删除: string val = Condition.Substring(Condition.IndexOf("=") + 1); | |
| 79 | 删除: isShow = val == Value.ToString(); | |
| 69 | 新增: if ((bool)Value) | |
| 70 | 新增: { | |
| 71 | 新增: isShow = true; | |
| 72 | 新增: } | |
| 80 | 73 | } |
| 81 | 删除: else if (Condition.IndexOf("not null") != -1) | |
| 74 | 新增: else | |
| 82 | 75 | { |
| 83 | 76 | |
| 84 | 删除: isShow = Value != null; | |
| 85 | 删除: } | |
| 86 | 删除: else if (Condition.IndexOf("null") != -1) | |
| 87 | 删除: { | |
| 88 | 77 | |
| 89 | 删除: isShow = Value == null; | |
| 90 | 删除: } | |
| 91 | 删除: else if (Condition.IndexOf("empty") != -1) | |
| 92 | 删除: { | |
| 93 | 删除: if (Value == null) | |
| 78 | 新增: if (Condition.IndexOf("=") != -1) | |
| 94 | 79 | { |
| 95 | 删除: isShow = true; | |
| 80 | 新增: string val = Condition.Substring(Condition.IndexOf("=") + 1); | |
| 81 | 新增: isShow = val == Value.ToString(); | |
| 96 | 82 | } |
| 97 | 删除: else | |
| 83 | 新增: else if (Condition.IndexOf("not null") != -1) | |
| 84 | 新增: { | |
| 85 | 新增: | |
| 86 | 新增: isShow = Value != null; | |
| 87 | 新增: } | |
| 88 | 新增: else if (Condition.IndexOf("null") != -1) | |
| 89 | 新增: { | |
| 90 | 新增: | |
| 91 | 新增: isShow = Value == null; | |
| 92 | 新增: } | |
| 93 | 新增: else if (Condition.IndexOf("not empty") != -1) | |
| 98 | 94 | { |
| 99 | 删除: var data = Value as IEnumerable<object>; | |
| 100 | 删除: if (data != null) | |
| 95 | 新增: if (Value == null) | |
| 101 | 96 | { |
| 102 | 删除: isShow = data.Count() == 0; | |
| 97 | 新增: isShow = false; | |
| 103 | 98 | } |
| 104 | 99 | else |
| 105 | 100 | { |
| 106 | 删除: isShow = string.IsNullOrEmpty(Value.ToString()); | |
| 101 | 新增: var data = Value as IEnumerable<object>; | |
| 102 | 新增: if (data != null) | |
| 103 | 新增: { | |
| 104 | 新增: isShow = data.Count() > 0; | |
| 105 | 新增: } | |
| 106 | 新增: else | |
| 107 | 新增: { | |
| 108 | 新增: isShow = !string.IsNullOrEmpty(Value.ToString()); | |
| 109 | 新增: } | |
| 110 | 新增: } | |
| 111 | 新增: } | |
| 112 | 新增: else if (Condition.IndexOf("empty") != -1) | |
| 113 | 新增: { | |
| 114 | 新增: if (Value == null) | |
| 115 | 新增: { | |
| 116 | 新增: isShow = true; | |
| 107 | 117 | } |
| 118 | 新增: else | |
| 119 | 新增: { | |
| 120 | 新增: var data = Value as IEnumerable<object>; | |
| 121 | 新增: if (data != null) | |
| 122 | 新增: { | |
| 123 | 新增: isShow = data.Count() == 0; | |
| 124 | 新增: } | |
| 125 | 新增: else | |
| 126 | 新增: { | |
| 127 | 新增: isShow = string.IsNullOrEmpty(Value.ToString()); | |
| 128 | 新增: } | |
| 129 | 新增: } | |
| 130 | 新增: } | |
| 131 | 新增: else | |
| 132 | 新增: { | |
| 133 | 新增: isShow = Condition == (Value != null ? Value.ToString() : ""); | |
| 108 | 134 | } |
| 109 | 135 | } |
| 136 | 新增: | |
| 137 | 新增: | |
| 138 | 新增: | |
| 139 | 新增: if (isShow) | |
| 140 | 新增: { | |
| 141 | 新增: Visibility = Visibility.Visible; | |
| 142 | 新增: } | |
| 110 | 143 | else |
| 111 | 144 | { |
| 112 | 删除: isShow = Condition == (Value != null ? Value.ToString() : ""); | |
| 145 | 新增: Visibility = Visibility.Collapsed; | |
| 113 | 146 | } |
| 114 | 147 | } |
| 115 | 删除: | |
| 116 | 删除: | |
| 117 | 删除: if (isShow) | |
| 118 | 删除: { | |
| 119 | 删除: Visibility = Visibility.Visible; | |
| 120 | 删除: } | |
| 121 | 删除: else | |
| 148 | 新增: catch(Exception ex) | |
| 122 | 149 | { |
| 123 | 150 | Visibility = Visibility.Collapsed; |
| 124 | 151 | } |
| 125 | 删除: | |
| 126 | 152 | } |
| 127 | 153 | } |
| 128 | 154 | } |
| @@ -27,7 +27,17 @@ namespace UI.Controls.Select | ||
| 27 | 27 | public static readonly DependencyProperty IsOpenProperty = |
| 28 | 28 | DependencyProperty.Register("IsOpen", |
| 29 | 29 | typeof(bool), |
| 30 | 删除: typeof(Select)); | |
| 30 | 新增: typeof(Select), new PropertyMetadata(new PropertyChangedCallback(OnIsOpenChanged))); | |
| 31 | 新增: | |
| 32 | 新增: private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) | |
| 33 | 新增: { | |
| 34 | 新增: var control = d as Select; | |
| 35 | 新增: if (control != null) | |
| 36 | 新增: { | |
| 37 | 新增: VisualStateManager.GoToState(control, control.IsOpen ? "ShowPopup" : "Normal", true); | |
| 38 | 新增: } | |
| 39 | 新增: } | |
| 40 | 新增: | |
| 31 | 41 | public List<SelectItemModel> Options |
| 32 | 42 | { |
| 33 | 43 | get { return (List<SelectItemModel>)GetValue(OptionsProperty); } |
| @@ -27,6 +27,11 @@ | ||
| 27 | 27 | <!--<TextBlock x:Name="PlaceholderText" Text="请选择" Visibility="Collapsed"/>--> |
| 28 | 28 | <base:Img x:Name="Img" URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Img}" Width="20" Height="20" VerticalAlignment="Center"/> |
| 29 | 29 | <TextBlock TextOptions.TextFormattingMode="Display" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Name}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
| 30 | 新增: <base:Icon x:Name="PopupIcon" Width="15" Height="15" Margin="5,0,0,0" FontSize="10" IconType="ChevronDown" VerticalAlignment="Center" RenderTransformOrigin=".5,.5"> | |
| 31 | 新增: <base:Icon.RenderTransform> | |
| 32 | 新增: <RotateTransform Angle="0" /> | |
| 33 | 新增: </base:Icon.RenderTransform> | |
| 34 | 新增: </base:Icon> | |
| 30 | 35 | </StackPanel> |
| 31 | 36 | </Border> |
| 32 | 37 | |
| @@ -34,7 +39,7 @@ | ||
| 34 | 39 | <Popup |
| 35 | 40 | Placement="Bottom" |
| 36 | 41 | PlacementTarget="{Binding ElementName=Main}" |
| 37 | 删除: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" StaysOpen="False"> | |
| 42 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" StaysOpen="False" PopupAnimation="Slide"> | |
| 38 | 43 | <Border |
| 39 | 44 | CornerRadius="10" |
| 40 | 45 | BorderBrush="#CCC" |
| @@ -52,6 +57,26 @@ | ||
| 52 | 57 | </Border> |
| 53 | 58 | </Popup> |
| 54 | 59 | </Grid> |
| 60 | 新增: <VisualStateManager.VisualStateGroups> | |
| 61 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 62 | 新增: <VisualStateGroup.Transitions> | |
| 63 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 64 | 新增: <VisualTransition GeneratedDuration="0" | |
| 65 | 新增: To="Pressed" /> | |
| 66 | 新增: </VisualStateGroup.Transitions> | |
| 67 | 新增: <VisualState x:Name="Normal" /> | |
| 68 | 新增: <VisualState x:Name="ShowPopup"> | |
| 69 | 新增: <Storyboard> | |
| 70 | 新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(base:Icon.RenderTransform).(RotateTransform.Angle)" | |
| 71 | 新增: Storyboard.TargetName="PopupIcon"> | |
| 72 | 新增: <EasingDoubleKeyFrame KeyTime="0:0:0.18" | |
| 73 | 新增: Value="-180" /> | |
| 74 | 新增: | |
| 75 | 新增: </DoubleAnimationUsingKeyFrames> | |
| 76 | 新增: </Storyboard> | |
| 77 | 新增: </VisualState> | |
| 78 | 新增: </VisualStateGroup> | |
| 79 | 新增: </VisualStateManager.VisualStateGroups> | |
| 55 | 80 | </Border> |
| 56 | 81 | <ControlTemplate.Triggers> |
| 57 | 82 | <Trigger Property="IsMouseOver" Value="True"> |
| @@ -127,110 +127,120 @@ | ||
| 127 | 127 | |
| 128 | 128 | </StackPanel> |
| 129 | 129 | </Border>--> |
| 130 | 删除: <TextBlock Text="时段" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 131 | 删除: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/> | |
| 132 | 删除: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="{DynamicResource StandardBackgroundBrush}" Padding="20,10" CornerRadius="10"> | |
| 133 | 删除: <StackPanel> | |
| 134 | 130 | |
| 131 | 新增: <WrapPanel Margin="-10"> | |
| 132 | 新增: <StackPanel Margin="10,0,0,0"> | |
| 133 | 新增: <TextBlock Text="时段" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 134 | 新增: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/> | |
| 135 | 新增: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="{DynamicResource StandardBackgroundBrush}" Padding="20,10" CornerRadius="10"> | |
| 136 | 新增: <StackPanel> | |
| 137 | 新增: | |
| 138 | 新增: | |
| 139 | 新增: <Grid Margin="0,15,0,0"> | |
| 140 | 新增: <!--按天--> | |
| 141 | 新增: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}"> | |
| 142 | 新增: <Select:DateSelect Date="{Binding ChartDate,Mode=TwoWay}"/> | |
| 143 | 新增: </base:View> | |
| 144 | 新增: | |
| 145 | 新增: <!--按周--> | |
| 146 | 新增: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}"> | |
| 147 | 新增: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 148 | 新增: <Select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/> | |
| 149 | 新增: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/> | |
| 150 | 新增: </StackPanel> | |
| 151 | 新增: </base:View> | |
| 152 | 新增: <!--按月--> | |
| 153 | 新增: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}"> | |
| 154 | 新增: <Select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> | |
| 135 | 155 | |
| 136 | 删除: <Grid Margin="0,15,0,0"> | |
| 137 | 删除: <!--按天--> | |
| 138 | 删除: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}"> | |
| 139 | 删除: <Select:DateSelect Date="{Binding ChartDate,Mode=TwoWay}"/> | |
| 140 | 删除: </base:View> | |
| 141 | 删除: | |
| 142 | 删除: <!--按周--> | |
| 143 | 删除: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}"> | |
| 144 | 删除: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 145 | 删除: <Select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/> | |
| 146 | 删除: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/> | |
| 147 | 删除: </StackPanel> | |
| 148 | 删除: </base:View> | |
| 149 | 删除: <!--按月--> | |
| 150 | 删除: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}"> | |
| 151 | 删除: <Select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> | |
| 156 | 新增: </base:View> | |
| 157 | 新增: <!--按年--> | |
| 158 | 新增: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}"> | |
| 159 | 新增: <Select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> | |
| 152 | 160 | |
| 153 | 删除: </base:View> | |
| 154 | 删除: <!--按年--> | |
| 155 | 删除: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}"> | |
| 156 | 删除: <Select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> | |
| 161 | 新增: </base:View> | |
| 162 | 新增: </Grid> | |
| 163 | 新增: <Charts:Charts DataMaximum="{Binding DataMaximum}" Height="305" NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding ChartData}" Margin="0,20,0,0"/> | |
| 157 | 164 | |
| 158 | 删除: </base:View> | |
| 159 | 删除: </Grid> | |
| 160 | 删除: <Charts:Charts DataMaximum="{Binding DataMaximum}" Height="300" NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding ChartData}" Margin="0,20,0,0"/> | |
| 165 | 新增: </StackPanel> | |
| 161 | 166 | |
| 167 | 新增: </Border> | |
| 162 | 168 | </StackPanel> |
| 163 | 169 | |
| 164 | 删除: </Border> | |
| 165 | 删除: <TextBlock Text="每月" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 170 | 新增: <StackPanel Margin="10,0,0,0" VerticalAlignment="Bottom" Width="680"> | |
| 171 | 新增: <TextBlock Text="每月" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 166 | 172 | |
| 167 | 删除: <Border | |
| 173 | 新增: <Border | |
| 168 | 174 | Background="{DynamicResource StandardBackgroundBrush}" |
| 169 | 175 | CornerRadius="12" |
| 170 | 176 | Padding="20,20" |
| 171 | 177 | Margin="0,10,0,0"> |
| 172 | 删除: <StackPanel> | |
| 173 | 删除: <Grid> | |
| 174 | 删除: <DatePickerBar:DatePickerBar ShowType="Month" HorizontalAlignment="Left" SelectedDate="{Binding Date,Mode=TwoWay}"/> | |
| 175 | 删除: | |
| 176 | 删除: <btn:Button ToolTip="清空此应用在该月的统计数据" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#f51837" Foreground="White" Width="120" Margin="0" Icon="Delete" Command="{Binding ClearSelectMonthDataCommand}">清空统计</btn:Button> | |
| 177 | 删除: | |
| 178 | 删除: </Grid> | |
| 179 | 删除: <Grid Margin="0,20,0,0"> | |
| 180 | 删除: <Grid.ColumnDefinitions> | |
| 181 | 删除: <ColumnDefinition Width="256"/> | |
| 182 | 删除: <ColumnDefinition Width="9*"/> | |
| 183 | 删除: | |
| 184 | 删除: </Grid.ColumnDefinitions> | |
| 185 | 删除: <Charts:Charts Data="{Binding Data}" ChartsType="Month" HorizontalAlignment="Left"/> | |
| 186 | 删除: <StackPanel Grid.Column="1" > | |
| 187 | 删除: <Border Padding="15" CornerRadius="10" BorderThickness="0"> | |
| 188 | 删除: <Border.Background> | |
| 189 | 删除: <SolidColorBrush Color="#2b20d9" Opacity=".02"/> | |
| 190 | 删除: </Border.Background> | |
| 191 | 删除: <Border.BorderBrush> | |
| 192 | 删除: <SolidColorBrush Color="#2b20d9" Opacity=".5"/> | |
| 193 | 删除: </Border.BorderBrush> | |
| 194 | 删除: <Grid> | |
| 195 | 删除: <Grid> | |
| 196 | 删除: <Grid.RowDefinitions> | |
| 197 | 删除: <RowDefinition Height="auto"/> | |
| 198 | 删除: <RowDefinition Height="auto"/> | |
| 199 | 删除: </Grid.RowDefinitions> | |
| 200 | 删除: <TextBlock FontSize="14"><Run Text="该月累计使用 " Foreground="Gray" /><Run FontSize="16" Text="{Binding Total}"/> | |
| 201 | 删除: </TextBlock> | |
| 202 | 删除: <TextBlock Grid.Row="1" Margin="0,5,0,0" FontSize="14"><Run Text="{Binding LongDay}"/> | |
| 203 | 删除: </TextBlock> | |
| 204 | 删除: </Grid> | |
| 205 | 删除: <base:Icon IconType="SkypeCircleClock" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/> | |
| 206 | 删除: </Grid> | |
| 207 | 删除: </Border> | |
| 208 | 删除: <Border Margin="0,10,0,0" Padding="15" CornerRadius="10" BorderThickness="0"> | |
| 209 | 删除: <Border.Background> | |
| 210 | 删除: <SolidColorBrush Color="#2b20d9" Opacity=".02"/> | |
| 211 | 删除: </Border.Background> | |
| 212 | 删除: <Border.BorderBrush> | |
| 213 | 删除: <SolidColorBrush Color="#2b20d9" Opacity=".5"/> | |
| 214 | 删除: </Border.BorderBrush> | |
| 215 | 删除: <Grid> | |
| 216 | 删除: <Grid> | |
| 217 | 删除: <Grid.RowDefinitions> | |
| 218 | 删除: <RowDefinition Height="auto"/> | |
| 219 | 删除: <RowDefinition Height="auto"/> | |
| 220 | 删除: </Grid.RowDefinitions> | |
| 221 | 删除: <TextBlock Foreground="Gray" Text="在当月所有使用应用时长中占比" FontSize="14" /> | |
| 222 | 删除: | |
| 223 | 删除: <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="24"><Run Text="{Binding Ratio}"/> | |
| 224 | 删除: </TextBlock> | |
| 225 | 删除: </Grid> | |
| 226 | 删除: <base:Icon IconType="PieSingleSolid" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/> | |
| 227 | 删除: </Grid> | |
| 228 | 删除: </Border> | |
| 178 | 新增: <StackPanel> | |
| 179 | 新增: <Grid> | |
| 180 | 新增: <DatePickerBar:DatePickerBar ShowType="Month" HorizontalAlignment="Left" SelectedDate="{Binding Date,Mode=TwoWay}"/> | |
| 181 | 新增: | |
| 182 | 新增: <btn:Button ToolTip="清空此应用在该月的统计数据" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#f51837" Foreground="White" Width="120" Margin="0" Icon="Delete" Command="{Binding ClearSelectMonthDataCommand}">清空统计</btn:Button> | |
| 183 | 新增: | |
| 184 | 新增: </Grid> | |
| 185 | 新增: <Grid Margin="0,20,0,0"> | |
| 186 | 新增: <Grid.ColumnDefinitions> | |
| 187 | 新增: <ColumnDefinition Width="256"/> | |
| 188 | 新增: <ColumnDefinition Width="9*"/> | |
| 189 | 新增: | |
| 190 | 新增: </Grid.ColumnDefinitions> | |
| 191 | 新增: <Charts:Charts Data="{Binding Data}" ChartsType="Month" HorizontalAlignment="Left"/> | |
| 192 | 新增: <StackPanel Grid.Column="1" > | |
| 193 | 新增: <Border Padding="15" CornerRadius="10" BorderThickness="0"> | |
| 194 | 新增: <Border.Background> | |
| 195 | 新增: <SolidColorBrush Color="#2b20d9" Opacity=".02"/> | |
| 196 | 新增: </Border.Background> | |
| 197 | 新增: <Border.BorderBrush> | |
| 198 | 新增: <SolidColorBrush Color="#2b20d9" Opacity=".5"/> | |
| 199 | 新增: </Border.BorderBrush> | |
| 200 | 新增: <Grid> | |
| 201 | 新增: <Grid> | |
| 202 | 新增: <Grid.RowDefinitions> | |
| 203 | 新增: <RowDefinition Height="auto"/> | |
| 204 | 新增: <RowDefinition Height="auto"/> | |
| 205 | 新增: </Grid.RowDefinitions> | |
| 206 | 新增: <TextBlock FontSize="14"><Run Text="该月累计使用 " Foreground="Gray" /><Run FontSize="16" Text="{Binding Total}"/> | |
| 207 | 新增: </TextBlock> | |
| 208 | 新增: <TextBlock Grid.Row="1" Margin="0,5,0,0" FontSize="14"><Run Text="{Binding LongDay}"/> | |
| 209 | 新增: </TextBlock> | |
| 210 | 新增: </Grid> | |
| 211 | 新增: <base:Icon IconType="SkypeCircleClock" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/> | |
| 212 | 新增: </Grid> | |
| 213 | 新增: </Border> | |
| 214 | 新增: <Border Margin="0,10,0,0" Padding="15" CornerRadius="10" BorderThickness="0"> | |
| 215 | 新增: <Border.Background> | |
| 216 | 新增: <SolidColorBrush Color="#2b20d9" Opacity=".02"/> | |
| 217 | 新增: </Border.Background> | |
| 218 | 新增: <Border.BorderBrush> | |
| 219 | 新增: <SolidColorBrush Color="#2b20d9" Opacity=".5"/> | |
| 220 | 新增: </Border.BorderBrush> | |
| 221 | 新增: <Grid> | |
| 222 | 新增: <Grid> | |
| 223 | 新增: <Grid.RowDefinitions> | |
| 224 | 新增: <RowDefinition Height="auto"/> | |
| 225 | 新增: <RowDefinition Height="auto"/> | |
| 226 | 新增: </Grid.RowDefinitions> | |
| 227 | 新增: <TextBlock Foreground="Gray" Text="在当月所有使用应用时长中占比" FontSize="14" /> | |
| 228 | 新增: | |
| 229 | 新增: <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="24"><Run Text="{Binding Ratio}"/> | |
| 230 | 新增: </TextBlock> | |
| 231 | 新增: </Grid> | |
| 232 | 新增: <base:Icon IconType="PieSingleSolid" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/> | |
| 233 | 新增: </Grid> | |
| 234 | 新增: </Border> | |
| 229 | 235 | |
| 236 | 新增: </StackPanel> | |
| 237 | 新增: </Grid> | |
| 230 | 238 | </StackPanel> |
| 231 | 删除: </Grid> | |
| 239 | 新增: </Border> | |
| 232 | 240 | </StackPanel> |
| 233 | 删除: </Border> | |
| 241 | 新增: </WrapPanel> | |
| 242 | 新增: | |
| 243 | 新增: | |
| 234 | 244 | |
| 235 | 245 | </StackPanel> |
| 236 | 246 | </Page> |
| @@ -54,19 +54,19 @@ | ||
| 54 | 54 | <select:DateSelect Date="{Binding DelDataStartMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/> |
| 55 | 55 | <TextBlock Text="到" VerticalAlignment="Center"/> |
| 56 | 56 | <select:DateSelect Date="{Binding DelDataEndMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/> |
| 57 | 删除: <Btn:Button Margin="20,0,0,0" Content="执行" Width="80" Background="#f51837" Foreground="White" Command="{Binding DelDataCommand}"/> | |
| 57 | 新增: <Btn:Button Margin="20,0,0,0" Icon="Delete" Content="执行" Width="80" Background="#f51837" Foreground="White" Command="{Binding DelDataCommand}" ToolTip="删除并且不可恢复"/> | |
| 58 | 58 | </StackPanel> |
| 59 | 59 | </Border> |
| 60 | 60 | <TextBlock Text="导出数据" FontSize="14" Margin="0,15,0,0"/> |
| 61 | 61 | <Border Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="6" Margin="0,10,0,0" BorderBrush="{DynamicResource CardBorder}" BorderThickness="1"> |
| 62 | 62 | <StackPanel> |
| 63 | 删除: <TextBlock Text="导出为xlsx和csv格式,需要注意:没有设置分类的应用数据不会导出。" Foreground="#989CA1" FontSize="12"/> | |
| 63 | 新增: <TextBlock Text="导出为xlsx和csv格式,需要注意:没有设置分类的应用数据不会被导出。" Foreground="#989CA1" FontSize="12"/> | |
| 64 | 64 | <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> |
| 65 | 65 | <TextBlock Text="从" VerticalAlignment="Center"/> |
| 66 | 66 | <select:DateSelect Date="{Binding ExportDataStartMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/> |
| 67 | 67 | <TextBlock Text="到" VerticalAlignment="Center"/> |
| 68 | 68 | <select:DateSelect Date="{Binding ExportDataEndMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/> |
| 69 | 删除: <Btn:Button Margin="20,0,0,0" Content="导出" Width="80" Command="{Binding ExportDataCommand}"/> | |
| 69 | 新增: <Btn:Button Margin="20,0,0,0" Icon="Export" Content="导出" Width="80" Command="{Binding ExportDataCommand}"/> | |
| 70 | 70 | </StackPanel> |
| 71 | 71 | </StackPanel> |
| 72 | 72 | </Border> |

