提交记录修改UI/Controls/Base/Placeholder.cs+13 −2看文件
修改UI/Controls/Base/View.cs+7 −0看文件
修改UI/Controls/Charts/ChartItemTypeColumn.cs+14 −5看文件
修改UI/Controls/Charts/Charts.cs+16 −0看文件
修改UI/Controls/Charts/ChartsItemTypeA.cs+14 −1看文件
修改UI/Controls/Charts/ChartsItemTypeCard.cs+16 −4看文件
修改UI/Controls/Charts/ChartsItemTypeMonth.cs+23 −9看文件
修改UI/Controls/Input/InputBox.cs+12 −0看文件
修改UI/Controls/Navigation/Navigation.cs+13 −7看文件
修改UI/Controls/PageContainer.cs+32 −16看文件
修改UI/Controls/Select/Select.cs+10 −1看文件
修改UI/Controls/Tabbar/Tabbar.cs+1 −1看文件
修改UI/Controls/Window/DefaultWindow.cs+9 −1看文件
修改UI/MainWindow.xaml+24 −26看文件
修改UI/MainWindow.xaml.cs+7 −0看文件
修改UI/Themes/Base/Icon.xaml+4 −4看文件
修改UI/Themes/Button/Button.xaml+23 −23看文件
修改UI/Themes/Button/IconButton.xaml+8 −7看文件
修改UI/Themes/Charts/Charts.xaml+117 −125看文件
修改UI/Themes/Charts/ChartsItemTypeA.xaml+40 −38看文件
修改UI/Themes/Charts/ChartsItemTypeColumn.xaml+17 −27看文件
修改UI/Themes/Navigation/Navigation.xaml+24 −24看文件
修改UI/Themes/Navigation/NavigationItem.xaml+21 −23看文件
修改UI/Themes/PageContainer.xaml+7 −21看文件
修改UI/Themes/Tabbar/Tabbar.xaml+19 −19看文件
修改UI/Themes/Window/HideWindow.xaml+3 −4看文件
修改UI/ViewModels/CategoryAppListPageVM.cs+6 −1看文件
修改UI/ViewModels/CategoryPageVM.cs+8 −1看文件
修改UI/ViewModels/ChartPageVM.cs+7 −1看文件
修改UI/Views/ChartPage.xaml+35 −37看文件
修改UI/Views/ChartPage.xaml.cs+0 −18看文件
修改UI/Views/DataPage.xaml+50 −53看文件
修改UI/Views/DetailPage.xaml+106 −108看文件
修改UI/Views/DetailPage.xaml.cs+0 −16看文件
修改UI/Views/IndexPage.xaml+9 −11看文件
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | using System; |
| 2 | 2 | using System.Collections.Generic; |
| 3 | 新增:using System.Diagnostics; | |
| 3 | 4 | using System.Text; |
| 4 | 5 | using System.Windows; |
| 5 | 6 | using System.Windows.Controls; |
| @@ -20,20 +21,28 @@ namespace UI.Controls.Base | ||
| 20 | 21 | typeof(Placeholder)); |
| 21 | 22 | |
| 22 | 23 | private Border Flash; |
| 24 | 新增: private bool IsAddEvent = false; | |
| 23 | 25 | public Placeholder() |
| 24 | 26 | { |
| 25 | 删除: | |
| 26 | 27 | DefaultStyleKey = typeof(Placeholder); |
| 27 | 28 | } |
| 29 | 新增: | |
| 30 | 新增: | |
| 31 | 新增: | |
| 28 | 32 | public override void OnApplyTemplate() |
| 29 | 33 | { |
| 30 | 34 | base.OnApplyTemplate(); |
| 31 | 35 | Flash = GetTemplateChild("Flash") as Border; |
| 32 | 删除: Loaded += Placeholder_Loaded; | |
| 36 | 新增: if (!IsAddEvent) | |
| 37 | 新增: { | |
| 38 | 新增: Loaded += Placeholder_Loaded; | |
| 39 | 新增: } | |
| 33 | 40 | } |
| 34 | 41 | |
| 35 | 42 | private void Placeholder_Loaded(object sender, RoutedEventArgs e) |
| 36 | 43 | { |
| 44 | 新增: Loaded -= Placeholder_Loaded; | |
| 45 | 新增: | |
| 37 | 46 | Animation(); |
| 38 | 47 | } |
| 39 | 48 | |
| @@ -54,6 +63,8 @@ namespace UI.Controls.Base | ||
| 54 | 63 | storyboard.Children.Add(scrollAnimation); |
| 55 | 64 | |
| 56 | 65 | storyboard.Begin(); |
| 66 | 新增: | |
| 67 | 新增: IsAddEvent = true; | |
| 57 | 68 | } |
| 58 | 69 | |
| 59 | 70 | } |
| @@ -40,6 +40,13 @@ namespace UI.Controls.Base | ||
| 40 | 40 | DefaultStyleKey = typeof(View); |
| 41 | 41 | |
| 42 | 42 | Loaded += View_Loaded; |
| 43 | 新增: Unloaded += View_Unloaded; | |
| 44 | 新增: } | |
| 45 | 新增: | |
| 46 | 新增: private void View_Unloaded(object sender, RoutedEventArgs e) | |
| 47 | 新增: { | |
| 48 | 新增: Loaded -= View_Loaded; | |
| 49 | 新增: Unloaded -= View_Unloaded; | |
| 43 | 50 | } |
| 44 | 51 | |
| 45 | 52 | private void View_Loaded(object sender, RoutedEventArgs e) |
| @@ -81,26 +81,35 @@ namespace UI.Controls.Charts | ||
| 81 | 81 | |
| 82 | 82 | private bool isRendering = false; |
| 83 | 83 | private Rectangle ValueBlockObj; |
| 84 | 删除: private Grid ValueContainer; | |
| 85 | 删除: | |
| 84 | 新增: private Border ValueContainer; | |
| 85 | 新增: private bool IsAddEvent = false; | |
| 86 | 86 | public ChartItemTypeColumn() |
| 87 | 87 | { |
| 88 | 88 | DefaultStyleKey = typeof(ChartItemTypeColumn); |
| 89 | 新增: Unloaded += ChartItemTypeColumn_Unloaded; | |
| 89 | 90 | } |
| 90 | 91 | |
| 91 | 92 | public override void OnApplyTemplate() |
| 92 | 93 | { |
| 93 | 94 | base.OnApplyTemplate(); |
| 94 | 95 | ValueBlockObj = GetTemplateChild("ValueBlockObj") as Rectangle; |
| 95 | 删除: ValueContainer = GetTemplateChild("ValueContainer") as Grid; | |
| 96 | 新增: ValueContainer = GetTemplateChild("ValueContainer") as Border; | |
| 97 | 新增: if (!IsAddEvent) | |
| 98 | 新增: { | |
| 99 | 新增: Loaded += ChartItemTypeColumn_Loaded; | |
| 100 | 新增: } | |
| 101 | 新增: } | |
| 96 | 102 | |
| 97 | 删除: Loaded += ChartItemTypeColumn_Loaded; | |
| 103 | 新增: private void ChartItemTypeColumn_Unloaded(object sender, RoutedEventArgs e) | |
| 104 | 新增: { | |
| 105 | 新增: Loaded -= ChartItemTypeColumn_Loaded; | |
| 106 | 新增: Unloaded -= ChartItemTypeColumn_Unloaded; | |
| 98 | 107 | } |
| 99 | 108 | |
| 100 | 109 | private void ChartItemTypeColumn_Loaded(object sender, RoutedEventArgs e) |
| 101 | 110 | { |
| 102 | 111 | Render(); |
| 103 | 删除: | |
| 112 | 新增: IsAddEvent = true; | |
| 104 | 113 | } |
| 105 | 114 | |
| 106 | 115 | |
| @@ -353,7 +353,23 @@ namespace UI.Controls.Charts | ||
| 353 | 353 | public Charts() |
| 354 | 354 | { |
| 355 | 355 | DefaultStyleKey = typeof(Charts); |
| 356 | 新增: | |
| 357 | 新增: Unloaded += Charts_Unloaded; | |
| 356 | 358 | } |
| 359 | 新增: | |
| 360 | 新增: private void Charts_Unloaded(object sender, RoutedEventArgs e) | |
| 361 | 新增: { | |
| 362 | 新增: Unloaded -= Charts_Unloaded; | |
| 363 | 新增: if (Container != null) | |
| 364 | 新增: { | |
| 365 | 新增: Container.SizeChanged -= Container_SizeChanged; | |
| 366 | 新增: } | |
| 367 | 新增: if (ScrollViewer != null) | |
| 368 | 新增: { | |
| 369 | 新增: ScrollViewer.ScrollChanged -= ScrollViewer_ScrollChanged; | |
| 370 | 新增: } | |
| 371 | 新增: } | |
| 372 | 新增: | |
| 357 | 373 | public override void OnApplyTemplate() |
| 358 | 374 | { |
| 359 | 375 | base.OnApplyTemplate(); |
| @@ -77,10 +77,19 @@ namespace UI.Controls.Charts | ||
| 77 | 77 | //private Grid ValueContainer; |
| 78 | 78 | private Image IconObj; |
| 79 | 79 | private bool isRendering = false; |
| 80 | 新增: private bool IsAddEvent = false; | |
| 80 | 81 | public ChartsItemTypeA() |
| 81 | 82 | { |
| 82 | 83 | DefaultStyleKey = typeof(ChartsItemTypeA); |
| 84 | 新增: Unloaded += ChartsItemTypeA_Unloaded; | |
| 83 | 85 | } |
| 86 | 新增: | |
| 87 | 新增: private void ChartsItemTypeA_Unloaded(object sender, RoutedEventArgs e) | |
| 88 | 新增: { | |
| 89 | 新增: Unloaded -= ChartsItemTypeA_Unloaded; | |
| 90 | 新增: Loaded -= ChartsItemTypeA_Loaded; | |
| 91 | 新增: } | |
| 92 | 新增: | |
| 84 | 93 | public override void OnApplyTemplate() |
| 85 | 94 | { |
| 86 | 95 | base.OnApplyTemplate(); |
| @@ -92,7 +101,11 @@ namespace UI.Controls.Charts | ||
| 92 | 101 | |
| 93 | 102 | IconObj = GetTemplateChild("IconObj") as Image; |
| 94 | 103 | |
| 95 | 删除: Loaded += ChartsItemTypeA_Loaded; | |
| 104 | 新增: if (!IsAddEvent) | |
| 105 | 新增: { | |
| 106 | 新增: Loaded += ChartsItemTypeA_Loaded; | |
| 107 | 新增: IsAddEvent = true; | |
| 108 | 新增: } | |
| 96 | 109 | } |
| 97 | 110 | |
| 98 | 111 | private void ChartsItemTypeA_Loaded(object sender, RoutedEventArgs e) |
| @@ -77,10 +77,19 @@ namespace UI.Controls.Charts | ||
| 77 | 77 | private StackPanel ValueContainer; |
| 78 | 78 | private Image IconObj; |
| 79 | 79 | private bool isRendering = false; |
| 80 | 新增: private bool IsAddEvent = false; | |
| 80 | 81 | public ChartsItemTypeCard() |
| 81 | 82 | { |
| 82 | 83 | DefaultStyleKey = typeof(ChartsItemTypeCard); |
| 84 | 新增: Unloaded += ChartsItemTypeCard_Unloaded; | |
| 83 | 85 | } |
| 86 | 新增: | |
| 87 | 新增: private void ChartsItemTypeCard_Unloaded(object sender, RoutedEventArgs e) | |
| 88 | 新增: { | |
| 89 | 新增: Unloaded -= ChartsItemTypeCard_Unloaded; | |
| 90 | 新增: Loaded -= ChartsItemTypeCard_Loaded; | |
| 91 | 新增: } | |
| 92 | 新增: | |
| 84 | 93 | public override void OnApplyTemplate() |
| 85 | 94 | { |
| 86 | 95 | base.OnApplyTemplate(); |
| @@ -88,10 +97,13 @@ namespace UI.Controls.Charts | ||
| 88 | 97 | ValueTextObj = GetTemplateChild("ValueTextObj") as TextBlock; |
| 89 | 98 | ValueBlockObj = GetTemplateChild("ValueBlockObj") as Rectangle; |
| 90 | 99 | ValueContainer = GetTemplateChild("ValueContainer") as StackPanel; |
| 91 | 删除: | |
| 92 | 100 | IconObj = GetTemplateChild("IconObj") as Image; |
| 93 | 101 | |
| 94 | 删除: Loaded += ChartsItemTypeCard_Loaded; | |
| 102 | 新增: if (!IsAddEvent) | |
| 103 | 新增: { | |
| 104 | 新增: Loaded += ChartsItemTypeCard_Loaded; | |
| 105 | 新增: IsAddEvent = true; | |
| 106 | 新增: } | |
| 95 | 107 | } |
| 96 | 108 | |
| 97 | 109 | private void ChartsItemTypeCard_Loaded(object sender, RoutedEventArgs e) |
| @@ -132,7 +144,7 @@ namespace UI.Controls.Charts | ||
| 132 | 144 | //{ |
| 133 | 145 | // return; |
| 134 | 146 | //} |
| 135 | 删除: double size = (Data.Value / MaxValue) * ActualWidth/3; | |
| 147 | 新增: double size = (Data.Value / MaxValue) * ActualWidth / 3; | |
| 136 | 148 | ValueBlockObj.Width = ValueBlockObj.Height = size; |
| 137 | 149 | |
| 138 | 150 | ValueBlockObj.Effect = new BlurEffect() |
| @@ -140,7 +152,7 @@ namespace UI.Controls.Charts | ||
| 140 | 152 | Radius = size, |
| 141 | 153 | RenderingBias = RenderingBias.Performance |
| 142 | 154 | }; |
| 143 | 删除: | |
| 155 | 新增: | |
| 144 | 156 | }; |
| 145 | 157 | |
| 146 | 158 | } |
| @@ -86,26 +86,40 @@ namespace UI.Controls.Charts | ||
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | #endregion |
| 89 | 删除: private TextBlock NameTextObj, ValueTextObj; | |
| 89 | 新增: //private TextBlock NameTextObj, ValueTextObj; | |
| 90 | 90 | private Rectangle ValueBlockObj; |
| 91 | 删除: private StackPanel ValueContainer; | |
| 92 | 删除: private Image IconObj; | |
| 91 | 新增: //private StackPanel ValueContainer; | |
| 92 | 新增: //private Image IconObj; | |
| 93 | 93 | private bool isRendering = false; |
| 94 | 新增: private bool IsAddEvent = false; | |
| 95 | 新增: | |
| 94 | 96 | public ChartsItemTypeMonth() |
| 95 | 97 | { |
| 96 | 98 | DefaultStyleKey = typeof(ChartsItemTypeMonth); |
| 99 | 新增: | |
| 100 | 新增: Unloaded += ChartsItemTypeMonth_Unloaded; | |
| 101 | 新增: } | |
| 102 | 新增: | |
| 103 | 新增: private void ChartsItemTypeMonth_Unloaded(object sender, RoutedEventArgs e) | |
| 104 | 新增: { | |
| 105 | 新增: Unloaded -= ChartsItemTypeMonth_Unloaded; | |
| 106 | 新增: Loaded -= ChartsItemTypeMonth_Loaded; | |
| 97 | 107 | } |
| 108 | 新增: | |
| 98 | 109 | public override void OnApplyTemplate() |
| 99 | 110 | { |
| 100 | 111 | base.OnApplyTemplate(); |
| 101 | 删除: NameTextObj = GetTemplateChild("NameTextObj") as TextBlock; | |
| 102 | 删除: ValueTextObj = GetTemplateChild("ValueTextObj") as TextBlock; | |
| 112 | 新增: //NameTextObj = GetTemplateChild("NameTextObj") as TextBlock; | |
| 113 | 新增: //ValueTextObj = GetTemplateChild("ValueTextObj") as TextBlock; | |
| 103 | 114 | ValueBlockObj = GetTemplateChild("ValueBlockObj") as Rectangle; |
| 104 | 删除: ValueContainer = GetTemplateChild("ValueContainer") as StackPanel; | |
| 105 | 删除: | |
| 106 | 删除: IconObj = GetTemplateChild("IconObj") as Image; | |
| 115 | 新增: //ValueContainer = GetTemplateChild("ValueContainer") as StackPanel; | |
| 107 | 116 | |
| 108 | 删除: Loaded += ChartsItemTypeMonth_Loaded; | |
| 117 | 新增: //IconObj = GetTemplateChild("IconObj") as Image; | |
| 118 | 新增: if (!IsAddEvent) | |
| 119 | 新增: { | |
| 120 | 新增: IsAddEvent = true; | |
| 121 | 新增: Loaded += ChartsItemTypeMonth_Loaded; | |
| 122 | 新增: } | |
| 109 | 123 | } |
| 110 | 124 | |
| 111 | 125 | private void ChartsItemTypeMonth_Loaded(object sender, RoutedEventArgs e) |
| @@ -21,10 +21,22 @@ namespace UI.Controls.Input | ||
| 21 | 21 | public string Placeholder { get { return (string)GetValue(PlaceholderProperty); } set { SetValue(PlaceholderProperty, value); } } |
| 22 | 22 | public static readonly DependencyProperty PlaceholderProperty = DependencyProperty.Register("Placeholder", typeof(string), typeof(InputBox)); |
| 23 | 23 | private Popup ErrorPopup; |
| 24 | 新增: | |
| 24 | 25 | public InputBox() |
| 25 | 26 | { |
| 26 | 27 | DefaultStyleKey = typeof(InputBox); |
| 28 | 新增: Unloaded += InputBox_Unloaded; | |
| 27 | 29 | } |
| 30 | 新增: | |
| 31 | 新增: private void InputBox_Unloaded(object sender, RoutedEventArgs e) | |
| 32 | 新增: { | |
| 33 | 新增: Unloaded -= InputBox_Unloaded; | |
| 34 | 新增: if (ErrorPopup != null) | |
| 35 | 新增: { | |
| 36 | 新增: ErrorPopup.Closed -= ErrorPopup_Closed; | |
| 37 | 新增: } | |
| 38 | 新增: } | |
| 39 | 新增: | |
| 28 | 40 | public override void OnApplyTemplate() |
| 29 | 41 | { |
| 30 | 42 | base.OnApplyTemplate(); |
| @@ -108,11 +108,13 @@ namespace UI.Controls.Navigation | ||
| 108 | 108 | { |
| 109 | 109 | if (control.Data != null) |
| 110 | 110 | { |
| 111 | 新增: control.Data.CollectionChanged -= control.Data_CollectionChanged; | |
| 111 | 112 | control.Data.CollectionChanged += control.Data_CollectionChanged; |
| 112 | 删除: } | |
| 113 | 删除: foreach (var item in control.Data) | |
| 114 | 删除: { | |
| 115 | 删除: control.AddItem(item); | |
| 113 | 新增: | |
| 114 | 新增: foreach (var item in control.Data) | |
| 115 | 新增: { | |
| 116 | 新增: control.AddItem(item); | |
| 117 | 新增: } | |
| 116 | 118 | } |
| 117 | 119 | } |
| 118 | 120 | } |
| @@ -284,7 +286,7 @@ namespace UI.Controls.Navigation | ||
| 284 | 286 | if (ItemsPanel != null) |
| 285 | 287 | { |
| 286 | 288 | var navItem = new NavigationItem(); |
| 287 | 删除: int id = item.ID == null ? CreateID() : item.ID; | |
| 289 | 新增: int id = item.ID < -1 ? CreateID() : item.ID; | |
| 288 | 290 | item.ID = id; |
| 289 | 291 | navItem.ID = id; |
| 290 | 292 | navItem.Title = item.Title; |
| @@ -296,6 +298,10 @@ namespace UI.Controls.Navigation | ||
| 296 | 298 | if (!string.IsNullOrEmpty(item.Title)) |
| 297 | 299 | { |
| 298 | 300 | navItem.MouseUp += NavItem_MouseUp; |
| 301 | 新增: navItem.Unloaded += (e, c) => | |
| 302 | 新增: { | |
| 303 | 新增: navItem.MouseUp -= NavItem_MouseUp; | |
| 304 | 新增: }; | |
| 299 | 305 | } |
| 300 | 306 | ItemsPanel.Children.Add(navItem); |
| 301 | 307 | ItemsDictionary.Add(id, navItem); |
| @@ -312,7 +318,7 @@ namespace UI.Controls.Navigation | ||
| 312 | 318 | if (e.ChangedButton == System.Windows.Input.MouseButton.Left) |
| 313 | 319 | { |
| 314 | 320 | //左键选中 |
| 315 | 删除: | |
| 321 | 新增: | |
| 316 | 322 | SelectedItem = Data.Where(m => m.ID == navitem.ID).FirstOrDefault(); |
| 317 | 323 | OnSelected?.Invoke(this, null); |
| 318 | 324 | |
| @@ -357,7 +363,7 @@ namespace UI.Controls.Navigation | ||
| 357 | 363 | return; |
| 358 | 364 | } |
| 359 | 365 | var item = ItemsDictionary[SelectedItem.ID]; |
| 360 | 删除: var index = Data.IndexOf(SelectedItem); | |
| 366 | 新增: //var index = Data.IndexOf(SelectedItem); | |
| 361 | 367 | |
| 362 | 368 | //ActiveBlock.Height = item.ActualHeight * Data.Count; |
| 363 | 369 | |
| @@ -7,6 +7,7 @@ using System.Threading.Tasks; | ||
| 7 | 7 | using System.Windows; |
| 8 | 8 | using System.Windows.Controls; |
| 9 | 9 | using System.Windows.Input; |
| 10 | 新增:using System.Windows.Navigation; | |
| 10 | 11 | using UI.Controls.Models; |
| 11 | 12 | using UI.Models; |
| 12 | 13 | |
| @@ -127,6 +128,7 @@ namespace UI.Controls | ||
| 127 | 128 | private Dictionary<string, PageModel> PageCache; |
| 128 | 129 | private bool IsBack = false; |
| 129 | 130 | private ScrollViewer ScrollViewer; |
| 131 | 新增: private Frame Frame; | |
| 130 | 132 | public PageContainer() |
| 131 | 133 | { |
| 132 | 134 | DefaultStyleKey = typeof(PageContainer); |
| @@ -144,26 +146,38 @@ namespace UI.Controls | ||
| 144 | 146 | base.OnApplyTemplate(); |
| 145 | 147 | |
| 146 | 148 | ScrollViewer = GetTemplateChild("ScrollViewer") as ScrollViewer; |
| 149 | 新增: Frame = GetTemplateChild("Frame") as Frame; | |
| 150 | 新增: Frame.NavigationService.Navigated += NavigationService_Navigated; | |
| 147 | 151 | |
| 148 | 152 | Loaded += PageContainer_Loaded; |
| 149 | 153 | Unloaded += PageContainer_Unloaded; |
| 150 | 154 | } |
| 151 | 删除: | |
| 155 | 新增: private void NavigationService_Navigated(object sender, NavigationEventArgs e) | |
| 156 | 新增: { | |
| 157 | 新增: Frame.NavigationService.RemoveBackEntry(); | |
| 158 | 新增: } | |
| 152 | 159 | private void PageContainer_Unloaded(object sender, RoutedEventArgs e) |
| 153 | 160 | { |
| 154 | 161 | Loaded -= PageContainer_Loaded; |
| 155 | 162 | Unloaded -= PageContainer_Unloaded; |
| 156 | 删除: ClearCache(); | |
| 157 | 删除: Content = null; | |
| 158 | 删除: DataContext = null; | |
| 163 | 新增: Frame.NavigationService.Navigated -= NavigationService_Navigated; | |
| 164 | 新增: | |
| 165 | 新增: Disponse(); | |
| 159 | 166 | } |
| 160 | 167 | |
| 161 | 168 | private void PageContainer_Loaded(object sender, RoutedEventArgs e) |
| 162 | 169 | { |
| 163 | 170 | Instance = this; |
| 164 | 删除: | |
| 165 | 171 | } |
| 166 | 172 | |
| 173 | 新增: protected override void OnMouseDown(MouseButtonEventArgs e) | |
| 174 | 新增: { | |
| 175 | 新增: base.OnMouseDown(e); | |
| 176 | 新增: if (e.ChangedButton == MouseButton.XButton1) | |
| 177 | 新增: { | |
| 178 | 新增: Back(); | |
| 179 | 新增: } | |
| 180 | 新增: } | |
| 167 | 181 | private void OnBackCommand(object obj) |
| 168 | 182 | { |
| 169 | 183 | Back(); |
| @@ -187,6 +201,9 @@ namespace UI.Controls | ||
| 187 | 201 | var page = PageCache[pageUri]; |
| 188 | 202 | var vm = page.Instance.DataContext as ModelBase; |
| 189 | 203 | vm?.Dispose(); |
| 204 | 新增: page.Instance.Content = null; | |
| 205 | 新增: page.Instance.DataContext = null; | |
| 206 | 新增: | |
| 190 | 207 | PageCache.Remove(pageUri); |
| 191 | 208 | } |
| 192 | 209 | Historys.RemoveRange(preIndex, 1); |
| @@ -216,7 +233,6 @@ namespace UI.Controls | ||
| 216 | 233 | { |
| 217 | 234 | ClearCache(); |
| 218 | 235 | } |
| 219 | 删除: | |
| 220 | 236 | } |
| 221 | 237 | else |
| 222 | 238 | { |
| @@ -273,10 +289,6 @@ namespace UI.Controls | ||
| 273 | 289 | if (pageType != null && ServiceProvider != null) |
| 274 | 290 | { |
| 275 | 291 | page = ServiceProvider.GetService(pageType) as Page; |
| 276 | 删除: if (page != null) | |
| 277 | 删除: { | |
| 278 | 删除: page.Unloaded += Page_Unloaded; | |
| 279 | 删除: } | |
| 280 | 292 | } |
| 281 | 293 | var newPage = new PageModel() |
| 282 | 294 | { |
| @@ -286,12 +298,6 @@ namespace UI.Controls | ||
| 286 | 298 | |
| 287 | 299 | return newPage; |
| 288 | 300 | } |
| 289 | 删除: private void Page_Unloaded(object sender, RoutedEventArgs e) | |
| 290 | 删除: { | |
| 291 | 删除: Page page = (Page)sender; | |
| 292 | 删除: | |
| 293 | 删除: page.Unloaded -= Page_Unloaded; | |
| 294 | 删除: } | |
| 295 | 301 | |
| 296 | 302 | private void ClearCache() |
| 297 | 303 | { |
| @@ -302,9 +308,19 @@ namespace UI.Controls | ||
| 302 | 308 | var page = PageCache[key]; |
| 303 | 309 | var vm = page.Instance.DataContext as ModelBase; |
| 304 | 310 | vm?.Dispose(); |
| 311 | 新增: page.Instance.Content = null; | |
| 312 | 新增: page.Instance.DataContext = null; | |
| 305 | 313 | } |
| 306 | 314 | PageCache.Clear(); |
| 307 | 315 | } |
| 308 | 316 | } |
| 317 | 新增: | |
| 318 | 新增: public void Disponse() | |
| 319 | 新增: { | |
| 320 | 新增: ClearCache(); | |
| 321 | 新增: Content = null; | |
| 322 | 新增: DataContext = null; | |
| 323 | 新增: Instance = null; | |
| 324 | 新增: } | |
| 309 | 325 | } |
| 310 | 326 | } |
| @@ -66,6 +66,15 @@ namespace UI.Controls.Select | ||
| 66 | 66 | DefaultStyleKey = typeof(Select); |
| 67 | 67 | |
| 68 | 68 | MouseLeftButtonUp += Select_MouseLeftButtonUp; |
| 69 | 新增: | |
| 70 | 新增: Unloaded += Select_Unloaded; | |
| 71 | 新增: } | |
| 72 | 新增: | |
| 73 | 新增: private void Select_Unloaded(object sender, RoutedEventArgs e) | |
| 74 | 新增: { | |
| 75 | 新增: MouseLeftButtonUp -= Select_MouseLeftButtonUp; | |
| 76 | 新增: | |
| 77 | 新增: Unloaded -= Select_Unloaded; | |
| 69 | 78 | } |
| 70 | 79 | |
| 71 | 80 | private void Select_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) |
| @@ -95,7 +104,7 @@ namespace UI.Controls.Select | ||
| 95 | 104 | option.Value = item; |
| 96 | 105 | option.IsShowIcon = IsShowIcon; |
| 97 | 106 | option.IsChecked = SelectedItem?.Name == item.Name; |
| 98 | 删除: option.MouseLeftButtonUp += Option_MouseLeftButtonUp; ; | |
| 107 | 新增: option.MouseLeftButtonUp += Option_MouseLeftButtonUp; | |
| 99 | 108 | _optionsContainer.Children.Add(option); |
| 100 | 109 | } |
| 101 | 110 | } |
| @@ -60,7 +60,7 @@ namespace UI.Controls.Tabbar | ||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | |
| 63 | 删除: private StackPanel ItemsPanel; | |
| 63 | 新增: //private StackPanel ItemsPanel; | |
| 64 | 64 | private List<TextBlock> ItemsDictionary; |
| 65 | 65 | private Grid ItemsContainer; |
| 66 | 66 | // 选中标记块 |
| @@ -208,7 +208,8 @@ namespace UI.Controls.Window | ||
| 208 | 208 | System.Reflection.Assembly.GetEntryAssembly().ManifestModule.Name)); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 删除: Loaded += new RoutedEventHandler(window_Loaded); | |
| 211 | 新增: Loaded += window_Loaded; | |
| 212 | 新增: Unloaded += DefaultWindow_Unloaded; | |
| 212 | 213 | |
| 213 | 214 | toastTimer = new DispatcherTimer(); |
| 214 | 215 | toastTimer.Tick += (s, e) => |
| @@ -219,6 +220,13 @@ namespace UI.Controls.Window | ||
| 219 | 220 | toastTimer.Interval = new TimeSpan(0, 0, 3); |
| 220 | 221 | } |
| 221 | 222 | |
| 223 | 新增: private void DefaultWindow_Unloaded(object sender, RoutedEventArgs e) | |
| 224 | 新增: { | |
| 225 | 新增: Unloaded -= DefaultWindow_Unloaded; | |
| 226 | 新增: Loaded -= window_Loaded; | |
| 227 | 新增: | |
| 228 | 新增: } | |
| 229 | 新增: | |
| 222 | 230 | private void OnBackCommand(object sender, ExecutedRoutedEventArgs e) |
| 223 | 231 | { |
| 224 | 232 | if (PageContainer != null) |
| @@ -18,37 +18,35 @@ | ||
| 18 | 18 | ToastIcon="{Binding ToastIcon}" |
| 19 | 19 | ToastType="{Binding ToastType}" |
| 20 | 20 | > |
| 21 | 新增: <!--主要功能--> | |
| 21 | 22 | <Grid> |
| 22 | 删除: <!--主要功能--> | |
| 23 | 删除: <Grid> | |
| 24 | 删除: <Grid.ColumnDefinitions> | |
| 25 | 删除: <ColumnDefinition Width="auto"/> | |
| 26 | 删除: <ColumnDefinition Width="*"/> | |
| 27 | 删除: </Grid.ColumnDefinitions> | |
| 28 | 删除: <Navigation:Navigation x:Name="Navigation" Margin="0,32,0,0" Data="{Binding Items,Mode=TwoWay}" Width="80" WindowWidth="{Binding ElementName=Window,Path=ActualWidth}" IsShowNavigation="{Binding IsShowNavigation,Mode=TwoWay}" SelectedItem="{Binding NavSelectedItem,Mode=TwoWay}"> | |
| 29 | 删除: <i:Interaction.Triggers> | |
| 30 | 删除: <i:EventTrigger EventName="OnSelected"> | |
| 31 | 删除: <i:InvokeCommandAction Command="{Binding OnSelectedCommand}" CommandParameter="{Binding ElementName=Navigation}"/> | |
| 32 | 删除: </i:EventTrigger> | |
| 33 | 删除: <i:EventTrigger EventName="OnMouseRightButtonUP"> | |
| 34 | 删除: <!--<vm:EventCommand Command="{Binding OnMouseRightButtonUPCommand}" />--> | |
| 35 | 删除: </i:EventTrigger> | |
| 36 | 删除: </i:Interaction.Triggers> | |
| 37 | 删除: <!--<Navigation:Navigation.TopExtContent> | |
| 23 | 新增: <Grid.ColumnDefinitions> | |
| 24 | 新增: <ColumnDefinition Width="auto"/> | |
| 25 | 新增: <ColumnDefinition Width="*"/> | |
| 26 | 新增: </Grid.ColumnDefinitions> | |
| 27 | 新增: <Navigation:Navigation x:Name="Navigation" Margin="0,32,0,0" Data="{Binding Items,Mode=TwoWay}" Width="80" WindowWidth="{Binding ElementName=Window,Path=ActualWidth}" IsShowNavigation="{Binding IsShowNavigation,Mode=TwoWay}" SelectedItem="{Binding NavSelectedItem,Mode=TwoWay}"> | |
| 28 | 新增: <i:Interaction.Triggers> | |
| 29 | 新增: <i:EventTrigger EventName="OnSelected"> | |
| 30 | 新增: <i:InvokeCommandAction Command="{Binding OnSelectedCommand}" CommandParameter="{Binding ElementName=Navigation}"/> | |
| 31 | 新增: </i:EventTrigger> | |
| 32 | 新增: <i:EventTrigger EventName="OnMouseRightButtonUP"> | |
| 33 | 新增: <!--<vm:EventCommand Command="{Binding OnMouseRightButtonUPCommand}" />--> | |
| 34 | 新增: </i:EventTrigger> | |
| 35 | 新增: </i:Interaction.Triggers> | |
| 36 | 新增: <!--<Navigation:Navigation.TopExtContent> | |
| 38 | 37 | <TextBlock Text="test"/> |
| 39 | 38 | </Navigation:Navigation.TopExtContent>--> |
| 40 | 删除: <Navigation:Navigation.BottomExtContent> | |
| 41 | 删除: <Navigation:NavigationItem Icon="Settings" Title="设置" Uri="SettingsPage" Command="{Binding GotoPageCommand}" CommandParameter="SettingPage"/> | |
| 42 | 删除: </Navigation:Navigation.BottomExtContent> | |
| 39 | 新增: <Navigation:Navigation.BottomExtContent> | |
| 40 | 新增: <Navigation:NavigationItem Icon="Settings" Title="设置" Uri="SettingsPage" Command="{Binding GotoPageCommand}" CommandParameter="SettingPage"/> | |
| 41 | 新增: </Navigation:Navigation.BottomExtContent> | |
| 43 | 42 | |
| 44 | 删除: </Navigation:Navigation> | |
| 43 | 新增: </Navigation:Navigation> | |
| 45 | 44 | |
| 46 | 删除: <Border Grid.Column="1" Background="#f9f9f9" Margin="0,40,10,10" CornerRadius="5" BorderThickness="1,1,1,1" BorderBrush="#ccc"> | |
| 47 | 删除: <!--<ScrollViewer VerticalScrollBarVisibility="Auto">--> | |
| 48 | 删除: <control:PageContainer IndexUriList="{Binding IndexUriList}" Instance="{Binding PageContainer,Mode=TwoWay}" ServiceProvider="{Binding ServiceProvider}" Uri="{Binding Uri,Mode=TwoWay}" Title="{Binding Title}" IsShowTilteBar="{Binding IsShowTitleBar,Mode=TwoWay}"/> | |
| 49 | 删除: <!--</ScrollViewer>--> | |
| 50 | 删除: </Border> | |
| 45 | 新增: <Border Grid.Column="1" Background="#f9f9f9" Margin="0,40,10,10" CornerRadius="5" BorderThickness="1,1,1,1" BorderBrush="#ccc"> | |
| 46 | 新增: <!--<ScrollViewer VerticalScrollBarVisibility="Auto">--> | |
| 47 | 新增: <control:PageContainer IndexUriList="{Binding IndexUriList}" Instance="{Binding PageContainer,Mode=TwoWay}" ServiceProvider="{Binding ServiceProvider}" Uri="{Binding Uri,Mode=TwoWay}" Title="{Binding Title}" IsShowTilteBar="{Binding IsShowTitleBar,Mode=TwoWay}"/> | |
| 48 | 新增: <!--</ScrollViewer>--> | |
| 49 | 新增: </Border> | |
| 51 | 50 | |
| 52 | 删除: </Grid> | |
| 53 | 51 | </Grid> |
| 54 | 52 | </ui:DefaultWindow> |
| @@ -25,6 +25,13 @@ namespace UI | ||
| 25 | 25 | public MainWindow() |
| 26 | 26 | { |
| 27 | 27 | InitializeComponent(); |
| 28 | 新增: Unloaded += Page_Unloaded; | |
| 29 | 新增: } | |
| 30 | 新增: | |
| 31 | 新增: private void Page_Unloaded(object sender, RoutedEventArgs e) | |
| 32 | 新增: { | |
| 33 | 新增: Unloaded -= Page_Unloaded; | |
| 34 | 新增: DataContext = null; | |
| 28 | 35 | } |
| 29 | 36 | } |
| 30 | 37 | } |
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | <Style TargetType="{x:Type local:Icon}"> |
| 5 | 5 | <Setter Property="SnapsToDevicePixels" |
| 6 | 6 | Value="true" /> |
| 7 | 删除: | |
| 7 | 新增: | |
| 8 | 8 | <Setter Property="MinWidth" Value="18"/> |
| 9 | 9 | <Setter Property="MinHeight" Value="18"/> |
| 10 | 10 | <Setter Property="FontSize" Value="16"/> |
| @@ -14,10 +14,10 @@ | ||
| 14 | 14 | <Setter Property="Template"> |
| 15 | 15 | <Setter.Value> |
| 16 | 16 | <ControlTemplate TargetType="{x:Type local:Icon}"> |
| 17 | 删除: <Border Background="{TemplateBinding Background}"> | |
| 17 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 18 | 18 | |
| 19 | 删除: <TextBlock Text="{TemplateBinding Unicode}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" VerticalAlignment="Center" HorizontalAlignment="Center" TextOptions.TextFormattingMode="Ideal" SnapsToDevicePixels="True" /> | |
| 20 | 删除: </Border> | |
| 19 | 新增: <TextBlock Text="{TemplateBinding Unicode}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" VerticalAlignment="Center" HorizontalAlignment="Center" TextOptions.TextFormattingMode="Ideal" SnapsToDevicePixels="True" /> | |
| 20 | 新增: <!--</Border>--> | |
| 21 | 21 | |
| 22 | 22 | </ControlTemplate> |
| 23 | 23 | </Setter.Value> |
| @@ -14,38 +14,35 @@ | ||
| 14 | 14 | <Setter Property="Template"> |
| 15 | 15 | <Setter.Value> |
| 16 | 16 | <ControlTemplate TargetType="{x:Type local:Button}"> |
| 17 | 删除: <Border x:Name="Border" SnapsToDevicePixels="True"> | |
| 18 | 删除: <Grid> | |
| 17 | 新增: <!--<Border x:Name="Border" SnapsToDevicePixels="True">--> | |
| 18 | 新增: <Grid SnapsToDevicePixels="True"> | |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 删除: <Border BorderBrush="#f3f3f3" BorderThickness="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="{TemplateBinding Background}"> | |
| 22 | 删除: <!--<Border.Effect> | |
| 21 | 新增: <Border BorderBrush="#f3f3f3" BorderThickness="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="{TemplateBinding Background}"> | |
| 22 | 新增: <!--<Border.Effect> | |
| 23 | 23 | <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> |
| 24 | 24 | </Border.Effect>--> |
| 25 | 删除: <Grid HorizontalAlignment="Center" VerticalAlignment="Center"> | |
| 26 | 删除: <Grid.ColumnDefinitions> | |
| 27 | 删除: <ColumnDefinition Width="auto"/> | |
| 28 | 删除: <ColumnDefinition Width="auto"/> | |
| 29 | 删除: </Grid.ColumnDefinitions> | |
| 30 | 删除: <base:Icon x:Name="Icon" Margin="0,0,5,0" IconType="{TemplateBinding Icon}" VerticalAlignment="Center" FontSize="12" > | |
| 25 | 新增: <Grid HorizontalAlignment="Center" VerticalAlignment="Center"> | |
| 26 | 新增: <Grid.ColumnDefinitions> | |
| 27 | 新增: <ColumnDefinition Width="auto"/> | |
| 28 | 新增: <ColumnDefinition Width="auto"/> | |
| 29 | 新增: </Grid.ColumnDefinitions> | |
| 30 | 新增: <base:Icon x:Name="Icon" Margin="0,0,5,0" IconType="{TemplateBinding Icon}" VerticalAlignment="Center" FontSize="12" > | |
| 31 | 31 | |
| 32 | 删除: </base:Icon> | |
| 33 | 删除: <ContentPresenter | |
| 32 | 新增: </base:Icon> | |
| 33 | 新增: <ContentPresenter | |
| 34 | 34 | Grid.Column="1" |
| 35 | 35 | HorizontalAlignment="Center" |
| 36 | 36 | VerticalAlignment="Center" |
| 37 | 37 | RecognizesAccessKey="True"/> |
| 38 | 删除: </Grid> | |
| 38 | 新增: </Grid> | |
| 39 | 39 | |
| 40 | 删除: </Border> | |
| 41 | 删除: <Border x:Name="Shadow" BorderBrush="{Binding ElementName=BoxBorder,Path=BorderBrush}" BorderThickness="{Binding ElementName=BoxBorder,Path=BorderThickness}" Panel.ZIndex="-1" Width="{Binding ElementName=BoxBorder,Path=ActualWidth}" Height="{Binding ElementName=BoxBorder,Path=ActualHeight}" CornerRadius="{Binding ElementName=BoxBorder,Path=CornerRadius}" Background="{Binding ElementName=BoxBorder,Path=Background}"> | |
| 42 | 删除: <Border.Effect> | |
| 43 | 删除: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 44 | 删除: </Border.Effect> | |
| 45 | 删除: </Border> | |
| 46 | 删除: | |
| 47 | 删除: | |
| 48 | 删除: </Grid> | |
| 40 | 新增: </Border> | |
| 41 | 新增: <Border x:Name="Shadow" BorderBrush="{Binding ElementName=BoxBorder,Path=BorderBrush}" BorderThickness="{Binding ElementName=BoxBorder,Path=BorderThickness}" Panel.ZIndex="-1" Width="{Binding ElementName=BoxBorder,Path=ActualWidth}" Height="{Binding ElementName=BoxBorder,Path=ActualHeight}" CornerRadius="{Binding ElementName=BoxBorder,Path=CornerRadius}" Background="{Binding ElementName=BoxBorder,Path=Background}"> | |
| 42 | 新增: <Border.Effect> | |
| 43 | 新增: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 44 | 新增: </Border.Effect> | |
| 45 | 新增: </Border> | |
| 49 | 46 | <VisualStateManager.VisualStateGroups> |
| 50 | 47 | <VisualStateGroup x:Name="CommonStates"> |
| 51 | 48 | <VisualStateGroup.Transitions> |
| @@ -91,7 +88,10 @@ | ||
| 91 | 88 | </VisualState> |
| 92 | 89 | </VisualStateGroup> |
| 93 | 90 | </VisualStateManager.VisualStateGroups> |
| 94 | 删除: </Border> | |
| 91 | 新增: | |
| 92 | 新增: </Grid> | |
| 93 | 新增: | |
| 94 | 新增: <!--</Border>--> | |
| 95 | 95 | <ControlTemplate.Triggers> |
| 96 | 96 | <Trigger Property="Icon" Value="None"> |
| 97 | 97 | <Setter TargetName="Icon" Property="Visibility" Value="Collapsed"/> |
| @@ -14,14 +14,12 @@ | ||
| 14 | 14 | <Setter Property="Template"> |
| 15 | 15 | <Setter.Value> |
| 16 | 16 | <ControlTemplate TargetType="{x:Type local:IconButton}"> |
| 17 | 删除: <Border Background="{TemplateBinding Background}" x:Name="Border"> | |
| 17 | 新增: <!--<Border Background="{TemplateBinding Background}" x:Name="Border">--> | |
| 18 | 18 | |
| 19 | 删除: <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Padding="5" Background="Transparent"> | |
| 20 | 删除: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="#5c5c5c" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" > | |
| 21 | 删除: | |
| 22 | 删除: </base:Icon> | |
| 23 | 删除: </Border> | |
| 19 | 新增: <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Padding="5" Background="Transparent"> | |
| 20 | 新增: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="#5c5c5c" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" > | |
| 24 | 21 | |
| 22 | 新增: </base:Icon> | |
| 25 | 23 | <VisualStateManager.VisualStateGroups> |
| 26 | 24 | <VisualStateGroup x:Name="CommonStates"> |
| 27 | 25 | <VisualStateGroup.Transitions> |
| @@ -44,8 +42,11 @@ | ||
| 44 | 42 | </VisualState> |
| 45 | 43 | </VisualStateGroup> |
| 46 | 44 | </VisualStateManager.VisualStateGroups> |
| 47 | 删除: | |
| 48 | 45 | </Border> |
| 46 | 新增: | |
| 47 | 新增: | |
| 48 | 新增: | |
| 49 | 新增: <!--</Border>--> | |
| 49 | 50 | <ControlTemplate.Triggers> |
| 50 | 51 | |
| 51 | 52 | </ControlTemplate.Triggers> |
| @@ -12,144 +12,136 @@ | ||
| 12 | 12 | <Setter Property="Template"> |
| 13 | 13 | <Setter.Value> |
| 14 | 14 | <ControlTemplate TargetType="{x:Type local:Charts}"> |
| 15 | 删除: <Border Background="{TemplateBinding Background}"> | |
| 16 | 删除: <Grid> | |
| 17 | 删除: <Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 18 | 删除: <ScrollViewer Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=HorizontalA,Path=ActualHeight}" CanContentScroll="False"> | |
| 19 | 删除: <StackPanel x:Name="Container"> | |
| 20 | 删除: </StackPanel> | |
| 21 | 删除: </ScrollViewer> | |
| 22 | 删除: <StackPanel Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 23 | 删除: </Grid> | |
| 24 | 删除: <Grid x:Name="Card" Visibility="Collapsed"> | |
| 25 | 删除: <WrapPanel x:Name="CardContainer"> | |
| 26 | 删除: </WrapPanel> | |
| 27 | 删除: </Grid> | |
| 28 | 删除: <Grid x:Name="Month" Visibility="Collapsed"> | |
| 29 | 删除: <Grid x:Name="MonthContainer"> | |
| 30 | 删除: </Grid> | |
| 31 | 删除: </Grid> | |
| 15 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 16 | 新增: <Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 17 | 新增: <ScrollViewer Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=HorizontalA,Path=ActualHeight}" CanContentScroll="False"> | |
| 18 | 新增: <StackPanel x:Name="Container"> | |
| 19 | 新增: </StackPanel> | |
| 20 | 新增: </ScrollViewer> | |
| 21 | 新增: <StackPanel Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 22 | 新增: </Grid> | |
| 23 | 新增: <WrapPanel x:Name="CardContainer" Visibility="Collapsed"> | |
| 24 | 新增: </WrapPanel> | |
| 25 | 新增: <Grid x:Name="MonthContainer" Visibility="Collapsed"> | |
| 26 | 新增: </Grid> | |
| 32 | 27 | |
| 33 | 删除: <Grid x:Name="Column" Visibility="Collapsed"> | |
| 34 | 删除: <Grid x:Name="ColumnEmpty" Visibility="Collapsed"> | |
| 35 | 删除: <base:EmptyData/> | |
| 36 | 删除: </Grid> | |
| 37 | 删除: <Grid x:Name="ColumnMain"> | |
| 38 | 删除: <Grid.RowDefinitions> | |
| 39 | 删除: <RowDefinition Height="auto"/> | |
| 40 | 删除: <RowDefinition Height="*"/> | |
| 41 | 删除: <RowDefinition Height="auto"/> | |
| 42 | 删除: </Grid.RowDefinitions> | |
| 43 | 删除: <StackPanel> | |
| 44 | 删除: <TextBlock Text="总计" Foreground="#626262"/> | |
| 45 | 删除: <TextBlock Margin="0,10,0,0" Text="{TemplateBinding Total}" FontSize="20" Foreground="#1a1919"/> | |
| 46 | 删除: </StackPanel> | |
| 47 | 删除: <Grid Grid.Row="1" Margin="0,20,0,0"> | |
| 48 | 删除: <TextBlock Panel.ZIndex="2" Margin="0,-8,0,0" HorizontalAlignment="Right" VerticalAlignment="Top" Text="{TemplateBinding Maximum}" Foreground="#ccc" FontSize="12"/> | |
| 49 | 删除: | |
| 50 | 删除: <TextBlock Panel.ZIndex="2" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{TemplateBinding Median}" Foreground="#ccc" FontSize="12"/> | |
| 51 | 删除: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 28 | 新增: <Grid x:Name="Column" Visibility="Collapsed"> | |
| 29 | 新增: <base:EmptyData x:Name="ColumnEmpty" Visibility="Collapsed"/> | |
| 30 | 新增: <Grid x:Name="ColumnMain"> | |
| 31 | 新增: <Grid.RowDefinitions> | |
| 32 | 新增: <RowDefinition Height="auto"/> | |
| 33 | 新增: <RowDefinition Height="*"/> | |
| 34 | 新增: <RowDefinition Height="auto"/> | |
| 35 | 新增: </Grid.RowDefinitions> | |
| 36 | 新增: <StackPanel> | |
| 37 | 新增: <TextBlock Text="总计" Foreground="#626262"/> | |
| 38 | 新增: <TextBlock Margin="0,10,0,0" Text="{TemplateBinding Total}" FontSize="20" Foreground="#1a1919"/> | |
| 39 | 新增: </StackPanel> | |
| 40 | 新增: <Grid Grid.Row="1" Margin="0,20,0,0"> | |
| 41 | 新增: <TextBlock Panel.ZIndex="2" Margin="0,-8,0,0" HorizontalAlignment="Right" VerticalAlignment="Top" Text="{TemplateBinding Maximum}" Foreground="#ccc" FontSize="12"/> | |
| 42 | 新增: | |
| 43 | 新增: <TextBlock Panel.ZIndex="2" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{TemplateBinding Median}" Foreground="#ccc" FontSize="12"/> | |
| 44 | 新增: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 52 | 45 | X2="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" |
| 53 | 46 | StrokeDashArray="2 5" StrokeThickness=".8" VerticalAlignment="Center" Margin="10,0"/> |
| 54 | 47 | |
| 55 | 删除: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 48 | 新增: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 56 | 49 | X2="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" |
| 57 | 50 | StrokeDashArray="2 5" StrokeThickness=".8" VerticalAlignment="Top" Margin="10,0"/> |
| 58 | 51 | |
| 59 | 删除: <Border BorderThickness="1,0,0,1" BorderBrush="#eeeef2"> | |
| 60 | 删除: <Grid x:Name="ColumnContainer"> | |
| 61 | 删除: | |
| 62 | 删除: </Grid> | |
| 63 | 删除: </Border> | |
| 64 | 删除: </Grid> | |
| 65 | 删除: <!--信息--> | |
| 66 | 删除: <Grid Grid.Row="2" Margin="0,5,0,0"> | |
| 67 | 删除: <ListView ItemsSource="{TemplateBinding ColumnInfoList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 68 | 删除: <ListBox.Resources> | |
| 69 | 删除: <Style TargetType="{x:Type ListView}"> | |
| 70 | 删除: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 71 | 删除: | |
| 72 | 删除: <Setter Property="Template"> | |
| 73 | 删除: <Setter.Value> | |
| 74 | 删除: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 75 | 删除: <Border> | |
| 76 | 删除: <ItemsPresenter /> | |
| 77 | 删除: </Border> | |
| 78 | 删除: </ControlTemplate> | |
| 79 | 删除: </Setter.Value> | |
| 80 | 删除: </Setter> | |
| 81 | 删除: </Style> | |
| 82 | 删除: <Style TargetType="{x:Type ListViewItem}"> | |
| 83 | 删除: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 84 | 删除: <Setter Property="Template"> | |
| 85 | 删除: <Setter.Value> | |
| 86 | 删除: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 87 | 删除: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0" CornerRadius="10"> | |
| 88 | 删除: | |
| 89 | 删除: <ContentPresenter/> | |
| 90 | 删除: </Border> | |
| 91 | 删除: <!--<ControlTemplate.Triggers> | |
| 52 | 新增: <Border BorderThickness="1,0,0,1" BorderBrush="#eeeef2"> | |
| 53 | 新增: <Grid x:Name="ColumnContainer"> | |
| 54 | 新增: | |
| 55 | 新增: </Grid> | |
| 56 | 新增: </Border> | |
| 57 | 新增: </Grid> | |
| 58 | 新增: <!--信息--> | |
| 59 | 新增: <Grid Grid.Row="2" Margin="0,5,0,0"> | |
| 60 | 新增: <ListView ItemsSource="{TemplateBinding ColumnInfoList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 61 | 新增: <ListBox.Resources> | |
| 62 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 63 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 64 | 新增: | |
| 65 | 新增: <Setter Property="Template"> | |
| 66 | 新增: <Setter.Value> | |
| 67 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 68 | 新增: <Border> | |
| 69 | 新增: <ItemsPresenter /> | |
| 70 | 新增: </Border> | |
| 71 | 新增: </ControlTemplate> | |
| 72 | 新增: </Setter.Value> | |
| 73 | 新增: </Setter> | |
| 74 | 新增: </Style> | |
| 75 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 76 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 77 | 新增: <Setter Property="Template"> | |
| 78 | 新增: <Setter.Value> | |
| 79 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 80 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0" CornerRadius="10"> | |
| 81 | 新增: | |
| 82 | 新增: <ContentPresenter/> | |
| 83 | 新增: </Border> | |
| 84 | 新增: <!--<ControlTemplate.Triggers> | |
| 92 | 85 | <Trigger Property="IsMouseOver" Value="True"> |
| 93 | 86 | --> |
| 94 | 删除: <!--<Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/>--> | |
| 95 | 删除: <!-- | |
| 87 | 新增: <!--<Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/>--> | |
| 88 | 新增: <!-- | |
| 96 | 89 | <Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/> |
| 97 | 90 | |
| 98 | 91 | </Trigger> |
| 99 | 92 | </ControlTemplate.Triggers>--> |
| 100 | 删除: </ControlTemplate> | |
| 101 | 删除: </Setter.Value> | |
| 102 | 删除: </Setter> | |
| 103 | 删除: | |
| 104 | 删除: </Style> | |
| 105 | 删除: </ListBox.Resources> | |
| 106 | 删除: <ListBox.ItemsPanel> | |
| 107 | 删除: <ItemsPanelTemplate> | |
| 108 | 删除: <WrapPanel/> | |
| 109 | 删除: </ItemsPanelTemplate> | |
| 110 | 删除: </ListBox.ItemsPanel> | |
| 111 | 删除: <ListView.ItemTemplate> | |
| 112 | 删除: <DataTemplate> | |
| 113 | 删除: | |
| 114 | 删除: <WrapPanel Orientation="Vertical"> | |
| 115 | 删除: <Border Width="auto" Height="30" Margin="0,0,10,0"> | |
| 116 | 删除: <Grid> | |
| 117 | 删除: <Grid.ColumnDefinitions> | |
| 118 | 删除: <ColumnDefinition Width="20"/> | |
| 119 | 删除: <ColumnDefinition Width="30"/> | |
| 120 | 删除: <ColumnDefinition Width="auto"/> | |
| 121 | 删除: <ColumnDefinition Width="auto"/> | |
| 122 | 删除: | |
| 123 | 删除: </Grid.ColumnDefinitions> | |
| 124 | 删除: <Border Width="12" CornerRadius="4" Height="12" Background="{Binding Color,Converter={StaticResource HextoColorConverter}}"> | |
| 125 | 删除: <!--颜色--> | |
| 126 | 删除: </Border> | |
| 127 | 删除: <Border Grid.Column="1"> | |
| 128 | 删除: <!--图标--> | |
| 129 | 删除: <base:Img Width="20" Height="20" URL="{Binding Icon}"/> | |
| 130 | 删除: </Border> | |
| 131 | 删除: <Border Grid.Column="2" Margin="5,0,0,0"> | |
| 132 | 删除: <!--名称--> | |
| 133 | 删除: <TextBlock Foreground="#5c5c5c" VerticalAlignment="Center" Text="{Binding Name}"/> | |
| 134 | 删除: </Border> | |
| 135 | 删除: <Border Grid.Column="3"> | |
| 136 | 删除: <!--总计和百分比--> | |
| 137 | 删除: <TextBlock FontSize="12" Margin="5,0,0,0" Foreground="#FF8A8A8A" VerticalAlignment="Center" Text="{Binding Text}"/> | |
| 138 | 删除: | |
| 139 | 删除: </Border> | |
| 140 | 删除: | |
| 141 | 删除: </Grid> | |
| 142 | 删除: </Border> | |
| 143 | 删除: | |
| 144 | 删除: </WrapPanel> | |
| 145 | 删除: </DataTemplate> | |
| 146 | 删除: </ListView.ItemTemplate> | |
| 147 | 删除: </ListView> | |
| 148 | 删除: </Grid> | |
| 93 | 新增: </ControlTemplate> | |
| 94 | 新增: </Setter.Value> | |
| 95 | 新增: </Setter> | |
| 96 | 新增: | |
| 97 | 新增: </Style> | |
| 98 | 新增: </ListBox.Resources> | |
| 99 | 新增: <ListBox.ItemsPanel> | |
| 100 | 新增: <ItemsPanelTemplate> | |
| 101 | 新增: <WrapPanel/> | |
| 102 | 新增: </ItemsPanelTemplate> | |
| 103 | 新增: </ListBox.ItemsPanel> | |
| 104 | 新增: <ListView.ItemTemplate> | |
| 105 | 新增: <DataTemplate> | |
| 106 | 新增: | |
| 107 | 新增: <WrapPanel Orientation="Vertical"> | |
| 108 | 新增: <Border Width="auto" Height="30" Margin="0,0,10,0"> | |
| 109 | 新增: <Grid> | |
| 110 | 新增: <Grid.ColumnDefinitions> | |
| 111 | 新增: <ColumnDefinition Width="20"/> | |
| 112 | 新增: <ColumnDefinition Width="30"/> | |
| 113 | 新增: <ColumnDefinition Width="auto"/> | |
| 114 | 新增: <ColumnDefinition Width="auto"/> | |
| 115 | 新增: | |
| 116 | 新增: </Grid.ColumnDefinitions> | |
| 117 | 新增: <Border Width="12" CornerRadius="4" Height="12" Background="{Binding Color,Converter={StaticResource HextoColorConverter}}"> | |
| 118 | 新增: <!--颜色--> | |
| 119 | 新增: </Border> | |
| 120 | 新增: <Border Grid.Column="1"> | |
| 121 | 新增: <!--图标--> | |
| 122 | 新增: <base:Img Width="20" Height="20" URL="{Binding Icon}"/> | |
| 123 | 新增: </Border> | |
| 124 | 新增: <Border Grid.Column="2" Margin="5,0,0,0"> | |
| 125 | 新增: <!--名称--> | |
| 126 | 新增: <TextBlock Foreground="#5c5c5c" VerticalAlignment="Center" Text="{Binding Name}"/> | |
| 127 | 新增: </Border> | |
| 128 | 新增: <Border Grid.Column="3"> | |
| 129 | 新增: <!--总计和百分比--> | |
| 130 | 新增: <TextBlock FontSize="12" Margin="5,0,0,0" Foreground="#FF8A8A8A" VerticalAlignment="Center" Text="{Binding Text}"/> | |
| 131 | 新增: | |
| 132 | 新增: </Border> | |
| 133 | 新增: | |
| 134 | 新增: </Grid> | |
| 135 | 新增: </Border> | |
| 136 | 新增: | |
| 137 | 新增: </WrapPanel> | |
| 138 | 新增: </DataTemplate> | |
| 139 | 新增: </ListView.ItemTemplate> | |
| 140 | 新增: </ListView> | |
| 149 | 141 | </Grid> |
| 150 | 142 | </Grid> |
| 151 | 143 | </Grid> |
| 152 | 删除: </Border> | |
| 144 | 新增: </Grid> | |
| 153 | 145 | |
| 154 | 146 | <ControlTemplate.Triggers> |
| 155 | 147 | <MultiTrigger> |
| @@ -160,18 +152,18 @@ | ||
| 160 | 152 | <Setter Property="Visibility" Value="Visible" TargetName="ColumnEmpty"/> |
| 161 | 153 | <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnMain"/> |
| 162 | 154 | </MultiTrigger> |
| 163 | 删除: | |
| 155 | 新增: | |
| 164 | 156 | <Trigger Property="ChartsType" |
| 165 | 157 | Value="HorizontalA"> |
| 166 | 158 | <Setter TargetName="HorizontalA" Property="Visibility" Value="Visible"/> |
| 167 | 159 | </Trigger> |
| 168 | 160 | <Trigger Property="ChartsType" |
| 169 | 161 | Value="Card"> |
| 170 | 删除: <Setter TargetName="Card" Property="Visibility" Value="Visible"/> | |
| 162 | 新增: <Setter TargetName="CardContainer" Property="Visibility" Value="Visible"/> | |
| 171 | 163 | </Trigger> |
| 172 | 164 | <Trigger Property="ChartsType" |
| 173 | 165 | Value="Month"> |
| 174 | 删除: <Setter TargetName="Month" Property="Visibility" Value="Visible"/> | |
| 166 | 新增: <Setter TargetName="MonthContainer" Property="Visibility" Value="Visible"/> | |
| 175 | 167 | </Trigger> |
| 176 | 168 | <Trigger Property="ChartsType" |
| 177 | 169 | Value="Column"> |
| @@ -12,19 +12,19 @@ | ||
| 12 | 12 | <Setter Property="Template"> |
| 13 | 13 | <Setter.Value> |
| 14 | 14 | <ControlTemplate TargetType="{x:Type local:ChartsItemTypeA}"> |
| 15 | 删除: <Border Background="{TemplateBinding Background}"> | |
| 16 | 删除: <Grid> | |
| 17 | 删除: <Grid x:Name="Normal"> | |
| 18 | 删除: <Grid.ColumnDefinitions> | |
| 19 | 删除: <ColumnDefinition Width="auto"/> | |
| 20 | 删除: <ColumnDefinition Width="*"/> | |
| 21 | 删除: </Grid.ColumnDefinitions> | |
| 22 | 删除: <Grid Margin="0,0,10,0"> | |
| 23 | 删除: <Border x:Name="IconBorder" BorderBrush="Transparent" BorderThickness="2" Background="#f3f3f3" CornerRadius="6" Width="50" Height="50" HorizontalAlignment="Left"> | |
| 24 | 删除: <Image x:Name="IconObj" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
| 25 | 删除: </Border> | |
| 26 | 删除: </Grid> | |
| 27 | 删除: <!--<Grid Grid.Column="1" x:Name="ValueContainer" VerticalAlignment="Center" > | |
| 15 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 16 | 新增: <Grid Background="{TemplateBinding Background}"> | |
| 17 | 新增: <Grid x:Name="Normal"> | |
| 18 | 新增: <Grid.ColumnDefinitions> | |
| 19 | 新增: <ColumnDefinition Width="auto"/> | |
| 20 | 新增: <ColumnDefinition Width="*"/> | |
| 21 | 新增: </Grid.ColumnDefinitions> | |
| 22 | 新增: <Grid Margin="0,0,10,0"> | |
| 23 | 新增: <Border x:Name="IconBorder" BorderBrush="Transparent" BorderThickness="2" Background="#f3f3f3" CornerRadius="6" Width="50" Height="50" HorizontalAlignment="Left"> | |
| 24 | 新增: <Image x:Name="IconObj" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
| 25 | 新增: </Border> | |
| 26 | 新增: </Grid> | |
| 27 | 新增: <!--<Grid Grid.Column="1" x:Name="ValueContainer" VerticalAlignment="Center" > | |
| 28 | 28 | <Grid.RowDefinitions> |
| 29 | 29 | <RowDefinition Height="*"/> |
| 30 | 30 | <RowDefinition Height="*"/> |
| @@ -50,10 +50,10 @@ | ||
| 50 | 50 | <TextBlock Grid.Column="1" x:Name="ValueTextObj" VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/> |
| 51 | 51 | </Grid> |
| 52 | 52 | </Grid>--> |
| 53 | 删除: <StackPanel Grid.Column="1" x:Name="ValueContainer" VerticalAlignment="Center" > | |
| 54 | 删除: <TextBlock x:Name="NameTextObj" Foreground="#5c5c5c" HorizontalAlignment="Left"/> | |
| 55 | 删除: <StackPanel Orientation="Horizontal" > | |
| 56 | 删除: <Rectangle | |
| 53 | 新增: <StackPanel Grid.Column="1" x:Name="ValueContainer" VerticalAlignment="Center" > | |
| 54 | 新增: <TextBlock x:Name="NameTextObj" Foreground="#5c5c5c" HorizontalAlignment="Left"/> | |
| 55 | 新增: <StackPanel Orientation="Horizontal" > | |
| 56 | 新增: <Rectangle | |
| 57 | 57 | x:Name="ValueBlockObj" |
| 58 | 58 | RadiusX="4" |
| 59 | 59 | RadiusY="4" |
| @@ -63,27 +63,27 @@ | ||
| 63 | 63 | HorizontalAlignment="Left" |
| 64 | 64 | /> |
| 65 | 65 | |
| 66 | 删除: <TextBlock x:Name="ValueTextObj" VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/> | |
| 67 | 删除: </StackPanel> | |
| 66 | 新增: <TextBlock x:Name="ValueTextObj" VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/> | |
| 68 | 67 | </StackPanel> |
| 68 | 新增: </StackPanel> | |
| 69 | 69 | |
| 70 | 删除: </Grid> | |
| 70 | 新增: </Grid> | |
| 71 | 71 | |
| 72 | 删除: <Grid x:Name="Loading" Visibility="Collapsed"> | |
| 73 | 删除: <Grid.ColumnDefinitions> | |
| 74 | 删除: <ColumnDefinition Width="auto"/> | |
| 75 | 删除: <ColumnDefinition Width="*"/> | |
| 76 | 删除: </Grid.ColumnDefinitions> | |
| 77 | 删除: <Grid Margin="0,0,10,0"> | |
| 72 | 新增: <Grid x:Name="Loading" Visibility="Collapsed"> | |
| 73 | 新增: <Grid.ColumnDefinitions> | |
| 74 | 新增: <ColumnDefinition Width="auto"/> | |
| 75 | 新增: <ColumnDefinition Width="*"/> | |
| 76 | 新增: </Grid.ColumnDefinitions> | |
| 77 | 新增: <Grid Margin="0,0,10,0"> | |
| 78 | 78 | |
| 79 | 删除: <base:Placeholder CornerRadius="6" Width="50" Height="50" HorizontalAlignment="Left"> | |
| 80 | 删除: <!--<Rectangle Height="25" Fill="" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center"/>--> | |
| 81 | 删除: </base:Placeholder> | |
| 82 | 删除: </Grid> | |
| 83 | 删除: <StackPanel Grid.Column="1" VerticalAlignment="Center" > | |
| 84 | 删除: <base:Placeholder Width="100" Height="12" HorizontalAlignment="Left" Margin="0,0,0,6"/> | |
| 85 | 删除: <StackPanel Orientation="Horizontal" > | |
| 86 | 删除: <Rectangle | |
| 79 | 新增: <base:Placeholder CornerRadius="6" Width="50" Height="50" HorizontalAlignment="Left"> | |
| 80 | 新增: <!--<Rectangle Height="25" Fill="" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center"/>--> | |
| 81 | 新增: </base:Placeholder> | |
| 82 | 新增: </Grid> | |
| 83 | 新增: <StackPanel Grid.Column="1" VerticalAlignment="Center" > | |
| 84 | 新增: <base:Placeholder Width="100" Height="12" HorizontalAlignment="Left" Margin="0,0,0,6"/> | |
| 85 | 新增: <StackPanel Orientation="Horizontal" > | |
| 86 | 新增: <Rectangle | |
| 87 | 87 | RadiusX="0" |
| 88 | 88 | RadiusY="0" |
| 89 | 89 | Fill="#e0e0e0" |
| @@ -93,11 +93,11 @@ | ||
| 93 | 93 | HorizontalAlignment="Left" |
| 94 | 94 | /> |
| 95 | 95 | |
| 96 | 删除: <!--<TextBlock VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/>--> | |
| 97 | 删除: </StackPanel> | |
| 96 | 新增: <!--<TextBlock VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/>--> | |
| 98 | 97 | </StackPanel> |
| 99 | 删除: </Grid> | |
| 98 | 新增: </StackPanel> | |
| 100 | 99 | </Grid> |
| 100 | 新增: | |
| 101 | 101 | <VisualStateManager.VisualStateGroups> |
| 102 | 102 | <VisualStateGroup x:Name="CommonStates"> |
| 103 | 103 | <VisualStateGroup.Transitions> |
| @@ -133,7 +133,9 @@ | ||
| 133 | 133 | </VisualState> |
| 134 | 134 | </VisualStateGroup> |
| 135 | 135 | </VisualStateManager.VisualStateGroups> |
| 136 | 删除: </Border> | |
| 136 | 新增: </Grid> | |
| 137 | 新增: | |
| 138 | 新增: <!--</Border>--> | |
| 137 | 139 | |
| 138 | 140 | <ControlTemplate.Triggers> |
| 139 | 141 | <Trigger Property="IsLoading" Value="True"> |
| @@ -12,16 +12,14 @@ | ||
| 12 | 12 | <Setter Property="Template"> |
| 13 | 13 | <Setter.Value> |
| 14 | 14 | <ControlTemplate TargetType="{x:Type local:ChartItemTypeColumn}"> |
| 15 | 删除: <Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 16 | 删除: <Grid> | |
| 17 | 删除: <Grid x:Name="Normal"> | |
| 18 | 删除: <Grid.RowDefinitions> | |
| 19 | 删除: <RowDefinition Height="*"/> | |
| 20 | 删除: <RowDefinition Height="30"/> | |
| 21 | 删除: </Grid.RowDefinitions> | |
| 22 | 删除: <Grid x:Name="ValueContainer" > | |
| 23 | 删除: <Border Background="Transparent" x:Name="ValueBorder"> | |
| 24 | 删除: <Rectangle | |
| 15 | 新增: | |
| 16 | 新增: <Grid x:Name="Normal" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 17 | 新增: <Grid.RowDefinitions> | |
| 18 | 新增: <RowDefinition Height="*"/> | |
| 19 | 新增: <RowDefinition Height="30"/> | |
| 20 | 新增: </Grid.RowDefinitions> | |
| 21 | 新增: <Border x:Name="ValueContainer" Background="Transparent" > | |
| 22 | 新增: <Rectangle | |
| 25 | 23 | x:Name="ValueBlockObj" |
| 26 | 24 | RadiusX="4" |
| 27 | 25 | RadiusY="4" |
| @@ -30,20 +28,8 @@ | ||
| 30 | 28 | VerticalAlignment="Bottom" |
| 31 | 29 | HorizontalAlignment="Center" |
| 32 | 30 | /> |
| 33 | 删除: </Border> | |
| 34 | 删除: </Grid> | |
| 35 | 删除: <Grid Grid.Row="1"> | |
| 36 | 删除: <TextBlock FontSize="12" HorizontalAlignment="Center" Margin="0,10,0,0" Text="{TemplateBinding ColumnName}" Foreground="#FF8A8A8A" /> | |
| 37 | 删除: </Grid> | |
| 38 | 删除: | |
| 39 | 删除: | |
| 40 | 删除: | |
| 41 | 删除: </Grid> | |
| 42 | 删除: | |
| 43 | 删除: <Grid x:Name="Loading" Visibility="Collapsed"> | |
| 44 | 删除: | |
| 45 | 删除: </Grid> | |
| 46 | 删除: </Grid> | |
| 31 | 新增: </Border> | |
| 32 | 新增: <TextBlock Grid.Row="1" FontSize="12" HorizontalAlignment="Center" Margin="0,10,0,0" Text="{TemplateBinding ColumnName}" Foreground="#FF8A8A8A" /> | |
| 47 | 33 | <VisualStateManager.VisualStateGroups> |
| 48 | 34 | <VisualStateGroup x:Name="CommonStates"> |
| 49 | 35 | <VisualStateGroup.Transitions> |
| @@ -54,8 +40,8 @@ | ||
| 54 | 40 | <VisualState x:Name="NormalState" /> |
| 55 | 41 | <VisualState x:Name="MouseOver"> |
| 56 | 42 | <Storyboard > |
| 57 | 删除: <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 58 | 删除: Storyboard.TargetName="ValueBorder" To="#7FF1F1F1" > | |
| 43 | 新增: <ColorAnimation Storyboard.TargetProperty="(Canvas.Background).(SolidColorBrush.Color)" | |
| 44 | 新增: Storyboard.TargetName="ValueContainer" To="#7FF1F1F1" > | |
| 59 | 45 | <ColorAnimation.EasingFunction> |
| 60 | 46 | <CubicEase EasingMode="EaseInOut"/> |
| 61 | 47 | </ColorAnimation.EasingFunction> |
| @@ -79,7 +65,11 @@ | ||
| 79 | 65 | </VisualState> |
| 80 | 66 | </VisualStateGroup> |
| 81 | 67 | </VisualStateManager.VisualStateGroups> |
| 82 | 删除: </Border> | |
| 68 | 新增: </Grid> | |
| 69 | 新增: | |
| 70 | 新增: | |
| 71 | 新增: | |
| 72 | 新增: | |
| 83 | 73 | |
| 84 | 74 | <ControlTemplate.Triggers> |
| 85 | 75 | <!--<Trigger Property="IsLoading" Value="True"> |
| @@ -11,32 +11,32 @@ | ||
| 11 | 11 | <Setter Property="Template"> |
| 12 | 12 | <Setter.Value> |
| 13 | 13 | <ControlTemplate TargetType="{x:Type local:Navigation}"> |
| 14 | 删除: <Border Background="{TemplateBinding Background}"> | |
| 15 | 删除: <Grid Margin="10"> | |
| 16 | 删除: <Grid.RowDefinitions> | |
| 17 | 删除: <RowDefinition Height="auto"/> | |
| 18 | 删除: <RowDefinition Height="*"/> | |
| 19 | 删除: <RowDefinition Height="auto"/> | |
| 14 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 15 | 新增: <Grid Margin="10"> | |
| 16 | 新增: <Grid.RowDefinitions> | |
| 17 | 新增: <RowDefinition Height="auto"/> | |
| 18 | 新增: <RowDefinition Height="*"/> | |
| 19 | 新增: <RowDefinition Height="auto"/> | |
| 20 | 20 | |
| 21 | 删除: </Grid.RowDefinitions> | |
| 22 | 删除: <ContentPresenter Content="{TemplateBinding TopExtContent}"/> | |
| 23 | 删除: <Grid Grid.Row="1" Background="Transparent" x:Name="MenuGrid"> | |
| 24 | 删除: <Border x:Name="ActiveBlock" Width="5" Height="25" CornerRadius="2" Background="#2b20d9" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="9" RenderTransformOrigin="0,0"> | |
| 25 | 删除: <Border.RenderTransform> | |
| 26 | 删除: <TransformGroup> | |
| 27 | 删除: <TranslateTransform X="0" Y="0"></TranslateTransform> | |
| 28 | 删除: <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/> | |
| 29 | 删除: </TransformGroup> | |
| 30 | 删除: </Border.RenderTransform> | |
| 31 | 删除: </Border> | |
| 32 | 删除: <ScrollViewer VerticalScrollBarVisibility="Auto"> | |
| 33 | 删除: <StackPanel x:Name="ItemsPanel"/> | |
| 34 | 删除: </ScrollViewer> | |
| 35 | 删除: </Grid> | |
| 36 | 删除: | |
| 37 | 删除: <ContentPresenter Content="{TemplateBinding BottomExtContent}" Grid.Row="2"/> | |
| 21 | 新增: </Grid.RowDefinitions> | |
| 22 | 新增: <ContentPresenter Content="{TemplateBinding TopExtContent}"/> | |
| 23 | 新增: <Grid Grid.Row="1" Background="Transparent" x:Name="MenuGrid"> | |
| 24 | 新增: <Border x:Name="ActiveBlock" Width="5" Height="25" CornerRadius="2" Background="#2b20d9" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="9" RenderTransformOrigin="0,0"> | |
| 25 | 新增: <Border.RenderTransform> | |
| 26 | 新增: <TransformGroup> | |
| 27 | 新增: <TranslateTransform X="0" Y="0"></TranslateTransform> | |
| 28 | 新增: <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/> | |
| 29 | 新增: </TransformGroup> | |
| 30 | 新增: </Border.RenderTransform> | |
| 31 | 新增: </Border> | |
| 32 | 新增: <ScrollViewer VerticalScrollBarVisibility="Auto"> | |
| 33 | 新增: <StackPanel x:Name="ItemsPanel"/> | |
| 34 | 新增: </ScrollViewer> | |
| 38 | 35 | </Grid> |
| 39 | 删除: </Border> | |
| 36 | 新增: | |
| 37 | 新增: <ContentPresenter Content="{TemplateBinding BottomExtContent}" Grid.Row="2"/> | |
| 38 | 新增: </Grid> | |
| 39 | 新增: <!--</Border>--> | |
| 40 | 40 | |
| 41 | 41 | </ControlTemplate> |
| 42 | 42 | </Setter.Value> |
| @@ -38,38 +38,36 @@ | ||
| 38 | 38 | </VisualState> |
| 39 | 39 | </VisualStateGroup> |
| 40 | 40 | </VisualStateManager.VisualStateGroups> |
| 41 | 删除: <Grid Margin="5"> | |
| 42 | 删除: <!--<Rectangle x:Name="Line" Height="1" Width="auto" Fill="{DynamicResource SubBorderBrush}" Visibility="Collapsed" Margin="20,0"/>--> | |
| 43 | 删除: <Grid x:Name="Content"> | |
| 44 | 删除: <!--<Grid.ColumnDefinitions> | |
| 41 | 新增: <!--<Rectangle x:Name="Line" Height="1" Width="auto" Fill="{DynamicResource SubBorderBrush}" Visibility="Collapsed" Margin="20,0"/>--> | |
| 42 | 新增: <Grid x:Name="Content" Margin="5"> | |
| 43 | 新增: <!--<Grid.ColumnDefinitions> | |
| 45 | 44 | <ColumnDefinition Width="15"/> |
| 46 | 45 | <ColumnDefinition Width="25"/> |
| 47 | 46 | <ColumnDefinition Width="*"/> |
| 48 | 47 | <ColumnDefinition Width="44"/> |
| 49 | 48 | </Grid.ColumnDefinitions>--> |
| 50 | 删除: <!--<Rectangle x:Name="CheckMark" Width="2" Fill="{TemplateBinding IconColorBrush}" Visibility="Hidden" Margin="0,10"/>--> | |
| 51 | 删除: <!--<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">--> | |
| 52 | 删除: <!--图标--> | |
| 53 | 删除: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{Binding ElementName=Title,Path=Foreground}" VerticalAlignment="Center" Grid.Column="1" FontSize="20" RenderTransformOrigin="0.5,0.5"> | |
| 54 | 删除: <base:Icon.RenderTransform> | |
| 55 | 删除: <TransformGroup> | |
| 56 | 删除: <TranslateTransform X="0" Y="-5"/> | |
| 57 | 删除: <ScaleTransform ScaleX=".8" ScaleY=".8" CenterX=".5" CenterY=".5"/> | |
| 49 | 新增: <!--<Rectangle x:Name="CheckMark" Width="2" Fill="{TemplateBinding IconColorBrush}" Visibility="Hidden" Margin="0,10"/>--> | |
| 50 | 新增: <!--<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">--> | |
| 51 | 新增: <!--图标--> | |
| 52 | 新增: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{Binding ElementName=Title,Path=Foreground}" VerticalAlignment="Center" Grid.Column="1" FontSize="20" RenderTransformOrigin="0.5,0.5"> | |
| 53 | 新增: <base:Icon.RenderTransform> | |
| 54 | 新增: <TransformGroup> | |
| 55 | 新增: <TranslateTransform X="0" Y="-5"/> | |
| 56 | 新增: <ScaleTransform ScaleX=".8" ScaleY=".8" CenterX=".5" CenterY=".5"/> | |
| 58 | 57 | |
| 59 | 删除: </TransformGroup> | |
| 60 | 删除: <!--中心点<TranslateTransform X="0" Y="0"/>--> | |
| 61 | 删除: </base:Icon.RenderTransform> | |
| 62 | 删除: </base:Icon> | |
| 63 | 删除: <!--<base:Icon HorizontalAlignment="Center" IconType="{TemplateBinding Icon}" Foreground="Red" Grid.Column="1" FontSize="20" RenderTransformOrigin="0,0"> | |
| 58 | 新增: </TransformGroup> | |
| 59 | 新增: <!--中心点<TranslateTransform X="0" Y="0"/>--> | |
| 60 | 新增: </base:Icon.RenderTransform> | |
| 61 | 新增: </base:Icon> | |
| 62 | 新增: <!--<base:Icon HorizontalAlignment="Center" IconType="{TemplateBinding Icon}" Foreground="Red" Grid.Column="1" FontSize="20" RenderTransformOrigin="0,0"> | |
| 64 | 63 | |
| 65 | 64 | </base:Icon>--> |
| 66 | 删除: <!--标题--> | |
| 67 | 删除: <TextBlock x:Name="Title" RenderOptions.EdgeMode="Aliased" Text="{TemplateBinding Title}" Grid.Column="2" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="10" Foreground="#5c5c5c" Margin="0,5,0,0"/> | |
| 68 | 删除: <!--</StackPanel>--> | |
| 69 | 删除: <!--徽标--> | |
| 70 | 删除: <!--<TextBlock Text="{TemplateBinding BadgeText}" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,20,0"/>--> | |
| 65 | 新增: <!--标题--> | |
| 66 | 新增: <TextBlock x:Name="Title" RenderOptions.EdgeMode="Aliased" Text="{TemplateBinding Title}" Grid.Column="2" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="10" Foreground="#5c5c5c" Margin="0,5,0,0"/> | |
| 67 | 新增: <!--</StackPanel>--> | |
| 68 | 新增: <!--徽标--> | |
| 69 | 新增: <!--<TextBlock Text="{TemplateBinding BadgeText}" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,20,0"/>--> | |
| 71 | 70 | |
| 72 | 删除: </Grid> | |
| 73 | 71 | </Grid> |
| 74 | 72 | |
| 75 | 73 | </Border> |
| @@ -7,28 +7,14 @@ | ||
| 7 | 7 | <Setter Property="Template"> |
| 8 | 8 | <Setter.Value> |
| 9 | 9 | <ControlTemplate TargetType="{x:Type local:PageContainer}"> |
| 10 | 删除: <Border Background="{TemplateBinding Background}" | |
| 10 | 新增: <!--<Border Background="{TemplateBinding Background}" | |
| 11 | 11 | BorderBrush="{TemplateBinding BorderBrush}" |
| 12 | 删除: BorderThickness="{TemplateBinding BorderThickness}"> | |
| 13 | 删除: <Grid> | |
| 14 | 删除: <!--<StackPanel Height="44" Orientation="Horizontal" Panel.ZIndex="1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5,32,0,0" Visibility="{TemplateBinding TitleBarVisibility}"> | |
| 15 | 删除: <Button Style="{DynamicResource Icon}" | |
| 16 | 删除: Width="35" | |
| 17 | 删除: Height="35" | |
| 18 | 删除: Command="{TemplateBinding BackCommand}" | |
| 19 | 删除: VerticalAlignment="Center" | |
| 20 | 删除: > | |
| 21 | 删除: <base:Icon IconType="Back" | |
| 22 | 删除: VerticalAlignment="Center" | |
| 23 | 删除: FontSize="15" /> | |
| 24 | 删除: </Button> | |
| 25 | 删除: <TextBlock Text="{TemplateBinding Title}" VerticalAlignment="Center" FontSize="16" Margin="10,0,0,0"/> | |
| 26 | 删除: </StackPanel>--> | |
| 27 | 删除: <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="False"> | |
| 28 | 删除: <Frame Grid.Row="1" Content="{TemplateBinding Content}" NavigationUIVisibility="Hidden"/> | |
| 29 | 删除: </ScrollViewer> | |
| 30 | 删除: </Grid> | |
| 31 | 删除: </Border> | |
| 12 | 新增: BorderThickness="{TemplateBinding BorderThickness}" | |
| 13 | 新增: SnapsToDevicePixels="True">--> | |
| 14 | 新增: <ScrollViewer SnapsToDevicePixels="True" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="False"> | |
| 15 | 新增: <Frame x:Name="Frame" Grid.Row="1" Content="{TemplateBinding Content}" NavigationUIVisibility="Hidden"/> | |
| 16 | 新增: </ScrollViewer> | |
| 17 | 新增: <!--</Border>--> | |
| 32 | 18 | </ControlTemplate> |
| 33 | 19 | </Setter.Value> |
| 34 | 20 | </Setter> |
| @@ -11,16 +11,16 @@ | ||
| 11 | 11 | <Setter Property="Template"> |
| 12 | 12 | <Setter.Value> |
| 13 | 13 | <ControlTemplate TargetType="{x:Type local:Tabbar}"> |
| 14 | 删除: <Border Background="{TemplateBinding Background}"> | |
| 15 | 删除: <Grid> | |
| 16 | 删除: <Border x:Name="ActiveBlock" Width="35" CornerRadius="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Panel.ZIndex="9" RenderTransformOrigin="0,0"> | |
| 17 | 删除: <Border.RenderTransform> | |
| 18 | 删除: <TransformGroup> | |
| 19 | 删除: <TranslateTransform X="0" Y="0"></TranslateTransform> | |
| 20 | 删除: <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/> | |
| 21 | 删除: </TransformGroup> | |
| 22 | 删除: </Border.RenderTransform> | |
| 23 | 删除: <Path | |
| 14 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 15 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 16 | 新增: <Border x:Name="ActiveBlock" Width="35" CornerRadius="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Panel.ZIndex="9" RenderTransformOrigin="0,0"> | |
| 17 | 新增: <Border.RenderTransform> | |
| 18 | 新增: <TransformGroup> | |
| 19 | 新增: <TranslateTransform X="0" Y="0"></TranslateTransform> | |
| 20 | 新增: <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/> | |
| 21 | 新增: </TransformGroup> | |
| 22 | 新增: </Border.RenderTransform> | |
| 23 | 新增: <Path | |
| 24 | 24 | Width="15" |
| 25 | 25 | Height="15" |
| 26 | 26 | SnapsToDevicePixels="False" |
| @@ -28,15 +28,15 @@ | ||
| 28 | 28 | Stroke="#2b20d9" |
| 29 | 29 | StrokeThickness="1" |
| 30 | 30 | /> |
| 31 | 删除: </Border> | |
| 32 | 删除: <Border Height="30" Margin="0,0,0,15"> | |
| 33 | 删除: <Grid x:Name="ItemsContainer"> | |
| 34 | 删除: | |
| 35 | 删除: </Grid> | |
| 36 | 删除: <!--<StackPanel Orientation="Horizontal" x:Name="ItemsPanel" VerticalAlignment="Bottom"/>--> | |
| 37 | 删除: </Border> | |
| 38 | 删除: </Grid> | |
| 39 | 删除: </Border> | |
| 31 | 新增: </Border> | |
| 32 | 新增: <Border Height="30" Margin="0,0,0,15"> | |
| 33 | 新增: <Grid x:Name="ItemsContainer"> | |
| 34 | 新增: | |
| 35 | 新增: </Grid> | |
| 36 | 新增: <!--<StackPanel Orientation="Horizontal" x:Name="ItemsPanel" VerticalAlignment="Bottom"/>--> | |
| 37 | 新增: </Border> | |
| 38 | 新增: </Grid> | |
| 39 | 新增: <!--</Border>--> | |
| 40 | 40 | |
| 41 | 41 | </ControlTemplate> |
| 42 | 42 | </Setter.Value> |
| @@ -2,17 +2,16 @@ | ||
| 2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | 3 | xmlns:w="clr-namespace:UI.Controls.Window"> |
| 4 | 4 | <Style TargetType="{x:Type w:HideWindow}"> |
| 5 | 删除: <Setter Property="Background" Value="Transparent" /> | |
| 5 | 新增: <!--<Setter Property="Background" Value="Transparent" />--> | |
| 6 | 6 | <Setter Property="ResizeMode" Value="NoResize" /> |
| 7 | 7 | <Setter Property="Width" Value="0" /> |
| 8 | 8 | <Setter Property="Height" Value="0" /> |
| 9 | 9 | <Setter Property="Visibility" Value="Collapsed" /> |
| 10 | 删除: <Setter Property="Template"> | |
| 10 | 新增: <!--<Setter Property="Template"> | |
| 11 | 11 | <Setter.Value> |
| 12 | 12 | <ControlTemplate TargetType="{x:Type w:HideWindow}"> |
| 13 | 删除: <TextBlock Text="test" Foreground="Red"/> | |
| 14 | 13 | </ControlTemplate> |
| 15 | 14 | </Setter.Value> |
| 16 | 删除: </Setter> | |
| 15 | 新增: </Setter>--> | |
| 17 | 16 | </Style> |
| 18 | 17 | </ResourceDictionary> |
| 文件末尾没有换行 | ||
| @@ -41,7 +41,12 @@ namespace UI.ViewModels | ||
| 41 | 41 | LoadData(); |
| 42 | 42 | |
| 43 | 43 | } |
| 44 | 删除: | |
| 44 | 新增: public override void Dispose() | |
| 45 | 新增: { | |
| 46 | 新增: base.Dispose(); | |
| 47 | 新增: Data = null; | |
| 48 | 新增: AppList = null; | |
| 49 | 新增: } | |
| 45 | 50 | private void OnDel(object obj) |
| 46 | 51 | { |
| 47 | 52 | if (SelectedItem != null) |
| @@ -52,6 +52,13 @@ namespace UI.ViewModels | ||
| 52 | 52 | |
| 53 | 53 | PropertyChanged += CategoryPageVM_PropertyChanged; |
| 54 | 54 | } |
| 55 | 新增: | |
| 56 | 新增: public override void Dispose() | |
| 57 | 新增: { | |
| 58 | 新增: base.Dispose(); | |
| 59 | 新增: PropertyChanged -= CategoryPageVM_PropertyChanged; | |
| 60 | 新增: Data = null; | |
| 61 | 新增: } | |
| 55 | 62 | private void OnDel(object obj) |
| 56 | 63 | { |
| 57 | 64 | if (SelectedItem == null) |
| @@ -100,7 +107,7 @@ namespace UI.ViewModels | ||
| 100 | 107 | mainVM.Toast("请选择一个分类图标", Controls.Window.ToastType.Error, Controls.Base.IconTypes.CriticalErrorSolid); |
| 101 | 108 | return; |
| 102 | 109 | } |
| 103 | 删除: if(new FileInfo(EditIconFile).Length> 1000000) | |
| 110 | 新增: if (new FileInfo(EditIconFile).Length > 1000000) | |
| 104 | 111 | { |
| 105 | 112 | mainVM.Toast("图标文件不能超过1MB", Controls.Window.ToastType.Error, Controls.Base.IconTypes.CriticalErrorSolid); |
| 106 | 113 | return; |
| @@ -62,7 +62,13 @@ namespace UI.ViewModels | ||
| 62 | 62 | |
| 63 | 63 | PropertyChanged += ChartPageVM_PropertyChanged; |
| 64 | 64 | } |
| 65 | 删除: | |
| 65 | 新增: public override void Dispose() | |
| 66 | 新增: { | |
| 67 | 新增: base.Dispose(); | |
| 68 | 新增: PropertyChanged -= ChartPageVM_PropertyChanged; | |
| 69 | 新增: Data = null; | |
| 70 | 新增: TopData = null; | |
| 71 | 新增: } | |
| 66 | 72 | private void OnTodetailCommand(object obj) |
| 67 | 73 | { |
| 68 | 74 | var data = obj as ChartsDataModel; |
| @@ -8,46 +8,44 @@ | ||
| 8 | 8 | d:DesignHeight="450" d:DesignWidth="800" |
| 9 | 9 | Title="ChartPage"> |
| 10 | 10 | |
| 11 | 删除: <Grid> | |
| 12 | 删除: <StackPanel Margin="20"> | |
| 13 | 删除: <TextBlock Text="统计" FontSize="18" Margin="0,5,0,20"/> | |
| 14 | 删除: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/> | |
| 15 | 删除: <Border Margin="0,15,0,0"> | |
| 16 | 删除: <Grid> | |
| 17 | 删除: <!--按天--> | |
| 18 | 删除: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}"> | |
| 19 | 删除: <select:DateSelect Date="{Binding Date,Mode=TwoWay}"/> | |
| 20 | 删除: </base:View> | |
| 11 | 新增: <StackPanel Margin="20"> | |
| 12 | 新增: <TextBlock Text="统计" FontSize="18" Margin="0,5,0,20"/> | |
| 13 | 新增: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/> | |
| 14 | 新增: <Border Margin="0,15,0,0"> | |
| 15 | 新增: <Grid> | |
| 16 | 新增: <!--按天--> | |
| 17 | 新增: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}"> | |
| 18 | 新增: <select:DateSelect Date="{Binding Date,Mode=TwoWay}"/> | |
| 19 | 新增: </base:View> | |
| 21 | 20 | |
| 22 | 删除: <!--按周--> | |
| 23 | 删除: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}"> | |
| 24 | 删除: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 25 | 删除: <select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/> | |
| 26 | 删除: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/> | |
| 27 | 删除: </StackPanel> | |
| 28 | 删除: </base:View> | |
| 29 | 删除: <!--按月--> | |
| 30 | 删除: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}"> | |
| 31 | 删除: <select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> | |
| 21 | 新增: <!--按周--> | |
| 22 | 新增: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}"> | |
| 23 | 新增: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 24 | 新增: <select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/> | |
| 25 | 新增: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/> | |
| 26 | 新增: </StackPanel> | |
| 27 | 新增: </base:View> | |
| 28 | 新增: <!--按月--> | |
| 29 | 新增: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}"> | |
| 30 | 新增: <select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> | |
| 32 | 31 | |
| 33 | 删除: </base:View> | |
| 34 | 删除: <!--按年--> | |
| 35 | 删除: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}"> | |
| 36 | 删除: <select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> | |
| 32 | 新增: </base:View> | |
| 33 | 新增: <!--按年--> | |
| 34 | 新增: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}"> | |
| 35 | 新增: <select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> | |
| 37 | 36 | |
| 38 | 删除: </base:View> | |
| 39 | 删除: </Grid> | |
| 40 | 删除: </Border> | |
| 41 | 删除: <TextBlock Text="分类" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> | |
| 37 | 新增: </base:View> | |
| 38 | 新增: </Grid> | |
| 39 | 新增: </Border> | |
| 40 | 新增: <TextBlock Text="分类" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> | |
| 42 | 41 | |
| 43 | 删除: <Border Margin="0,15,0,0" Height="360" Width="680" HorizontalAlignment="Left" Background="White" Padding="20" CornerRadius="10"> | |
| 44 | 删除: <charts:Charts NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding Data}"/> | |
| 42 | 新增: <Border Margin="0,15,0,0" Height="360" Width="680" HorizontalAlignment="Left" Background="White" Padding="20" CornerRadius="10"> | |
| 43 | 新增: <charts:Charts NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding Data}"/> | |
| 45 | 44 | |
| 46 | 删除: </Border> | |
| 47 | 删除: <TextBlock Text="最为频繁的应用" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> | |
| 48 | 删除: <Border Margin="0,10,0,0" Width="680" HorizontalAlignment="Left" Background="White" Padding="20" CornerRadius="10"> | |
| 49 | 删除: <charts:Charts Height="300" Data="{Binding TopData}" ChartsType="HorizontalA" ClickCommand="{Binding ToDetailCommand}"/> | |
| 50 | 删除: </Border> | |
| 51 | 删除: </StackPanel> | |
| 52 | 删除: </Grid> | |
| 45 | 新增: </Border> | |
| 46 | 新增: <TextBlock Text="最为频繁的应用" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> | |
| 47 | 新增: <Border Margin="0,10,0,0" Width="680" HorizontalAlignment="Left" Background="White" Padding="20" CornerRadius="10"> | |
| 48 | 新增: <charts:Charts Height="300" Data="{Binding TopData}" ChartsType="HorizontalA" ClickCommand="{Binding ToDetailCommand}"/> | |
| 49 | 新增: </Border> | |
| 50 | 新增: </StackPanel> | |
| 53 | 51 | </Page> |
| @@ -26,24 +26,6 @@ namespace UI.Views | ||
| 26 | 26 | { |
| 27 | 27 | InitializeComponent(); |
| 28 | 28 | DataContext = vm; |
| 29 | 删除: | |
| 30 | 删除: //var data = new List<ChartsDataModel>(); | |
| 31 | 删除: //data.Add(new ChartsDataModel() | |
| 32 | 删除: //{ | |
| 33 | 删除: // Name="分布", | |
| 34 | 删除: // //Color= "#2f69fe", | |
| 35 | 删除: // Values = new double[] { 10, 20, 30, 40,30,403,30,50,43,43,23,65,87,43,23,23 } | |
| 36 | 删除: //}); | |
| 37 | 删除: //data.Add(new ChartsDataModel() | |
| 38 | 删除: //{ | |
| 39 | 删除: // Name = "测试", | |
| 40 | 删除: | |
| 41 | 删除: // //Color = "#da4d07", | |
| 42 | 删除: // Values = new double[] { 110, 30, 10, 20, 330, 203, 3, 500, 53, 93, 23, 65, 87, 43, 23, 23 } | |
| 43 | 删除: //}); | |
| 44 | 删除: | |
| 45 | 删除: | |
| 46 | 删除: //test.Data = data; | |
| 47 | 29 | } |
| 48 | 30 | } |
| 49 | 31 | } |
| @@ -8,21 +8,19 @@ | ||
| 8 | 8 | mc:Ignorable="d" |
| 9 | 9 | d:DesignHeight="450" d:DesignWidth="800" |
| 10 | 10 | Title="IndexPage"> |
| 11 | 新增: <Grid Margin="20"> | |
| 12 | 新增: <Grid.RowDefinitions> | |
| 13 | 新增: <RowDefinition Height="auto"/> | |
| 14 | 新增: <RowDefinition Height="auto"/> | |
| 15 | 新增: <RowDefinition Height="*"/> | |
| 11 | 16 | |
| 12 | 删除: <Grid x:Name="t2"> | |
| 13 | 删除: <Grid Margin="20"> | |
| 14 | 删除: <Grid.RowDefinitions> | |
| 15 | 删除: <RowDefinition Height="auto"/> | |
| 16 | 删除: <RowDefinition Height="auto"/> | |
| 17 | 删除: <RowDefinition Height="*"/> | |
| 17 | 新增: </Grid.RowDefinitions> | |
| 18 | 新增: <TextBlock Text="详细" FontSize="18" Margin="0,5,0,20"/> | |
| 18 | 19 | |
| 19 | 删除: </Grid.RowDefinitions> | |
| 20 | 删除: <TextBlock Text="详细" FontSize="18" Margin="0,5,0,20"/> | |
| 20 | 新增: <Tabbar:Tabbar Width="245" HorizontalAlignment="Left" Grid.Row="1" Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/> | |
| 21 | 21 | |
| 22 | 删除: <Tabbar:Tabbar Width="245" HorizontalAlignment="Left" Grid.Row="1" Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/> | |
| 23 | 22 | |
| 24 | 删除: | |
| 25 | 删除: <TabControl | |
| 23 | 新增: <TabControl | |
| 26 | 24 | Grid.Row="2" |
| 27 | 25 | SelectedIndex="{Binding TabbarSelectedIndex}" |
| 28 | 26 | BorderThickness="0" |
| @@ -30,57 +28,56 @@ | ||
| 30 | 28 | Padding="0" |
| 31 | 29 | Background="Transparent" |
| 32 | 30 | > |
| 33 | 删除: <TabControl.Resources> | |
| 34 | 删除: <Style TargetType="TabItem"> | |
| 35 | 删除: <Setter Property="Template"> | |
| 36 | 删除: <Setter.Value> | |
| 37 | 删除: <ControlTemplate TargetType="TabItem"> | |
| 38 | 删除: </ControlTemplate> | |
| 39 | 删除: </Setter.Value> | |
| 40 | 删除: </Setter> | |
| 41 | 删除: </Style> | |
| 31 | 新增: <TabControl.Resources> | |
| 32 | 新增: <Style TargetType="TabItem"> | |
| 33 | 新增: <Setter Property="Template"> | |
| 34 | 新增: <Setter.Value> | |
| 35 | 新增: <ControlTemplate TargetType="TabItem"> | |
| 36 | 新增: </ControlTemplate> | |
| 37 | 新增: </Setter.Value> | |
| 38 | 新增: </Setter> | |
| 39 | 新增: </Style> | |
| 42 | 40 | |
| 43 | 删除: </TabControl.Resources> | |
| 44 | 删除: <TabItem> | |
| 45 | 删除: <Grid> | |
| 46 | 删除: <Grid.RowDefinitions> | |
| 47 | 删除: <RowDefinition Height="auto"/> | |
| 48 | 删除: <RowDefinition Height="*"/> | |
| 41 | 新增: </TabControl.Resources> | |
| 42 | 新增: <TabItem> | |
| 43 | 新增: <Grid> | |
| 44 | 新增: <Grid.RowDefinitions> | |
| 45 | 新增: <RowDefinition Height="auto"/> | |
| 46 | 新增: <RowDefinition Height="*"/> | |
| 49 | 47 | |
| 50 | 删除: </Grid.RowDefinitions> | |
| 51 | 删除: <DatePickerBar:DatePickerBar SelectedDate="{Binding DayDate,Mode=TwoWay}" ShowType="Day"/> | |
| 48 | 新增: </Grid.RowDefinitions> | |
| 49 | 新增: <DatePickerBar:DatePickerBar SelectedDate="{Binding DayDate,Mode=TwoWay}" ShowType="Day"/> | |
| 52 | 50 | |
| 53 | 删除: <Charts:Charts Grid.Row="1" Data="{Binding Data}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 54 | 删除: </Grid> | |
| 55 | 删除: </TabItem> | |
| 56 | 删除: <TabItem> | |
| 57 | 删除: <Grid> | |
| 58 | 删除: <Grid.RowDefinitions> | |
| 59 | 删除: <RowDefinition Height="auto"/> | |
| 60 | 删除: <RowDefinition Height="*"/> | |
| 51 | 新增: <Charts:Charts Grid.Row="1" Data="{Binding Data}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 52 | 新增: </Grid> | |
| 53 | 新增: </TabItem> | |
| 54 | 新增: <TabItem> | |
| 55 | 新增: <Grid> | |
| 56 | 新增: <Grid.RowDefinitions> | |
| 57 | 新增: <RowDefinition Height="auto"/> | |
| 58 | 新增: <RowDefinition Height="*"/> | |
| 61 | 59 | |
| 62 | 删除: </Grid.RowDefinitions> | |
| 63 | 删除: <DatePickerBar:DatePickerBar SelectedDate="{Binding MonthDate,Mode=TwoWay}" ShowType="Month"/> | |
| 60 | 新增: </Grid.RowDefinitions> | |
| 61 | 新增: <DatePickerBar:DatePickerBar SelectedDate="{Binding MonthDate,Mode=TwoWay}" ShowType="Month"/> | |
| 64 | 62 | |
| 65 | 删除: <Charts:Charts Grid.Row="1" Data="{Binding MonthData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 66 | 删除: </Grid> | |
| 67 | 删除: </TabItem> | |
| 68 | 删除: <TabItem> | |
| 69 | 删除: <Grid> | |
| 70 | 删除: <Grid.RowDefinitions> | |
| 71 | 删除: <RowDefinition Height="auto"/> | |
| 72 | 删除: <RowDefinition Height="*"/> | |
| 63 | 新增: <Charts:Charts Grid.Row="1" Data="{Binding MonthData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 64 | 新增: </Grid> | |
| 65 | 新增: </TabItem> | |
| 66 | 新增: <TabItem> | |
| 67 | 新增: <Grid> | |
| 68 | 新增: <Grid.RowDefinitions> | |
| 69 | 新增: <RowDefinition Height="auto"/> | |
| 70 | 新增: <RowDefinition Height="*"/> | |
| 73 | 71 | |
| 74 | 删除: </Grid.RowDefinitions> | |
| 75 | 删除: <DatePickerBar:DatePickerBar SelectedDate="{Binding YearDate,Mode=TwoWay}" ShowType="Year"/> | |
| 72 | 新增: </Grid.RowDefinitions> | |
| 73 | 新增: <DatePickerBar:DatePickerBar SelectedDate="{Binding YearDate,Mode=TwoWay}" ShowType="Year"/> | |
| 76 | 74 | |
| 77 | 删除: <Charts:Charts Grid.Row="1" Data="{Binding YearData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 78 | 删除: </Grid> | |
| 79 | 删除: </TabItem> | |
| 80 | 删除: </TabControl> | |
| 75 | 新增: <Charts:Charts Grid.Row="1" Data="{Binding YearData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 76 | 新增: </Grid> | |
| 77 | 新增: </TabItem> | |
| 78 | 新增: </TabControl> | |
| 81 | 79 | |
| 82 | 80 | |
| 83 | 81 | |
| 84 | 删除: </Grid> | |
| 85 | 82 | </Grid> |
| 86 | 83 | </Page> |
| @@ -11,38 +11,37 @@ | ||
| 11 | 11 | xmlns:btn="clr-namespace:UI.Controls.Button" |
| 12 | 12 | xmlns:base="clr-namespace:UI.Controls.Base" xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar"> |
| 13 | 13 | |
| 14 | 删除: <Grid> | |
| 15 | 删除: <StackPanel Margin="20"> | |
| 16 | 删除: <TextBlock Text="查看" FontSize="18" Margin="0,0,0,20"/> | |
| 14 | 新增: <StackPanel Margin="20"> | |
| 15 | 新增: <TextBlock Text="查看" FontSize="18" Margin="0,0,0,20"/> | |
| 17 | 16 | |
| 18 | 删除: <Border | |
| 17 | 新增: <Border | |
| 19 | 18 | Background="White" |
| 20 | 19 | CornerRadius="12" |
| 21 | 20 | Padding="0,20"> |
| 22 | 删除: <Border.ContextMenu> | |
| 23 | 删除: <ContextMenu> | |
| 24 | 删除: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="open exe" Header="启动应用"/> | |
| 25 | 删除: <Separator/> | |
| 26 | 删除: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="copy processname" Header="复制应用进程名称"/> | |
| 27 | 删除: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="copy process file" Header="复制应用文件路径"/> | |
| 28 | 删除: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="open dir" Header="打开应用所在目录"/> | |
| 29 | 删除: <!--<Separator/>--> | |
| 30 | 删除: <!--<MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="geticon" Header="重新获取图标"/>--> | |
| 31 | 删除: | |
| 32 | 删除: </ContextMenu> | |
| 33 | 删除: </Border.ContextMenu> | |
| 34 | 删除: <Grid> | |
| 35 | 删除: <Grid.ColumnDefinitions> | |
| 36 | 删除: <ColumnDefinition Width="100"/> | |
| 37 | 删除: <ColumnDefinition Width="9*"/> | |
| 38 | 删除: <ColumnDefinition Width="3*"/> | |
| 39 | 删除: | |
| 40 | 删除: </Grid.ColumnDefinitions> | |
| 41 | 删除: <base:Img URL="{Binding App.IconFile}" Width="25" Height="25" HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
| 42 | 删除: <!--<Image Source="{Binding Process.Icon}" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center"/>--> | |
| 43 | 删除: | |
| 44 | 删除: <StackPanel Grid.Column="1" VerticalAlignment="Center"> | |
| 45 | 删除: <!--<StackPanel Orientation="Horizontal"> | |
| 21 | 新增: <Border.ContextMenu> | |
| 22 | 新增: <ContextMenu> | |
| 23 | 新增: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="open exe" Header="启动应用"/> | |
| 24 | 新增: <Separator/> | |
| 25 | 新增: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="copy processname" Header="复制应用进程名称"/> | |
| 26 | 新增: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="copy process file" Header="复制应用文件路径"/> | |
| 27 | 新增: <MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="open dir" Header="打开应用所在目录"/> | |
| 28 | 新增: <!--<Separator/>--> | |
| 29 | 新增: <!--<MenuItem Command="{Binding InfoMenuActionCommand}" CommandParameter="geticon" Header="重新获取图标"/>--> | |
| 30 | 新增: | |
| 31 | 新增: </ContextMenu> | |
| 32 | 新增: </Border.ContextMenu> | |
| 33 | 新增: <Grid> | |
| 34 | 新增: <Grid.ColumnDefinitions> | |
| 35 | 新增: <ColumnDefinition Width="100"/> | |
| 36 | 新增: <ColumnDefinition Width="9*"/> | |
| 37 | 新增: <ColumnDefinition Width="3*"/> | |
| 38 | 新增: | |
| 39 | 新增: </Grid.ColumnDefinitions> | |
| 40 | 新增: <base:Img URL="{Binding App.IconFile}" Width="25" Height="25" HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
| 41 | 新增: <!--<Image Source="{Binding Process.Icon}" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center"/>--> | |
| 42 | 新增: | |
| 43 | 新增: <StackPanel Grid.Column="1" VerticalAlignment="Center"> | |
| 44 | 新增: <!--<StackPanel Orientation="Horizontal"> | |
| 46 | 45 | <Border Background="#f51837" Padding="10,5" CornerRadius="4" Margin="0,0,4,0" VerticalAlignment="Center" Visibility="{Binding CancelBlockBtnVisibility}" ToolTip="该进程将不再统计使用时长"> |
| 47 | 46 | <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> |
| 48 | 47 | <base:Icon IconType="Blocked" FontSize="12" VerticalAlignment="Center" Foreground="White"/> |
| @@ -53,20 +52,20 @@ | ||
| 53 | 52 | <TextBlock ToolTip="进程名" Text="{Binding ProcessName}" FontSize="12" Foreground="Gray" VerticalAlignment="Center" Margin="10,0,0,0"/> |
| 54 | 53 | |
| 55 | 54 | </StackPanel>--> |
| 56 | 删除: <Border Background="#f51837" Padding="10,5" CornerRadius="4" Margin="0,0,0,5" VerticalAlignment="Center" HorizontalAlignment="Left" Visibility="{Binding CancelBlockBtnVisibility}" ToolTip="该应用将不再统计使用时长"> | |
| 57 | 删除: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 58 | 删除: <base:Icon IconType="Blocked" FontSize="12" VerticalAlignment="Center" Foreground="White"/> | |
| 59 | 删除: <TextBlock Text="已被忽略" Foreground="White" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 60 | 删除: </StackPanel> | |
| 61 | 删除: </Border> | |
| 55 | 新增: <Border Background="#f51837" Padding="10,5" CornerRadius="4" Margin="0,0,0,5" VerticalAlignment="Center" HorizontalAlignment="Left" Visibility="{Binding CancelBlockBtnVisibility}" ToolTip="该应用将不再统计使用时长"> | |
| 56 | 新增: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 57 | 新增: <base:Icon IconType="Blocked" FontSize="12" VerticalAlignment="Center" Foreground="White"/> | |
| 58 | 新增: <TextBlock Text="已被忽略" Foreground="White" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 59 | 新增: </StackPanel> | |
| 60 | 新增: </Border> | |
| 62 | 61 | |
| 63 | 删除: <TextBlock ToolTip="应用描述" Grid.Column="1" Text="{Binding App.Description}" FontSize="18" VerticalAlignment="Center" TextWrapping="WrapWithOverflow"/> | |
| 62 | 新增: <TextBlock ToolTip="应用描述" Grid.Column="1" Text="{Binding App.Description}" FontSize="18" VerticalAlignment="Center" TextWrapping="WrapWithOverflow"/> | |
| 64 | 63 | |
| 65 | 删除: <TextBlock ToolTip="应用进程名称" Text="{Binding App.Name}" FontSize="12" Foreground="Gray" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,5,0,0"/> | |
| 66 | 删除: <TextBlock ToolTip="应用文件路径" Foreground="Gray" Text="{Binding App.File}" Margin="0,5,0,0" TextWrapping="WrapWithOverflow"/> | |
| 67 | 删除: <!--分类--> | |
| 64 | 新增: <TextBlock ToolTip="应用进程名称" Text="{Binding App.Name}" FontSize="12" Foreground="Gray" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,5,0,0"/> | |
| 65 | 新增: <TextBlock ToolTip="应用文件路径" Foreground="Gray" Text="{Binding App.File}" Margin="0,5,0,0" TextWrapping="WrapWithOverflow"/> | |
| 66 | 新增: <!--分类--> | |
| 68 | 67 | |
| 69 | 删除: <!--<Border Margin="0,10,0,0" Background="#f9f9f9" HorizontalAlignment="Left" Padding="5" CornerRadius="5"> | |
| 68 | 新增: <!--<Border Margin="0,10,0,0" Background="#f9f9f9" HorizontalAlignment="Left" Padding="5" CornerRadius="5"> | |
| 70 | 69 | |
| 71 | 70 | <StackPanel Orientation="Horizontal"> |
| 72 | 71 | <base:Img URL="{Binding Process.Data.AppModel.Category.IconFile}" Width="25" Height="25" VerticalAlignment="Center"/> |
| @@ -74,21 +73,21 @@ | ||
| 74 | 73 | </StackPanel> |
| 75 | 74 | </Border>--> |
| 76 | 75 | |
| 77 | 删除: <base:View Condition="not null" Value="{Binding Category}"> | |
| 78 | 删除: <Select:Select Margin="0,10,0,0" ToolTip="分类" SelectedItem="{Binding Category,Mode=TwoWay}" Options="{Binding Categorys}"/> | |
| 76 | 新增: <base:View Condition="not null" Value="{Binding Category}"> | |
| 77 | 新增: <Select:Select Margin="0,10,0,0" ToolTip="分类" SelectedItem="{Binding Category,Mode=TwoWay}" Options="{Binding Categorys}"/> | |
| 79 | 78 | |
| 80 | 删除: </base:View> | |
| 79 | 新增: </base:View> | |
| 81 | 80 | |
| 82 | 删除: </StackPanel> | |
| 81 | 新增: </StackPanel> | |
| 83 | 82 | |
| 84 | 删除: <StackPanel Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,20,0"> | |
| 85 | 删除: <btn:Button Command="{Binding BlockActionCommand}" CommandParameter="block" Width="120" Visibility="{Binding BlockBtnVisibility}" Icon="Blocked">忽略此应用</btn:Button> | |
| 86 | 删除: <btn:Button Command="{Binding BlockActionCommand}" CommandParameter="unblock" Width="120" Visibility="{Binding CancelBlockBtnVisibility}" Icon="Remove">取消忽略</btn:Button> | |
| 83 | 新增: <StackPanel Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,20,0"> | |
| 84 | 新增: <btn:Button Command="{Binding BlockActionCommand}" CommandParameter="block" Width="120" Visibility="{Binding BlockBtnVisibility}" Icon="Blocked">忽略此应用</btn:Button> | |
| 85 | 新增: <btn:Button Command="{Binding BlockActionCommand}" CommandParameter="unblock" Width="120" Visibility="{Binding CancelBlockBtnVisibility}" Icon="Remove">取消忽略</btn:Button> | |
| 87 | 86 | |
| 88 | 删除: </StackPanel> | |
| 89 | 删除: </Grid> | |
| 90 | 删除: </Border> | |
| 91 | 删除: <!--<TextBlock Text="今日数据" FontSize="14" Margin="0,20,0,0"/> | |
| 87 | 新增: </StackPanel> | |
| 88 | 新增: </Grid> | |
| 89 | 新增: </Border> | |
| 90 | 新增: <!--<TextBlock Text="今日数据" FontSize="14" Margin="0,20,0,0"/> | |
| 92 | 91 | |
| 93 | 92 | <Border |
| 94 | 93 | Background="White" |
| @@ -109,77 +108,76 @@ | ||
| 109 | 108 | |
| 110 | 109 | </StackPanel> |
| 111 | 110 | </Border>--> |
| 112 | 删除: <TextBlock Text="统计" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 113 | 删除: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/> | |
| 114 | 删除: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="White" Padding="20,10" CornerRadius="10"> | |
| 115 | 删除: <StackPanel> | |
| 116 | 删除: | |
| 117 | 删除: | |
| 118 | 删除: <Grid Margin="0,15,0,0"> | |
| 119 | 删除: <!--按天--> | |
| 120 | 删除: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}"> | |
| 121 | 删除: <Select:DateSelect Date="{Binding ChartDate,Mode=TwoWay}"/> | |
| 122 | 删除: </base:View> | |
| 123 | 删除: | |
| 124 | 删除: <!--按周--> | |
| 125 | 删除: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}"> | |
| 126 | 删除: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 127 | 删除: <Select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/> | |
| 128 | 删除: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/> | |
| 129 | 删除: </StackPanel> | |
| 130 | 删除: </base:View> | |
| 131 | 删除: <!--按月--> | |
| 132 | 删除: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}"> | |
| 133 | 删除: <Select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> | |
| 111 | 新增: <TextBlock Text="统计" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 112 | 新增: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/> | |
| 113 | 新增: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="White" Padding="20,10" CornerRadius="10"> | |
| 114 | 新增: <StackPanel> | |
| 115 | 新增: | |
| 116 | 新增: | |
| 117 | 新增: <Grid Margin="0,15,0,0"> | |
| 118 | 新增: <!--按天--> | |
| 119 | 新增: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}"> | |
| 120 | 新增: <Select:DateSelect Date="{Binding ChartDate,Mode=TwoWay}"/> | |
| 121 | 新增: </base:View> | |
| 122 | 新增: | |
| 123 | 新增: <!--按周--> | |
| 124 | 新增: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}"> | |
| 125 | 新增: <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> | |
| 126 | 新增: <Select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/> | |
| 127 | 新增: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/> | |
| 128 | 新增: </StackPanel> | |
| 129 | 新增: </base:View> | |
| 130 | 新增: <!--按月--> | |
| 131 | 新增: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}"> | |
| 132 | 新增: <Select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> | |
| 134 | 133 | |
| 135 | 删除: </base:View> | |
| 136 | 删除: <!--按年--> | |
| 137 | 删除: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}"> | |
| 138 | 删除: <Select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> | |
| 134 | 新增: </base:View> | |
| 135 | 新增: <!--按年--> | |
| 136 | 新增: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}"> | |
| 137 | 新增: <Select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> | |
| 139 | 138 | |
| 140 | 删除: </base:View> | |
| 141 | 删除: </Grid> | |
| 142 | 删除: <Charts:Charts Height="300" NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding ChartData}" Margin="0,20,0,0"/> | |
| 139 | 新增: </base:View> | |
| 140 | 新增: </Grid> | |
| 141 | 新增: <Charts:Charts Height="300" NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding ChartData}" Margin="0,20,0,0"/> | |
| 143 | 142 | |
| 144 | 删除: </StackPanel> | |
| 143 | 新增: </StackPanel> | |
| 145 | 144 | |
| 146 | 删除: </Border> | |
| 147 | 删除: <TextBlock Text="热力图" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 145 | 新增: </Border> | |
| 146 | 新增: <TextBlock Text="热力图" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> | |
| 148 | 147 | |
| 149 | 删除: <Border | |
| 148 | 新增: <Border | |
| 150 | 149 | Background="White" |
| 151 | 150 | CornerRadius="12" |
| 152 | 151 | Padding="20,20" |
| 153 | 152 | Margin="0,10,0,0"> |
| 154 | 删除: <StackPanel> | |
| 155 | 删除: <Grid> | |
| 156 | 删除: <DatePickerBar:DatePickerBar ShowType="Month" HorizontalAlignment="Left" SelectedDate="{Binding Date,Mode=TwoWay}"/> | |
| 153 | 新增: <StackPanel> | |
| 154 | 新增: <Grid> | |
| 155 | 新增: <DatePickerBar:DatePickerBar ShowType="Month" HorizontalAlignment="Left" SelectedDate="{Binding Date,Mode=TwoWay}"/> | |
| 157 | 156 | |
| 158 | 删除: <btn:Button ToolTip="清空此应用在该月的统计数据" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#f51837" Foreground="White" Width="120" Margin="0" Icon="Delete" Command="{Binding ClearSelectMonthDataCommand}">清空统计</btn:Button> | |
| 157 | 新增: <btn:Button ToolTip="清空此应用在该月的统计数据" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#f51837" Foreground="White" Width="120" Margin="0" Icon="Delete" Command="{Binding ClearSelectMonthDataCommand}">清空统计</btn:Button> | |
| 159 | 158 | |
| 160 | 删除: </Grid> | |
| 161 | 删除: <Grid Margin="0,20,0,0"> | |
| 162 | 删除: <Grid.ColumnDefinitions> | |
| 163 | 删除: <ColumnDefinition Width="256"/> | |
| 164 | 删除: <ColumnDefinition Width="9*"/> | |
| 159 | 新增: </Grid> | |
| 160 | 新增: <Grid Margin="0,20,0,0"> | |
| 161 | 新增: <Grid.ColumnDefinitions> | |
| 162 | 新增: <ColumnDefinition Width="256"/> | |
| 163 | 新增: <ColumnDefinition Width="9*"/> | |
| 165 | 164 | |
| 166 | 删除: </Grid.ColumnDefinitions> | |
| 167 | 删除: <Charts:Charts Data="{Binding Data}" ChartsType="Month" HorizontalAlignment="Left"/> | |
| 168 | 删除: <StackPanel Grid.Column="1"> | |
| 169 | 删除: <TextBlock FontSize="14"><Run Text="该月累计使用"/><Run Text="{Binding Total}"/> | |
| 170 | 删除: </TextBlock> | |
| 171 | 删除: <TextBlock Foreground="Gray" Margin="0,5,0,0" FontSize="14"><Run Text="{Binding LongDay}"/> | |
| 172 | 删除: </TextBlock> | |
| 173 | 删除: <TextBlock Text="在当月所有使用应用时长中占比" FontSize="14" Margin="0,20,0,0"/> | |
| 165 | 新增: </Grid.ColumnDefinitions> | |
| 166 | 新增: <Charts:Charts Data="{Binding Data}" ChartsType="Month" HorizontalAlignment="Left"/> | |
| 167 | 新增: <StackPanel Grid.Column="1"> | |
| 168 | 新增: <TextBlock FontSize="14"><Run Text="该月累计使用"/><Run Text="{Binding Total}"/> | |
| 169 | 新增: </TextBlock> | |
| 170 | 新增: <TextBlock Foreground="Gray" Margin="0,5,0,0" FontSize="14"><Run Text="{Binding LongDay}"/> | |
| 171 | 新增: </TextBlock> | |
| 172 | 新增: <TextBlock Text="在当月所有使用应用时长中占比" FontSize="14" Margin="0,20,0,0"/> | |
| 174 | 173 | |
| 175 | 删除: <TextBlock Margin="0,10,0,0" FontSize="24"><Run Text="{Binding Ratio}"/> | |
| 176 | 删除: </TextBlock> | |
| 174 | 新增: <TextBlock Margin="0,10,0,0" FontSize="24"><Run Text="{Binding Ratio}"/> | |
| 175 | 新增: </TextBlock> | |
| 177 | 176 | |
| 178 | 删除: </StackPanel> | |
| 179 | 删除: </Grid> | |
| 180 | 删除: </StackPanel> | |
| 181 | 删除: </Border> | |
| 177 | 新增: </StackPanel> | |
| 178 | 新增: </Grid> | |
| 179 | 新增: </StackPanel> | |
| 180 | 新增: </Border> | |
| 182 | 181 | |
| 183 | 删除: </StackPanel> | |
| 184 | 删除: </Grid> | |
| 182 | 新增: </StackPanel> | |
| 185 | 183 | </Page> |
| @@ -26,22 +26,6 @@ namespace UI.Views | ||
| 26 | 26 | InitializeComponent(); |
| 27 | 27 | |
| 28 | 28 | DataContext = vm; |
| 29 | 删除: | |
| 30 | 删除: | |
| 31 | 删除: //test.Options = new List<Controls.Select.SelectItemModel>() | |
| 32 | 删除: //{ | |
| 33 | 删除: // new Controls.Select.SelectItemModel() | |
| 34 | 删除: //{ | |
| 35 | 删除: // Name = "123abc", | |
| 36 | 删除: // Img = "D:\\projects\\moneylog\\icon.png" | |
| 37 | 删除: //},new Controls.Select.SelectItemModel() | |
| 38 | 删除: //{ | |
| 39 | 删除: // Name = "AAA", | |
| 40 | 删除: // Img = "D:\\projects\\moneylog\\icon.png" | |
| 41 | 删除: //} | |
| 42 | 删除: //}; | |
| 43 | 删除: | |
| 44 | 删除: //test.SelectedItem = test.Options[0]; | |
| 45 | 29 | } |
| 46 | 30 | } |
| 47 | 31 | } |
| @@ -9,9 +9,8 @@ | ||
| 9 | 9 | d:DesignHeight="450" d:DesignWidth="800" |
| 10 | 10 | Title="IndexPage"> |
| 11 | 11 | |
| 12 | 删除: <Grid> | |
| 13 | 删除: <StackPanel Margin="20"> | |
| 14 | 删除: <!--<Border Width="60" Height="60" HorizontalAlignment="Left" RenderTransformOrigin="1,0.5"> | |
| 12 | 新增: <StackPanel Margin="20"> | |
| 13 | 新增: <!--<Border Width="60" Height="60" HorizontalAlignment="Left" RenderTransformOrigin="1,0.5"> | |
| 15 | 14 | <Border.Effect> |
| 16 | 15 | <DropShadowEffect BlurRadius="4" ShadowDepth="0" Direction="0" Opacity="1"/> |
| 17 | 16 | </Border.Effect> |
| @@ -23,14 +22,13 @@ | ||
| 23 | 22 | </Border.Background> |
| 24 | 23 | |
| 25 | 24 | </Border>--> |
| 26 | 删除: <TextBlock Text="概览" FontSize="18" Margin="0,5,0,20"/> | |
| 27 | 删除: <Tabbar:Tabbar Width="100" HorizontalAlignment="Left" Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/> | |
| 28 | 删除: <TextBlock Text="最为频繁" FontSize="15" Margin="0,20,0,10"/> | |
| 29 | 删除: <Charts:Charts IsCanScroll="False" Height="180" Data="{Binding WeekData}" ChartsType="HorizontalA" ShowLimit="3" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}"/> | |
| 30 | 删除: <TextBlock Text="更多" FontSize="15" Margin="0,20,0,10"/> | |
| 31 | 删除: <Charts:Charts Data="{Binding WeekData}" ChartsType="Card" ShowLimit="12" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}"/> | |
| 25 | 新增: <TextBlock Text="概览" FontSize="18" Margin="0,5,0,20"/> | |
| 26 | 新增: <Tabbar:Tabbar Width="100" HorizontalAlignment="Left" Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/> | |
| 27 | 新增: <TextBlock Text="最为频繁" FontSize="15" Margin="0,20,0,10"/> | |
| 28 | 新增: <Charts:Charts IsCanScroll="False" Height="180" Data="{Binding WeekData}" ChartsType="HorizontalA" ShowLimit="3" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}"/> | |
| 29 | 新增: <TextBlock Text="更多" FontSize="15" Margin="0,20,0,10"/> | |
| 30 | 新增: <Charts:Charts Data="{Binding WeekData}" ChartsType="Card" ShowLimit="12" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}"/> | |
| 32 | 31 | |
| 33 | 32 | |
| 34 | 删除: </StackPanel> | |
| 35 | 删除: </Grid> | |
| 33 | 新增: </StackPanel> | |
| 36 | 34 | </Page> |

