提交记录修改Core/Models/Config/ConfigAttribute.cs+2 −0看文件
修改Core/Models/Config/GeneralModel.cs+3 −0看文件
修改UI/App.xaml.cs+11 −2看文件
修改UI/Controls/Button/IconButton.cs+6 −0看文件
修改UI/Controls/Navigation/Navigation.cs+7 −1看文件
修改UI/Controls/PageContainer.cs+0 −9看文件
修改UI/Controls/Select/Select.cs+2 −0看文件
修改UI/Controls/SettingPanel/SettingPanel.cs+54 −5看文件
修改UI/Controls/Tabbar/Tabbar.cs+14 −5看文件
修改UI/Controls/Window/DefaultWindow.cs+13 −0看文件
修改UI/MainWindow.xaml+9 −6看文件
修改UI/MainWindow.xaml.cs+6 −1看文件
新增UI/Resources/Themes/Dark/Base/CheckBox.xaml+26 −0看文件
新增UI/Resources/Themes/Dark/Base/ColorSelect.xaml+133 −0看文件
新增UI/Resources/Themes/Dark/Base/EmptyData.xaml+62 −0看文件
新增UI/Resources/Themes/Dark/Base/Icon.xaml+26 −0看文件
新增UI/Resources/Themes/Dark/Base/IconSelect.xaml+133 −0看文件
新增UI/Resources/Themes/Dark/Base/Img.xaml+32 −0看文件
新增UI/Resources/Themes/Dark/Base/Placeholder.xaml+32 −0看文件
新增UI/Resources/Themes/Dark/Base/Text.xaml+18 −0看文件
新增UI/Resources/Themes/Dark/Base/View.xaml+20 −0看文件
新增UI/Resources/Themes/Dark/Button/Button.xaml+108 −0看文件
新增UI/Resources/Themes/Dark/Button/IconButton.xaml+63 −0看文件
新增UI/Resources/Themes/Dark/Charts/Charts.xaml+287 −0看文件
新增UI/Resources/Themes/Dark/Charts/ChartsItemTypeA.xaml+162 −0看文件
新增UI/Resources/Themes/Dark/Charts/ChartsItemTypeCard.xaml+122 −0看文件
新增UI/Resources/Themes/Dark/Charts/ChartsItemTypeColumn.xaml+84 −0看文件
新增UI/Resources/Themes/Dark/Charts/ChartsItemTypeMonth.xaml+74 −0看文件
新增UI/Resources/Themes/Dark/Charts/ChartsItemTypeRadar.xaml+65 −0看文件
新增UI/Resources/Themes/Dark/Config.xaml+36 −0看文件
新增UI/Resources/Themes/Dark/DatePickerBar/DatePickerBar.xaml+163 −0看文件
新增UI/Resources/Themes/Dark/DatePickerBar/DatePickerBarItem.xaml+78 −0看文件
新增UI/Resources/Themes/Dark/Input/InputBox.xaml+92 −0看文件
新增UI/Resources/Themes/Dark/List/BaseList.xaml+40 −0看文件
新增UI/Resources/Themes/Dark/List/BaseListItem.xaml+85 −0看文件
新增UI/Resources/Themes/Dark/Navigation/Navigation.xaml+45 −0看文件
新增UI/Resources/Themes/Dark/Navigation/NavigationItem.xaml+146 −0看文件
新增UI/Resources/Themes/Dark/PageContainer.xaml+22 −0看文件
新增UI/Resources/Themes/Dark/Select/DateSelect.xaml+201 −0看文件
新增UI/Resources/Themes/Dark/Select/ImageSelect.xaml+55 −0看文件
新增UI/Resources/Themes/Dark/Select/Option.xaml+88 −0看文件
新增UI/Resources/Themes/Dark/Select/Select.xaml+77 −0看文件
新增UI/Resources/Themes/Dark/SettingPanel/SettingPanel.xaml+26 −0看文件
新增UI/Resources/Themes/Dark/SettingPanel/SettingPanelItem.xaml+47 −0看文件
新增UI/Resources/Themes/Dark/SettingPanel/SettingPanelMultiItem.xaml+53 −0看文件
新增UI/Resources/Themes/Dark/Style.xaml+46 −0看文件
新增UI/Resources/Themes/Dark/Tabbar/Tabbar.xaml+46 −0看文件
新增UI/Resources/Themes/Dark/Toggle/Toggle.xaml+89 −0看文件
新增UI/Resources/Themes/Dark/Window/DefaultWindow.xaml+281 −0看文件
新增UI/Resources/Themes/Dark/Window/HideWindow.xaml+17 −0看文件
新增UI/Resources/Themes/Light/Base/CheckBox.xaml+26 −0看文件
新增UI/Resources/Themes/Light/Base/ColorSelect.xaml+133 −0看文件
新增UI/Resources/Themes/Light/Base/EmptyData.xaml+62 −0看文件
新增UI/Resources/Themes/Light/Base/Icon.xaml+26 −0看文件
新增UI/Resources/Themes/Light/Base/IconSelect.xaml+133 −0看文件
新增UI/Resources/Themes/Light/Base/Img.xaml+32 −0看文件
新增UI/Resources/Themes/Light/Base/Placeholder.xaml+32 −0看文件
新增UI/Resources/Themes/Light/Base/Text.xaml+18 −0看文件
新增UI/Resources/Themes/Light/Base/View.xaml+20 −0看文件
新增UI/Resources/Themes/Light/Button/Button.xaml+109 −0看文件
新增UI/Resources/Themes/Light/Button/IconButton.xaml+68 −0看文件
新增UI/Resources/Themes/Light/Charts/Charts.xaml+287 −0看文件
新增UI/Resources/Themes/Light/Charts/ChartsItemTypeA.xaml+151 −0看文件
新增UI/Resources/Themes/Light/Charts/ChartsItemTypeCard.xaml+122 −0看文件
新增UI/Resources/Themes/Light/Charts/ChartsItemTypeColumn.xaml+84 −0看文件
新增UI/Resources/Themes/Light/Charts/ChartsItemTypeMonth.xaml+74 −0看文件
新增UI/Resources/Themes/Light/Charts/ChartsItemTypeRadar.xaml+65 −0看文件
新增UI/Resources/Themes/Light/Config.xaml+34 −0看文件
新增UI/Resources/Themes/Light/DatePickerBar/DatePickerBar.xaml+163 −0看文件
新增UI/Resources/Themes/Light/DatePickerBar/DatePickerBarItem.xaml+78 −0看文件
新增UI/Resources/Themes/Light/Input/InputBox.xaml+92 −0看文件
新增UI/Resources/Themes/Light/List/BaseList.xaml+40 −0看文件
新增UI/Resources/Themes/Light/List/BaseListItem.xaml+85 −0看文件
新增UI/Resources/Themes/Light/Navigation/Navigation.xaml+45 −0看文件
新增UI/Resources/Themes/Light/Navigation/NavigationItem.xaml+146 −0看文件
新增UI/Resources/Themes/Light/PageContainer.xaml+22 −0看文件
新增UI/Resources/Themes/Light/Select/DateSelect.xaml+201 −0看文件
新增UI/Resources/Themes/Light/Select/ImageSelect.xaml+55 −0看文件
新增UI/Resources/Themes/Light/Select/Option.xaml+88 −0看文件
新增UI/Resources/Themes/Light/Select/Select.xaml+77 −0看文件
新增UI/Resources/Themes/Light/SettingPanel/SettingPanel.xaml+27 −0看文件
新增UI/Resources/Themes/Light/SettingPanel/SettingPanelItem.xaml+47 −0看文件
新增UI/Resources/Themes/Light/SettingPanel/SettingPanelMultiItem.xaml+53 −0看文件
新增UI/Resources/Themes/Light/Style.xaml+46 −0看文件
新增UI/Resources/Themes/Light/Tabbar/Tabbar.xaml+46 −0看文件
新增UI/Resources/Themes/Light/Toggle/Toggle.xaml+89 −0看文件
新增UI/Resources/Themes/Light/Window/DefaultWindow.xaml+281 −0看文件
新增UI/Resources/Themes/Light/Window/HideWindow.xaml+17 −0看文件
新增UI/Servicers/IThemeServicer.cs+17 −0看文件
新增UI/Servicers/ThemeServicer.cs+119 −0看文件
修改UI/UI.csproj+307 −0看文件
修改UI/Views/CategoryAppListPage.xaml+3 −3看文件
修改UI/Views/CategoryPage.xaml+8 −8看文件
修改UI/Views/ChartPage.xaml+34 −19看文件
修改UI/Views/DataPage.xaml+2 −2看文件
修改UI/Views/DetailPage.xaml+4 −4看文件
修改UI/Views/IndexPage.xaml+2 −1看文件
修改UI/Views/SettingPage.xaml+10 −9看文件
| @@ -24,6 +24,7 @@ namespace Core.Models.Config | ||
| 24 | 24 | public string Placeholder; |
| 25 | 25 | public bool IsCanRepeat; |
| 26 | 26 | public bool IsCanImportExport; |
| 27 | 新增: public string Options; | |
| 27 | 28 | public ConfigAttribute() |
| 28 | 29 | { |
| 29 | 30 | ToggleTrueText = "开"; |
| @@ -32,6 +33,7 @@ namespace Core.Models.Config | ||
| 32 | 33 | Index = 0; |
| 33 | 34 | IsName = false; |
| 34 | 35 | IsCanImportExport = false; |
| 36 | 新增: Options = string.Empty; | |
| 35 | 37 | } |
| 36 | 38 | |
| 37 | 39 | |
| @@ -16,5 +16,8 @@ namespace Core.Models.Config | ||
| 16 | 16 | /// 是否启用开机自启动 |
| 17 | 17 | /// </summary> |
| 18 | 18 | public bool IsStartatboot { get; set; } |
| 19 | 新增: | |
| 20 | 新增: [Config(Options = "浅色|深色", Name = "主题模式", Description = "设置以浅色或深色模式显示", Group = "外观")] | |
| 21 | 新增: public int Theme { get; set; } = 0; | |
| 19 | 22 | } |
| 20 | 23 | } |
| @@ -192,6 +192,7 @@ namespace UI | ||
| 192 | 192 | services.AddSingleton<ICategorys, Categorys>(); |
| 193 | 193 | |
| 194 | 194 | services.AddSingleton<IAppContextMenuServicer, AppContextMenuServicer>(); |
| 195 | 新增: services.AddSingleton<IThemeServicer, ThemeServicer>(); | |
| 195 | 196 | |
| 196 | 197 | // 主窗口 |
| 197 | 198 | services.AddSingleton<MainViewModel>(); |
| @@ -236,9 +237,11 @@ namespace UI | ||
| 236 | 237 | |
| 237 | 238 | var main = serviceProvider.GetService<IMain>(); |
| 238 | 239 | var observer = serviceProvider.GetService<IObserver>(); |
| 239 | 删除: | |
| 240 | 新增: | |
| 241 | 新增: main.OnStarted += Main_OnStarted; | |
| 240 | 242 | main.Run(); |
| 241 | 删除: | |
| 243 | 新增: | |
| 244 | 新增: | |
| 242 | 245 | observer.OnAppActive += (p, d, f) => |
| 243 | 246 | { |
| 244 | 247 | Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, new Action(() => |
| @@ -253,6 +256,12 @@ namespace UI | ||
| 253 | 256 | appData = serviceProvider.GetService<IAppData>(); |
| 254 | 257 | } |
| 255 | 258 | |
| 259 | 新增: private void Main_OnStarted(object sender, EventArgs e) | |
| 260 | 新增: { | |
| 261 | 新增: var theme = serviceProvider.GetService<IThemeServicer>(); | |
| 262 | 新增: theme.Init(); | |
| 263 | 新增: } | |
| 264 | 新增: | |
| 256 | 265 | private void ShowMainWindow() |
| 257 | 266 | { |
| 258 | 267 | var dataContext = serviceProvider.GetService<MainViewModel>(); |
| @@ -48,6 +48,7 @@ namespace UI.Controls.Button | ||
| 48 | 48 | protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e) |
| 49 | 49 | { |
| 50 | 50 | base.OnMouseLeftButtonUp(e); |
| 51 | 新增: VisualStateManager.GoToState(this, "MouseOver", true); | |
| 51 | 52 | |
| 52 | 53 | Command?.Execute(CommandParameter); |
| 53 | 54 | } |
| @@ -61,5 +62,10 @@ namespace UI.Controls.Button | ||
| 61 | 62 | base.OnMouseLeave(e); |
| 62 | 63 | VisualStateManager.GoToState(this, "Normal", true); |
| 63 | 64 | } |
| 65 | 新增: protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) | |
| 66 | 新增: { | |
| 67 | 新增: base.OnMouseLeftButtonDown(e); | |
| 68 | 新增: VisualStateManager.GoToState(this, "Pressed", true); | |
| 69 | 新增: } | |
| 64 | 70 | } |
| 65 | 71 | } |
| @@ -345,13 +345,19 @@ namespace UI.Controls.Navigation | ||
| 345 | 345 | } |
| 346 | 346 | private void Render() |
| 347 | 347 | { |
| 348 | 新增: ItemsPanel.Children.Clear(); | |
| 349 | 新增: ItemsDictionary.Clear(); | |
| 350 | 新增: | |
| 348 | 351 | if (Data != null) |
| 349 | 352 | { |
| 350 | 353 | foreach (var item in Data) |
| 351 | 354 | { |
| 352 | 355 | AddItem(item); |
| 353 | 356 | } |
| 354 | 删除: | |
| 357 | 新增: Loaded += (e, c) => | |
| 358 | 新增: { | |
| 359 | 新增: ScrollToActive(); | |
| 360 | 新增: }; | |
| 355 | 361 | } |
| 356 | 362 | } |
| 357 | 363 | |
| @@ -150,20 +150,11 @@ namespace UI.Controls | ||
| 150 | 150 | Frame.NavigationService.Navigated += NavigationService_Navigated; |
| 151 | 151 | |
| 152 | 152 | Loaded += PageContainer_Loaded; |
| 153 | 删除: Unloaded += PageContainer_Unloaded; | |
| 154 | 153 | } |
| 155 | 154 | private void NavigationService_Navigated(object sender, NavigationEventArgs e) |
| 156 | 155 | { |
| 157 | 156 | Frame.NavigationService.RemoveBackEntry(); |
| 158 | 157 | } |
| 159 | 删除: private void PageContainer_Unloaded(object sender, RoutedEventArgs e) | |
| 160 | 删除: { | |
| 161 | 删除: Loaded -= PageContainer_Loaded; | |
| 162 | 删除: Unloaded -= PageContainer_Unloaded; | |
| 163 | 删除: Frame.NavigationService.Navigated -= NavigationService_Navigated; | |
| 164 | 删除: | |
| 165 | 删除: Disponse(); | |
| 166 | 删除: } | |
| 167 | 158 | |
| 168 | 159 | private void PageContainer_Loaded(object sender, RoutedEventArgs e) |
| 169 | 160 | { |
| @@ -59,6 +59,7 @@ namespace UI.Controls.Select | ||
| 59 | 59 | |
| 60 | 60 | public static readonly DependencyProperty SelectItemProperty = DependencyProperty.Register("SelectedItem", typeof(SelectItemModel), typeof(Select), new PropertyMetadata(new PropertyChangedCallback(OnPropertyChanged))); |
| 61 | 61 | |
| 62 | 新增: public event EventHandler OnSelectedItemChanged; | |
| 62 | 63 | |
| 63 | 64 | private StackPanel _optionsContainer; |
| 64 | 65 | public Select() |
| @@ -116,6 +117,7 @@ namespace UI.Controls.Select | ||
| 116 | 117 | { |
| 117 | 118 | SelectedItem = option.Value; |
| 118 | 119 | OnSelectedItemChange(); |
| 120 | 新增: OnSelectedItemChanged?.Invoke(this, EventArgs.Empty); | |
| 119 | 121 | } |
| 120 | 122 | } |
| 121 | 123 | |
| @@ -17,6 +17,7 @@ using System.Windows.Media; | ||
| 17 | 17 | using UI.Controls.Button; |
| 18 | 18 | using UI.Controls.Input; |
| 19 | 19 | using UI.Controls.List; |
| 20 | 新增:using UI.Controls.Select; | |
| 20 | 21 | |
| 21 | 22 | namespace UI.Controls.SettingPanel |
| 22 | 23 | { |
| @@ -289,9 +290,10 @@ namespace UI.Controls.SettingPanel | ||
| 289 | 290 | } |
| 290 | 291 | |
| 291 | 292 | var border = new Border(); |
| 292 | 删除: border.Background = new SolidColorBrush(Colors.White); | |
| 293 | 新增: border.Background = Background; | |
| 293 | 294 | border.CornerRadius = new CornerRadius(6); |
| 294 | 删除: border.BorderBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#ededed")); | |
| 295 | 新增: border.BorderBrush = BorderBrush; | |
| 296 | 新增: //border.BorderBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#ededed")); | |
| 295 | 297 | border.BorderThickness = new Thickness(1); |
| 296 | 298 | border.Child = item; |
| 297 | 299 | |
| @@ -312,10 +314,56 @@ namespace UI.Controls.SettingPanel | ||
| 312 | 314 | { |
| 313 | 315 | uIElement = RenderListStringConfigControl(attribute, pi); |
| 314 | 316 | } |
| 315 | 删除: | |
| 317 | 新增: else if (pi.PropertyType == typeof(int)) | |
| 318 | 新增: { | |
| 319 | 新增: uIElement = RenderOptionsConfigControl(attribute, pi); | |
| 320 | 新增: } | |
| 316 | 321 | return uIElement; |
| 317 | 322 | } |
| 318 | 323 | |
| 324 | 新增: private UIElement RenderOptionsConfigControl(ConfigAttribute configAttribute, PropertyInfo pi) | |
| 325 | 新增: { | |
| 326 | 新增: var control = new Select.Select(); | |
| 327 | 新增: var optionsArr = configAttribute.Options.Split('|'); | |
| 328 | 新增: | |
| 329 | 新增: var options = new List<SelectItemModel>(); | |
| 330 | 新增: for (int i = 0; i < optionsArr.Length; i++) | |
| 331 | 新增: { | |
| 332 | 新增: var name = optionsArr[i]; | |
| 333 | 新增: options.Add(new SelectItemModel() | |
| 334 | 新增: { | |
| 335 | 新增: Name = name, | |
| 336 | 新增: Data = i | |
| 337 | 新增: }); | |
| 338 | 新增: } | |
| 339 | 新增: control.Options = options; | |
| 340 | 新增: control.IsShowIcon = false; | |
| 341 | 新增: control.SelectedItem = options[(int)pi.GetValue(Data)]; | |
| 342 | 新增: control.Tag = this; | |
| 343 | 新增: control.OnSelectedItemChanged += (e, c) => | |
| 344 | 新增: { | |
| 345 | 新增: pi.SetValue(configData, control.SelectedItem.Data); | |
| 346 | 新增: Data = configData; | |
| 347 | 新增: }; | |
| 348 | 新增: //var inputControl = new Toggle.Toggle(); | |
| 349 | 新增: //inputControl.ToggleChanged += (e, c) => | |
| 350 | 新增: //{ | |
| 351 | 新增: // pi.SetValue(configData, inputControl.IsChecked); | |
| 352 | 新增: | |
| 353 | 新增: // Data = configData; | |
| 354 | 新增: //}; | |
| 355 | 新增: | |
| 356 | 新增: //inputControl.IsChecked = (bool)pi.GetValue(Data); | |
| 357 | 新增: | |
| 358 | 新增: var item = new SettingPanelItem(); | |
| 359 | 新增: item.Name = configAttribute.Name; | |
| 360 | 新增: item.Description = configAttribute.Description; | |
| 361 | 新增: item.Content = control; | |
| 362 | 新增: | |
| 363 | 新增: pi.SetValue(configData, pi.GetValue(Data)); | |
| 364 | 新增: return item; | |
| 365 | 新增: } | |
| 366 | 新增: | |
| 319 | 367 | private UIElement RenderBooleanConfigControl(ConfigAttribute configAttribute, PropertyInfo pi) |
| 320 | 368 | { |
| 321 | 369 | var inputControl = new Toggle.Toggle(); |
| @@ -332,7 +380,7 @@ namespace UI.Controls.SettingPanel | ||
| 332 | 380 | item.Name = configAttribute.Name; |
| 333 | 381 | item.Description = configAttribute.Description; |
| 334 | 382 | item.Content = inputControl; |
| 335 | 删除: | |
| 383 | 新增: pi.SetValue(configData, pi.GetValue(Data)); | |
| 336 | 384 | return item; |
| 337 | 385 | } |
| 338 | 386 | |
| @@ -459,7 +507,8 @@ namespace UI.Controls.SettingPanel | ||
| 459 | 507 | MessageBox.Show("导入完成!", "提示"); |
| 460 | 508 | } |
| 461 | 509 | } |
| 462 | 删除: }catch (Exception ex) | |
| 510 | 新增: } | |
| 511 | 新增: catch (Exception ex) | |
| 463 | 512 | { |
| 464 | 513 | Logger.Error($"导入配置“{configAttribute.Name}”时失败:{ex.Message}"); |
| 465 | 514 | MessageBox.Show("导入失败!", "提示"); |
| @@ -17,7 +17,13 @@ namespace UI.Controls.Tabbar | ||
| 17 | 17 | public class Tabbar : Control |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | 删除: | |
| 20 | 新增: public Color SelectedTextColor | |
| 21 | 新增: { | |
| 22 | 新增: get { return (Color)GetValue(SelectedTextColorProperty); } | |
| 23 | 新增: set { SetValue(SelectedTextColorProperty, value); } | |
| 24 | 新增: } | |
| 25 | 新增: public static readonly DependencyProperty SelectedTextColorProperty = | |
| 26 | 新增: DependencyProperty.Register("SelectedTextColor", typeof(Color), typeof(Tabbar)); | |
| 21 | 27 | public int SelectedIndex |
| 22 | 28 | { |
| 23 | 29 | get { return (int)GetValue(SelectedIndexProperty); } |
| @@ -72,6 +78,7 @@ namespace UI.Controls.Tabbar | ||
| 72 | 78 | DefaultStyleKey = typeof(Tabbar); |
| 73 | 79 | ItemsDictionary = new List<TextBlock>(); |
| 74 | 80 | storyboard = new Storyboard(); |
| 81 | 新增: //SelectedTextColor = (Color)ColorConverter.ConvertFromString("#2b20d9"); | |
| 75 | 82 | } |
| 76 | 83 | |
| 77 | 84 | private void Data_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) |
| @@ -118,7 +125,7 @@ namespace UI.Controls.Tabbar | ||
| 118 | 125 | if (ItemsContainer != null) |
| 119 | 126 | { |
| 120 | 127 | var control = new TextBlock(); |
| 121 | 删除: control.TextAlignment= TextAlignment.Center; | |
| 128 | 新增: control.TextAlignment = TextAlignment.Center; | |
| 122 | 129 | control.Text = item; |
| 123 | 130 | control.Margin = new Thickness(0, 0, 10, 0); |
| 124 | 131 | control.FontSize = 18; |
| @@ -156,6 +163,8 @@ namespace UI.Controls.Tabbar | ||
| 156 | 163 | { |
| 157 | 164 | ItemsContainer.Children.Clear(); |
| 158 | 165 | ItemsContainer.ColumnDefinitions.Clear(); |
| 166 | 新增: ItemsDictionary.Clear(); | |
| 167 | 新增: | |
| 159 | 168 | for (int i = 0; i < Data.Count; i++) |
| 160 | 169 | { |
| 161 | 170 | var item = Data[i]; |
| @@ -179,12 +188,12 @@ namespace UI.Controls.Tabbar | ||
| 179 | 188 | |
| 180 | 189 | private void ScrollToActive(int oldSelectedIndex = 0) |
| 181 | 190 | { |
| 182 | 删除: if (oldSelectedIndex > ItemsDictionary.Count || ItemsDictionary.Count == 0) | |
| 191 | 新增: if (oldSelectedIndex > ItemsDictionary.Count || ItemsDictionary.Count == 0 || !IsLoaded) | |
| 183 | 192 | { |
| 184 | 193 | return; |
| 185 | 194 | } |
| 186 | 195 | // 获取选中项 |
| 187 | 删除: | |
| 196 | 新增: Debug.WriteLine(IsLoaded + ""); | |
| 188 | 197 | var item = ItemsDictionary[SelectedIndex]; |
| 189 | 198 | var oldSelectedItem = ItemsDictionary[oldSelectedIndex]; |
| 190 | 199 | |
| @@ -247,7 +256,7 @@ namespace UI.Controls.Tabbar | ||
| 247 | 256 | // 文字颜色动画 |
| 248 | 257 | ColorAnimation fontColorAnimation = new ColorAnimation(); |
| 249 | 258 | //scrollAnimation.From = activeBlockTTF.Y; |
| 250 | 删除: fontColorAnimation.To = (Color)ColorConverter.ConvertFromString("#2b20d9"); | |
| 259 | 新增: fontColorAnimation.To = SelectedTextColor; | |
| 251 | 260 | |
| 252 | 261 | fontColorAnimation.EasingFunction = new SineEase() { EasingMode = EasingMode.EaseIn }; |
| 253 | 262 | Storyboard.SetTarget(fontColorAnimation, item); |
| @@ -276,6 +276,19 @@ namespace UI.Controls.Window | ||
| 276 | 276 | ToastBorder = GetTemplateChild("ToastBorder") as Border; |
| 277 | 277 | Masklayer = GetTemplateChild("Masklayer") as Border; |
| 278 | 278 | ToastGrid = GetTemplateChild("ToastGrid") as Grid; |
| 279 | 新增: | |
| 280 | 新增: if (PageContainer != null) | |
| 281 | 新增: { | |
| 282 | 新增: IsCanBack = PageContainer.Index >= 1; | |
| 283 | 新增: if (IsCanBack) | |
| 284 | 新增: { | |
| 285 | 新增: VisualStateManager.GoToState(this, "CanBackState", true); | |
| 286 | 新增: } | |
| 287 | 新增: else | |
| 288 | 新增: { | |
| 289 | 新增: VisualStateManager.GoToState(this, "Normal", true); | |
| 290 | 新增: } | |
| 291 | 新增: } | |
| 279 | 292 | } |
| 280 | 293 | |
| 281 | 294 | |
| @@ -17,9 +17,11 @@ | ||
| 17 | 17 | ToastContent="{Binding ToastContent,Mode=TwoWay}" |
| 18 | 18 | ToastIcon="{Binding ToastIcon}" |
| 19 | 19 | ToastType="{Binding ToastType}" |
| 20 | 新增: | |
| 20 | 21 | > |
| 21 | 22 | <!--主要功能--> |
| 22 | 删除: <Grid> | |
| 23 | 新增: <Grid > | |
| 24 | 新增: | |
| 23 | 25 | <Grid.ColumnDefinitions> |
| 24 | 26 | <ColumnDefinition Width="auto"/> |
| 25 | 27 | <ColumnDefinition Width="*"/> |
| @@ -41,12 +43,13 @@ | ||
| 41 | 43 | </Navigation:Navigation.BottomExtContent> |
| 42 | 44 | |
| 43 | 45 | </Navigation:Navigation> |
| 44 | 删除: | |
| 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">--> | |
| 46 | 新增: <Border Grid.Column="1" Background="{DynamicResource WindowContentBackground}" Margin="0,40,10,10" CornerRadius="5" BorderThickness="1,1,1,1" BorderBrush="{DynamicResource WindowContentBorder}"> | |
| 47 | 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 | 48 | </Border> |
| 50 | 删除: | |
| 49 | 新增: <!--<Border Grid.Column="1" Background="#f9f9f9" Margin="0,40,10,10" CornerRadius="5" BorderThickness="1,1,1,1" BorderBrush="#ccc"> | |
| 50 | 新增: --><!--<ScrollViewer VerticalScrollBarVisibility="Auto">--><!-- | |
| 51 | 新增: <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}"/> | |
| 52 | 新增: --><!--</ScrollViewer>--><!-- | |
| 53 | 新增: </Border>--> | |
| 51 | 54 | </Grid> |
| 52 | 55 | </ui:DefaultWindow> |
| @@ -14,6 +14,7 @@ using System.Windows.Media.Imaging; | ||
| 14 | 14 | using System.Windows.Navigation; |
| 15 | 15 | using System.Windows.Shapes; |
| 16 | 16 | using UI.Controls.Window; |
| 17 | 新增:using UI.Servicers; | |
| 17 | 18 | |
| 18 | 19 | namespace UI |
| 19 | 20 | { |
| @@ -22,9 +23,13 @@ namespace UI | ||
| 22 | 23 | /// </summary> |
| 23 | 24 | public partial class MainWindow : DefaultWindow |
| 24 | 25 | { |
| 25 | 删除: public MainWindow() | |
| 26 | 新增: private readonly IThemeServicer themeServicer; | |
| 27 | 新增: public MainWindow(IThemeServicer themeServicer) | |
| 26 | 28 | { |
| 27 | 29 | InitializeComponent(); |
| 30 | 新增: this.themeServicer = themeServicer; | |
| 31 | 新增: themeServicer.SetMainWindow(this); | |
| 32 | 新增: themeServicer.UpdateWindowStyle(); | |
| 28 | 33 | Unloaded += Page_Unloaded; |
| 29 | 34 | } |
| 30 | 35 | |
| @@ -0,0 +1,26 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:CheckBox}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="MinWidth" Value="18"/> | |
| 9 | 新增: <Setter Property="MinHeight" Value="18"/> | |
| 10 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 11 | 新增: <Setter Property="FontFamily" Value="pack://application:,,,/Tai;component/Resources/Fonts/#Fabric MDL2 Assets"/> | |
| 12 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:CheckBox}"> | |
| 17 | 新增: <Border Background="{TemplateBinding Background}"> | |
| 18 | 新增: | |
| 19 | 新增: | |
| 20 | 新增: </Border> | |
| 21 | 新增: | |
| 22 | 新增: </ControlTemplate> | |
| 23 | 新增: </Setter.Value> | |
| 24 | 新增: </Setter> | |
| 25 | 新增: </Style> | |
| 26 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,133 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base" xmlns:button="clr-namespace:UI.Controls.Button" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 4 | 新增: <converter:HextoColorConverter x:Key="HextoColorConverter"/> | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:ColorSelect}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:ColorSelect}"> | |
| 14 | 新增: <Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True" BorderBrush="#f7f8fa" CornerRadius="5" BorderThickness="2" Width="38" Height="38"> | |
| 15 | 新增: <Border.InputBindings> | |
| 16 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=ShowSelectCommand}"/> | |
| 17 | 新增: </Border.InputBindings> | |
| 18 | 新增: <Grid> | |
| 19 | 新增: <Border CornerRadius="4" Width="28" Height="28" Background="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=Color,Converter={StaticResource HextoColorConverter}}"/> | |
| 20 | 新增: <Popup | |
| 21 | 新增: x:Name="Popup" | |
| 22 | 新增: Placement="Bottom" | |
| 23 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" | |
| 24 | 新增: > | |
| 25 | 新增: <Border | |
| 26 | 新增: x:Name="SelectContainer" | |
| 27 | 新增: CornerRadius="10" | |
| 28 | 新增: BorderBrush="#CCC" | |
| 29 | 新增: BorderThickness="1" | |
| 30 | 新增: Background="White" Padding="10" Width="275" MaxHeight="300" Margin="10"> | |
| 31 | 新增: <Border.Effect> | |
| 32 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 33 | 新增: </Border.Effect> | |
| 34 | 新增: <Grid> | |
| 35 | 新增: <Grid.RowDefinitions> | |
| 36 | 新增: <RowDefinition Height="auto"/> | |
| 37 | 新增: <RowDefinition Height="*"/> | |
| 38 | 新增: <RowDefinition Height="auto"/> | |
| 39 | 新增: </Grid.RowDefinitions> | |
| 40 | 新增: | |
| 41 | 新增: <TextBlock Text="选择颜色" VerticalAlignment="Center" HorizontalAlignment="Left"/> | |
| 42 | 新增: | |
| 43 | 新增: <ScrollViewer Grid.Row="1"> | |
| 44 | 新增: <ListView Grid.Row="1" ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=Colors}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=Color,Mode=TwoWay}" Margin="0,10,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 45 | 新增: <!--<i:Interaction.Triggers> | |
| 46 | 新增: <i:EventTrigger EventName="MouseLeftButtonUp"> | |
| 47 | 新增: <i:InvokeCommandAction Command="{Binding GotoDetailCommand}" | |
| 48 | 新增: CommandParameter="{Binding SelectedItem}" /> | |
| 49 | 新增: </i:EventTrigger> | |
| 50 | 新增: </i:Interaction.Triggers>--> | |
| 51 | 新增: <ListBox.Resources> | |
| 52 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 53 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 54 | 新增: | |
| 55 | 新增: <Setter Property="Template"> | |
| 56 | 新增: <Setter.Value> | |
| 57 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 58 | 新增: <Border> | |
| 59 | 新增: <ItemsPresenter /> | |
| 60 | 新增: </Border> | |
| 61 | 新增: </ControlTemplate> | |
| 62 | 新增: </Setter.Value> | |
| 63 | 新增: </Setter> | |
| 64 | 新增: </Style> | |
| 65 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 66 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 67 | 新增: <Setter Property="Foreground" Value="#1a1a1a"/> | |
| 68 | 新增: | |
| 69 | 新增: <Setter Property="Template"> | |
| 70 | 新增: <Setter.Value> | |
| 71 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 72 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0,0,0,0" Padding="0" Width="35" Height="35" CornerRadius="5"> | |
| 73 | 新增: <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 74 | 新增: </Border> | |
| 75 | 新增: <ControlTemplate.Triggers> | |
| 76 | 新增: | |
| 77 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 78 | 新增: <Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/> | |
| 79 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 80 | 新增: | |
| 81 | 新增: </Trigger> | |
| 82 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 83 | 新增: <Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/> | |
| 84 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 85 | 新增: | |
| 86 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 87 | 新增: | |
| 88 | 新增: </Trigger> | |
| 89 | 新增: </ControlTemplate.Triggers> | |
| 90 | 新增: </ControlTemplate> | |
| 91 | 新增: </Setter.Value> | |
| 92 | 新增: </Setter> | |
| 93 | 新增: | |
| 94 | 新增: </Style> | |
| 95 | 新增: </ListBox.Resources> | |
| 96 | 新增: <ListBox.ItemsPanel> | |
| 97 | 新增: <ItemsPanelTemplate> | |
| 98 | 新增: <WrapPanel/> | |
| 99 | 新增: </ItemsPanelTemplate> | |
| 100 | 新增: </ListBox.ItemsPanel> | |
| 101 | 新增: <ListView.ItemTemplate> | |
| 102 | 新增: <DataTemplate> | |
| 103 | 新增: | |
| 104 | 新增: <WrapPanel Orientation="Horizontal"> | |
| 105 | 新增: | |
| 106 | 新增: <!--<local:Img URL="{Binding}" Width="25" Height="25"/>--> | |
| 107 | 新增: <Border Width="25" CornerRadius="4" Height="25" Background="{Binding .,Converter={StaticResource HextoColorConverter}}"> | |
| 108 | 新增: </Border> | |
| 109 | 新增: | |
| 110 | 新增: </WrapPanel> | |
| 111 | 新增: | |
| 112 | 新增: </DataTemplate> | |
| 113 | 新增: </ListView.ItemTemplate> | |
| 114 | 新增: </ListView> | |
| 115 | 新增: </ScrollViewer> | |
| 116 | 新增: <button:Button Grid.Row="2" HorizontalAlignment="Right" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=ColorSelectCommand}" Content="自定义颜色" Width="120"/> | |
| 117 | 新增: </Grid> | |
| 118 | 新增: </Border> | |
| 119 | 新增: | |
| 120 | 新增: </Popup> | |
| 121 | 新增: </Grid> | |
| 122 | 新增: </Border> | |
| 123 | 新增: <ControlTemplate.Triggers> | |
| 124 | 新增: | |
| 125 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 126 | 新增: <Setter Property="Background" Value="#FFE8E6FF"/> | |
| 127 | 新增: </Trigger> | |
| 128 | 新增: </ControlTemplate.Triggers> | |
| 129 | 新增: </ControlTemplate> | |
| 130 | 新增: </Setter.Value> | |
| 131 | 新增: </Setter> | |
| 132 | 新增: </Style> | |
| 133 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,62 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:EmptyData}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="HorizontalAlignment" | |
| 8 | 新增: Value="Left" /> | |
| 9 | 新增: <Setter Property="ToolTip" | |
| 10 | 新增: Value="什么都没有" /> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:EmptyData}"> | |
| 15 | 新增: <Border > | |
| 16 | 新增: | |
| 17 | 新增: <Grid> | |
| 18 | 新增: <Grid.RowDefinitions> | |
| 19 | 新增: <RowDefinition Height="auto"/> | |
| 20 | 新增: <RowDefinition Height="auto"/> | |
| 21 | 新增: </Grid.RowDefinitions> | |
| 22 | 新增: <Grid> | |
| 23 | 新增: <Border Background="{DynamicResource StandardBackgroundBrush}" BorderThickness="4" CornerRadius="10" Width="100" Height="100"> | |
| 24 | 新增: <Border.RenderTransform> | |
| 25 | 新增: <RotateTransform Angle="5"/> | |
| 26 | 新增: </Border.RenderTransform> | |
| 27 | 新增: <Border.Effect> | |
| 28 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="10" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 29 | 新增: </Border.Effect> | |
| 30 | 新增: <StackPanel> | |
| 31 | 新增: <Border Background="#c4c4c4" BorderThickness="4" CornerRadius="6" Height="20" Margin="5"/> | |
| 32 | 新增: <Border Background="#f0f0f0" BorderThickness="4" CornerRadius="6" Height="40" Margin="5"/> | |
| 33 | 新增: </StackPanel> | |
| 34 | 新增: | |
| 35 | 新增: </Border> | |
| 36 | 新增: <Border HorizontalAlignment="Left" Margin="30,0,0,30" Background="{DynamicResource StandardBackgroundBrush}" BorderThickness="4" CornerRadius="10" Width="100" Height="100"> | |
| 37 | 新增: | |
| 38 | 新增: <Border.Effect> | |
| 39 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="10" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 40 | 新增: </Border.Effect> | |
| 41 | 新增: <StackPanel> | |
| 42 | 新增: <Border Background="#c4c4c4" BorderThickness="4" CornerRadius="6" Height="20" Margin="5"/> | |
| 43 | 新增: <Border Background="#f0f0f0" BorderThickness="4" CornerRadius="6" Height="40" Margin="5"> | |
| 44 | 新增: <TextBlock Foreground="Gray" Opacity=".4" Text="Tai" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 45 | 新增: </Border> | |
| 46 | 新增: </StackPanel> | |
| 47 | 新增: | |
| 48 | 新增: </Border> | |
| 49 | 新增: </Grid> | |
| 50 | 新增: <Border Grid.Row="1" Margin="0,10,0,0"> | |
| 51 | 新增: <TextBlock VerticalAlignment="Center" Text="暂时没有数据" FontSize="12" Margin="0,10" HorizontalAlignment="Center" Foreground="Gray" Opacity=".7"/> | |
| 52 | 新增: | |
| 53 | 新增: </Border> | |
| 54 | 新增: </Grid> | |
| 55 | 新增: | |
| 56 | 新增: </Border> | |
| 57 | 新增: | |
| 58 | 新增: </ControlTemplate> | |
| 59 | 新增: </Setter.Value> | |
| 60 | 新增: </Setter> | |
| 61 | 新增: </Style> | |
| 62 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,26 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Icon}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="MinWidth" Value="18"/> | |
| 9 | 新增: <Setter Property="MinHeight" Value="18"/> | |
| 10 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 11 | 新增: <Setter Property="FontFamily" Value="pack://application:,,,/Tai;component/Resources/Fonts/#Fabric MDL2 Assets"/> | |
| 12 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:Icon}"> | |
| 17 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 18 | 新增: | |
| 19 | 新增: <TextBlock Text="{TemplateBinding Unicode}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" VerticalAlignment="Center" HorizontalAlignment="Center" TextOptions.TextFormattingMode="Ideal" SnapsToDevicePixels="True" /> | |
| 20 | 新增: <!--</Border>--> | |
| 21 | 新增: | |
| 22 | 新增: </ControlTemplate> | |
| 23 | 新增: </Setter.Value> | |
| 24 | 新增: </Setter> | |
| 25 | 新增: </Style> | |
| 26 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,133 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base" xmlns:button="clr-namespace:UI.Controls.Button"> | |
| 4 | 新增: <Style TargetType="{x:Type local:IconSelect}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Template"> | |
| 10 | 新增: <Setter.Value> | |
| 11 | 新增: <ControlTemplate TargetType="{x:Type local:IconSelect}"> | |
| 12 | 新增: <Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True" BorderBrush="#f7f8fa" CornerRadius="20" BorderThickness="2" Width="100" Height="100"> | |
| 13 | 新增: <Border.InputBindings> | |
| 14 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=ShowSelectCommand}"/> | |
| 15 | 新增: </Border.InputBindings> | |
| 16 | 新增: <Grid> | |
| 17 | 新增: <local:Img HorizontalAlignment="Center" VerticalAlignment="Center" URL="{TemplateBinding URL}" Width="50" Height="50"/> | |
| 18 | 新增: | |
| 19 | 新增: <Popup | |
| 20 | 新增: x:Name="Popup" | |
| 21 | 新增: Placement="Bottom" | |
| 22 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" | |
| 23 | 新增: > | |
| 24 | 新增: <Border | |
| 25 | 新增: x:Name="SelectContainer" | |
| 26 | 新增: CornerRadius="10" | |
| 27 | 新增: BorderBrush="#CCC" | |
| 28 | 新增: BorderThickness="1" | |
| 29 | 新增: Background="White" Padding="10" Width="275" MaxHeight="300" Margin="10"> | |
| 30 | 新增: <Border.Effect> | |
| 31 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 32 | 新增: </Border.Effect> | |
| 33 | 新增: <Grid> | |
| 34 | 新增: <Grid.RowDefinitions> | |
| 35 | 新增: <RowDefinition Height="auto"/> | |
| 36 | 新增: <RowDefinition Height="*"/> | |
| 37 | 新增: <RowDefinition Height="auto"/> | |
| 38 | 新增: </Grid.RowDefinitions> | |
| 39 | 新增: | |
| 40 | 新增: <TextBlock Text="选择图标" VerticalAlignment="Center" HorizontalAlignment="Left"/> | |
| 41 | 新增: | |
| 42 | 新增: <ScrollViewer Grid.Row="1"> | |
| 43 | 新增: <ListView Grid.Row="1" ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=Icons}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=URL,Mode=TwoWay}" Margin="0,10,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 44 | 新增: <!--<i:Interaction.Triggers> | |
| 45 | 新增: <i:EventTrigger EventName="MouseLeftButtonUp"> | |
| 46 | 新增: <i:InvokeCommandAction Command="{Binding GotoDetailCommand}" | |
| 47 | 新增: CommandParameter="{Binding SelectedItem}" /> | |
| 48 | 新增: </i:EventTrigger> | |
| 49 | 新增: </i:Interaction.Triggers>--> | |
| 50 | 新增: <ListBox.Resources> | |
| 51 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 52 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 53 | 新增: | |
| 54 | 新增: <Setter Property="Template"> | |
| 55 | 新增: <Setter.Value> | |
| 56 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 57 | 新增: <Border> | |
| 58 | 新增: <ItemsPresenter /> | |
| 59 | 新增: </Border> | |
| 60 | 新增: </ControlTemplate> | |
| 61 | 新增: </Setter.Value> | |
| 62 | 新增: </Setter> | |
| 63 | 新增: </Style> | |
| 64 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 65 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 66 | 新增: <Setter Property="Foreground" Value="#1a1a1a"/> | |
| 67 | 新增: | |
| 68 | 新增: <Setter Property="Template"> | |
| 69 | 新增: <Setter.Value> | |
| 70 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 71 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0,0,0,0" Padding="0" Width="35" Height="35" CornerRadius="5"> | |
| 72 | 新增: <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 73 | 新增: </Border> | |
| 74 | 新增: <ControlTemplate.Triggers> | |
| 75 | 新增: | |
| 76 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 77 | 新增: <Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/> | |
| 78 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 79 | 新增: | |
| 80 | 新增: </Trigger> | |
| 81 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 82 | 新增: <Setter TargetName="Border" Property="Background" Value="#2b20d9"/> | |
| 83 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 84 | 新增: | |
| 85 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 86 | 新增: | |
| 87 | 新增: </Trigger> | |
| 88 | 新增: </ControlTemplate.Triggers> | |
| 89 | 新增: </ControlTemplate> | |
| 90 | 新增: </Setter.Value> | |
| 91 | 新增: </Setter> | |
| 92 | 新增: | |
| 93 | 新增: </Style> | |
| 94 | 新增: </ListBox.Resources> | |
| 95 | 新增: <ListBox.ItemsPanel> | |
| 96 | 新增: <ItemsPanelTemplate> | |
| 97 | 新增: <WrapPanel/> | |
| 98 | 新增: </ItemsPanelTemplate> | |
| 99 | 新增: </ListBox.ItemsPanel> | |
| 100 | 新增: <ListView.ItemTemplate> | |
| 101 | 新增: <DataTemplate> | |
| 102 | 新增: | |
| 103 | 新增: <WrapPanel Orientation="Horizontal"> | |
| 104 | 新增: <Border > | |
| 105 | 新增: | |
| 106 | 新增: <local:Img URL="{Binding}" Width="25" Height="25"/> | |
| 107 | 新增: | |
| 108 | 新增: </Border> | |
| 109 | 新增: | |
| 110 | 新增: </WrapPanel> | |
| 111 | 新增: | |
| 112 | 新增: </DataTemplate> | |
| 113 | 新增: </ListView.ItemTemplate> | |
| 114 | 新增: </ListView> | |
| 115 | 新增: </ScrollViewer> | |
| 116 | 新增: <button:Button Grid.Row="2" Icon="FileImage" HorizontalAlignment="Right" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=FileSelectCommand}" Content="自定义图片" Width="120"/> | |
| 117 | 新增: </Grid> | |
| 118 | 新增: </Border> | |
| 119 | 新增: | |
| 120 | 新增: </Popup> | |
| 121 | 新增: </Grid> | |
| 122 | 新增: </Border> | |
| 123 | 新增: <ControlTemplate.Triggers> | |
| 124 | 新增: | |
| 125 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 126 | 新增: <Setter Property="Background" Value="#FFE8E6FF"/> | |
| 127 | 新增: </Trigger> | |
| 128 | 新增: </ControlTemplate.Triggers> | |
| 129 | 新增: </ControlTemplate> | |
| 130 | 新增: </Setter.Value> | |
| 131 | 新增: </Setter> | |
| 132 | 新增: </Style> | |
| 133 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,32 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Img}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="MinWidth" Value="18"/> | |
| 9 | 新增: <Setter Property="MinHeight" Value="18"/> | |
| 10 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 11 | 新增: <Setter Property="Radius" Value="5"/> | |
| 12 | 新增: <Setter Property="FontFamily" Value="pack://application:,,,/Tai;component/Resources/Fonts/#Fabric MDL2 Assets"/> | |
| 13 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 14 | 新增: | |
| 15 | 新增: <Setter Property="Template"> | |
| 16 | 新增: <Setter.Value> | |
| 17 | 新增: <ControlTemplate TargetType="{x:Type local:Img}"> | |
| 18 | 新增: <!--<Border Background="{TemplateBinding Background}" CornerRadius="5"> | |
| 19 | 新增: <Image x:Name="image" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"/> | |
| 20 | 新增: </Border>--> | |
| 21 | 新增: | |
| 22 | 新增: <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" CornerRadius="{TemplateBinding Radius}"> | |
| 23 | 新增: <Border.Background> | |
| 24 | 新增: <ImageBrush Stretch="Fill" x:Name="image" ImageSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Img}}, Path=URL}"/> | |
| 25 | 新增: </Border.Background> | |
| 26 | 新增: </Border> | |
| 27 | 新增: | |
| 28 | 新增: </ControlTemplate> | |
| 29 | 新增: </Setter.Value> | |
| 30 | 新增: </Setter> | |
| 31 | 新增: </Style> | |
| 32 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,32 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Placeholder}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Template"> | |
| 11 | 新增: <Setter.Value> | |
| 12 | 新增: <ControlTemplate TargetType="{x:Type local:Placeholder}"> | |
| 13 | 新增: <Border CornerRadius="{TemplateBinding CornerRadius}" Background="#e0e0e0" ClipToBounds="True"> | |
| 14 | 新增: <Border x:Name="Flash" Background="White" Width="10" Height="{TemplateBinding Height}" Opacity=".5" RenderTransformOrigin="0,0.5"> | |
| 15 | 新增: <Border.Effect> | |
| 16 | 新增: <BlurEffect Radius="30" ></BlurEffect> | |
| 17 | 新增: </Border.Effect> | |
| 18 | 新增: <Border.RenderTransform> | |
| 19 | 新增: <TransformGroup> | |
| 20 | 新增: <TranslateTransform X="-10" /> | |
| 21 | 新增: <RotateTransform Angle="15"/> | |
| 22 | 新增: </TransformGroup> | |
| 23 | 新增: </Border.RenderTransform> | |
| 24 | 新增: </Border> | |
| 25 | 新增: | |
| 26 | 新增: </Border> | |
| 27 | 新增: | |
| 28 | 新增: </ControlTemplate> | |
| 29 | 新增: </Setter.Value> | |
| 30 | 新增: </Setter> | |
| 31 | 新增: </Style> | |
| 32 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,18 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Text}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="Template"> | |
| 8 | 新增: <Setter.Value> | |
| 9 | 新增: <ControlTemplate TargetType="{x:Type local:Text}"> | |
| 10 | 新增: <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}"> | |
| 11 | 新增: <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Text}}, Path=Content_}"/> | |
| 12 | 新增: </Border> | |
| 13 | 新增: | |
| 14 | 新增: </ControlTemplate> | |
| 15 | 新增: </Setter.Value> | |
| 16 | 新增: </Setter> | |
| 17 | 新增: </Style> | |
| 18 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,20 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:View}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Template"> | |
| 10 | 新增: <Setter.Value> | |
| 11 | 新增: <ControlTemplate TargetType="{x:Type local:View}"> | |
| 12 | 新增: <Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 13 | 新增: <ContentPresenter/> | |
| 14 | 新增: </Border> | |
| 15 | 新增: | |
| 16 | 新增: </ControlTemplate> | |
| 17 | 新增: </Setter.Value> | |
| 18 | 新增: </Setter> | |
| 19 | 新增: </Style> | |
| 20 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,108 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Button" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:Button}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="UseLayoutRounding" Value="True"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Foreground" Value="{DynamicResource StandardTextBrush}"/> | |
| 12 | 新增: <Setter Property="Height" Value="35"/> | |
| 13 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:Button}"> | |
| 17 | 新增: <!--<Border x:Name="Border" SnapsToDevicePixels="True">--> | |
| 18 | 新增: <Grid SnapsToDevicePixels="True"> | |
| 19 | 新增: | |
| 20 | 新增: | |
| 21 | 新增: <Border BorderBrush="#f3f3f3" BorderThickness="0" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="{TemplateBinding Background}"> | |
| 22 | 新增: <!--<Border.Effect> | |
| 23 | 新增: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 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" > | |
| 31 | 新增: | |
| 32 | 新增: </base:Icon> | |
| 33 | 新增: <ContentPresenter | |
| 34 | 新增: Grid.Column="1" | |
| 35 | 新增: HorizontalAlignment="Center" | |
| 36 | 新增: VerticalAlignment="Center" | |
| 37 | 新增: RecognizesAccessKey="True"/> | |
| 38 | 新增: </Grid> | |
| 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 | 新增: <VisualStateManager.VisualStateGroups> | |
| 47 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 48 | 新增: <VisualStateGroup.Transitions> | |
| 49 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 50 | 新增: <VisualTransition GeneratedDuration="0" | |
| 51 | 新增: To="Pressed" /> | |
| 52 | 新增: </VisualStateGroup.Transitions> | |
| 53 | 新增: <VisualState x:Name="Normal" /> | |
| 54 | 新增: <VisualState x:Name="MouseOver"> | |
| 55 | 新增: <Storyboard> | |
| 56 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Color)" | |
| 57 | 新增: Storyboard.TargetName="Shadow"> | |
| 58 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 59 | 新增: Value="#2b20d9" /> | |
| 60 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 61 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 62 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 63 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 64 | 新增: Value="{DynamicResource HoverBackgroundColor}" /> | |
| 65 | 新增: </ColorAnimationUsingKeyFrames> | |
| 66 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 67 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 68 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 69 | 新增: Value="#2b20d9" /> | |
| 70 | 新增: </ColorAnimationUsingKeyFrames> | |
| 71 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Button.Foreground).(SolidColorBrush.Color)" | |
| 72 | 新增: > | |
| 73 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 74 | 新增: Value="White" /> | |
| 75 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 76 | 新增: </Storyboard> | |
| 77 | 新增: </VisualState> | |
| 78 | 新增: <VisualState x:Name="Pressed"> | |
| 79 | 新增: <Storyboard> | |
| 80 | 新增: | |
| 81 | 新增: | |
| 82 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 83 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 84 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 85 | 新增: Value="{DynamicResource ThemeColor}" /> | |
| 86 | 新增: </ColorAnimationUsingKeyFrames> | |
| 87 | 新增: </Storyboard> | |
| 88 | 新增: </VisualState> | |
| 89 | 新增: </VisualStateGroup> | |
| 90 | 新增: </VisualStateManager.VisualStateGroups> | |
| 91 | 新增: | |
| 92 | 新增: </Grid> | |
| 93 | 新增: | |
| 94 | 新增: <!--</Border>--> | |
| 95 | 新增: <ControlTemplate.Triggers> | |
| 96 | 新增: <Trigger Property="Icon" Value="None"> | |
| 97 | 新增: <Setter TargetName="Icon" Property="Visibility" Value="Collapsed"/> | |
| 98 | 新增: </Trigger> | |
| 99 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 100 | 新增: <Setter TargetName="BoxBorder" Property="BorderThickness" Value="0"/> | |
| 101 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 102 | 新增: </Trigger> | |
| 103 | 新增: </ControlTemplate.Triggers> | |
| 104 | 新增: </ControlTemplate> | |
| 105 | 新增: </Setter.Value> | |
| 106 | 新增: </Setter> | |
| 107 | 新增: </Style> | |
| 108 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,63 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Button" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:IconButton}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Width" Value="35"/> | |
| 10 | 新增: <Setter Property="Height" Value="35"/> | |
| 11 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 12 | 新增: | |
| 13 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:IconButton}"> | |
| 17 | 新增: <!--<Border Background="{TemplateBinding Background}" x:Name="Border">--> | |
| 18 | 新增: | |
| 19 | 新增: <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Padding="5" Background="#00383838"> | |
| 20 | 新增: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" > | |
| 21 | 新增: | |
| 22 | 新增: </base:Icon> | |
| 23 | 新增: <VisualStateManager.VisualStateGroups> | |
| 24 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 25 | 新增: <VisualStateGroup.Transitions> | |
| 26 | 新增: <VisualTransition GeneratedDuration="0:0:0.15" /> | |
| 27 | 新增: <VisualTransition GeneratedDuration="0" | |
| 28 | 新增: To="Pressed" /> | |
| 29 | 新增: </VisualStateGroup.Transitions> | |
| 30 | 新增: <VisualState x:Name="Normal" /> | |
| 31 | 新增: <VisualState x:Name="MouseOver"> | |
| 32 | 新增: <Storyboard> | |
| 33 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 34 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 35 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 36 | 新增: Value="{DynamicResource HoverBackgroundColor}" /> | |
| 37 | 新增: </ColorAnimationUsingKeyFrames> | |
| 38 | 新增: </Storyboard> | |
| 39 | 新增: </VisualState> | |
| 40 | 新增: <VisualState x:Name="Pressed"> | |
| 41 | 新增: <Storyboard> | |
| 42 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 43 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 44 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 45 | 新增: Value="{DynamicResource ThemeColor}" /> | |
| 46 | 新增: </ColorAnimationUsingKeyFrames> | |
| 47 | 新增: </Storyboard> | |
| 48 | 新增: </VisualState> | |
| 49 | 新增: </VisualStateGroup> | |
| 50 | 新增: </VisualStateManager.VisualStateGroups> | |
| 51 | 新增: </Border> | |
| 52 | 新增: | |
| 53 | 新增: | |
| 54 | 新增: | |
| 55 | 新增: <!--</Border>--> | |
| 56 | 新增: <ControlTemplate.Triggers> | |
| 57 | 新增: | |
| 58 | 新增: </ControlTemplate.Triggers> | |
| 59 | 新增: </ControlTemplate> | |
| 60 | 新增: </Setter.Value> | |
| 61 | 新增: </Setter> | |
| 62 | 新增: </Style> | |
| 63 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,287 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 4 | 新增: <converter:HextoColorConverter x:Key="HextoColorConverter"/> | |
| 5 | 新增: <Style TargetType="{x:Type local:Charts}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="FontSize" Value="14"/> | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:Charts}"> | |
| 15 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 16 | 新增: <Border x:Name="Radar" Visibility="Collapsed"> | |
| 17 | 新增: | |
| 18 | 新增: </Border> | |
| 19 | 新增: <Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 20 | 新增: <ScrollViewer Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=HorizontalA,Path=ActualHeight}" CanContentScroll="False"> | |
| 21 | 新增: <StackPanel x:Name="Container"> | |
| 22 | 新增: </StackPanel> | |
| 23 | 新增: </ScrollViewer> | |
| 24 | 新增: <StackPanel Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 25 | 新增: </Grid> | |
| 26 | 新增: <WrapPanel x:Name="CardContainer" Visibility="Collapsed"> | |
| 27 | 新增: </WrapPanel> | |
| 28 | 新增: <Grid x:Name="MonthContainer" Visibility="Collapsed"> | |
| 29 | 新增: </Grid> | |
| 30 | 新增: | |
| 31 | 新增: <Grid x:Name="Column" Visibility="Collapsed"> | |
| 32 | 新增: <base:EmptyData x:Name="ColumnEmpty" Visibility="Collapsed"/> | |
| 33 | 新增: <Grid x:Name="ColumnMain"> | |
| 34 | 新增: <Grid.RowDefinitions> | |
| 35 | 新增: <RowDefinition Height="auto"/> | |
| 36 | 新增: <RowDefinition Height="*"/> | |
| 37 | 新增: <RowDefinition Height="auto"/> | |
| 38 | 新增: </Grid.RowDefinitions> | |
| 39 | 新增: <StackPanel x:Name="ColumnTotal"> | |
| 40 | 新增: <TextBlock Text="总计" Foreground="{DynamicResource SubTextBrush}"/> | |
| 41 | 新增: <TextBlock Margin="0,10,0,0" Text="{TemplateBinding Total}" FontSize="20" Foreground="{DynamicResource StandardTextBrush}"/> | |
| 42 | 新增: </StackPanel> | |
| 43 | 新增: <Grid Grid.Row="1" Margin="0,20,0,0"> | |
| 44 | 新增: <Popup | |
| 45 | 新增: AllowsTransparency="True" | |
| 46 | 新增: IsOpen="{TemplateBinding IsShowValuesPopup}" | |
| 47 | 新增: Placement="Top" | |
| 48 | 新增: PlacementTarget="{TemplateBinding ValuesPopupPlacementTarget}" | |
| 49 | 新增: HorizontalOffset="{TemplateBinding ValuesPopupHorizontalOffset}"> | |
| 50 | 新增: <Border | |
| 51 | 新增: Background="White" | |
| 52 | 新增: CornerRadius="12" | |
| 53 | 新增: Padding="10" | |
| 54 | 新增: Margin="10"> | |
| 55 | 新增: <Border.Effect> | |
| 56 | 新增: <DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity=".1"/> | |
| 57 | 新增: </Border.Effect> | |
| 58 | 新增: | |
| 59 | 新增: <Grid> | |
| 60 | 新增: <Path | |
| 61 | 新增: Width="15" | |
| 62 | 新增: Height="15" | |
| 63 | 新增: SnapsToDevicePixels="False" | |
| 64 | 新增: Data="M 0 0 L 7.5 7.5 L 15 0" Fill="White" | |
| 65 | 新增: Stroke="White" | |
| 66 | 新增: StrokeThickness="1" | |
| 67 | 新增: VerticalAlignment="Bottom" | |
| 68 | 新增: HorizontalAlignment="Left" | |
| 69 | 新增: Margin="0,0,0,-22" | |
| 70 | 新增: /> | |
| 71 | 新增: <!--列数据--> | |
| 72 | 新增: <ListView ItemsSource="{TemplateBinding ColumnValuesInfoList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 73 | 新增: <ListBox.Resources> | |
| 74 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 75 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 76 | 新增: | |
| 77 | 新增: <Setter Property="Template"> | |
| 78 | 新增: <Setter.Value> | |
| 79 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 80 | 新增: <Border> | |
| 81 | 新增: <ItemsPresenter /> | |
| 82 | 新增: </Border> | |
| 83 | 新增: </ControlTemplate> | |
| 84 | 新增: </Setter.Value> | |
| 85 | 新增: </Setter> | |
| 86 | 新增: </Style> | |
| 87 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 88 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 89 | 新增: <Setter Property="Template"> | |
| 90 | 新增: <Setter.Value> | |
| 91 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 92 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0" CornerRadius="10"> | |
| 93 | 新增: | |
| 94 | 新增: <ContentPresenter/> | |
| 95 | 新增: </Border> | |
| 96 | 新增: </ControlTemplate> | |
| 97 | 新增: </Setter.Value> | |
| 98 | 新增: </Setter> | |
| 99 | 新增: | |
| 100 | 新增: </Style> | |
| 101 | 新增: </ListBox.Resources> | |
| 102 | 新增: <ListBox.ItemsPanel> | |
| 103 | 新增: <ItemsPanelTemplate> | |
| 104 | 新增: <VirtualizingStackPanel/> | |
| 105 | 新增: </ItemsPanelTemplate> | |
| 106 | 新增: </ListBox.ItemsPanel> | |
| 107 | 新增: <ListView.ItemTemplate> | |
| 108 | 新增: <DataTemplate> | |
| 109 | 新增: | |
| 110 | 新增: <StackPanel> | |
| 111 | 新增: <Grid> | |
| 112 | 新增: <Grid.ColumnDefinitions> | |
| 113 | 新增: <ColumnDefinition Width="20"/> | |
| 114 | 新增: <ColumnDefinition Width="auto"/> | |
| 115 | 新增: <ColumnDefinition Width="auto"/> | |
| 116 | 新增: | |
| 117 | 新增: </Grid.ColumnDefinitions> | |
| 118 | 新增: <Border Width="10" CornerRadius="4" Height="10" Background="{Binding Color,Converter={StaticResource HextoColorConverter}}"> | |
| 119 | 新增: <!--颜色--> | |
| 120 | 新增: </Border> | |
| 121 | 新增: | |
| 122 | 新增: <Border Grid.Column="1" Margin="5,0,0,0"> | |
| 123 | 新增: <!--名称--> | |
| 124 | 新增: <TextBlock Foreground="#5c5c5c" VerticalAlignment="Center" Text="{Binding Name}" FontSize="12"/> | |
| 125 | 新增: </Border> | |
| 126 | 新增: <Border Grid.Column="2"> | |
| 127 | 新增: <!--总计和百分比--> | |
| 128 | 新增: <TextBlock FontSize="12" Margin="5,0,0,0" Foreground="#FF8A8A8A" VerticalAlignment="Center" Text="{Binding Text}"/> | |
| 129 | 新增: | |
| 130 | 新增: </Border> | |
| 131 | 新增: | |
| 132 | 新增: </Grid> | |
| 133 | 新增: | |
| 134 | 新增: </StackPanel> | |
| 135 | 新增: </DataTemplate> | |
| 136 | 新增: </ListView.ItemTemplate> | |
| 137 | 新增: </ListView> | |
| 138 | 新增: </Grid> | |
| 139 | 新增: </Border> | |
| 140 | 新增: </Popup> | |
| 141 | 新增: <TextBlock Panel.ZIndex="2" Margin="0,-8,0,0" HorizontalAlignment="Right" VerticalAlignment="Top" Text="{TemplateBinding Maximum}" Foreground="#ccc" FontSize="12"/> | |
| 142 | 新增: | |
| 143 | 新增: <TextBlock Panel.ZIndex="2" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{TemplateBinding Median}" Foreground="#ccc" FontSize="12" Margin="0,0,0,30"/> | |
| 144 | 新增: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 145 | 新增: X2="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" | |
| 146 | 新增: StrokeDashArray="2 5" StrokeThickness=".8" VerticalAlignment="Center" Margin="10,0,10,30"/> | |
| 147 | 新增: | |
| 148 | 新增: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 149 | 新增: X2="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" | |
| 150 | 新增: StrokeDashArray="2 5" StrokeThickness=".8" VerticalAlignment="Top" Margin="10,0"/> | |
| 151 | 新增: | |
| 152 | 新增: <Border BorderThickness="1,0,0,1" BorderBrush="#7e7e7e"> | |
| 153 | 新增: <Grid x:Name="ColumnContainer"> | |
| 154 | 新增: | |
| 155 | 新增: </Grid> | |
| 156 | 新增: </Border> | |
| 157 | 新增: </Grid> | |
| 158 | 新增: <!--信息--> | |
| 159 | 新增: <Grid Grid.Row="2" Margin="0,5,0,0"> | |
| 160 | 新增: <ListView ItemsSource="{TemplateBinding ColumnInfoList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 161 | 新增: <ListBox.Resources> | |
| 162 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 163 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 164 | 新增: | |
| 165 | 新增: <Setter Property="Template"> | |
| 166 | 新增: <Setter.Value> | |
| 167 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 168 | 新增: <Border> | |
| 169 | 新增: <ItemsPresenter /> | |
| 170 | 新增: </Border> | |
| 171 | 新增: </ControlTemplate> | |
| 172 | 新增: </Setter.Value> | |
| 173 | 新增: </Setter> | |
| 174 | 新增: </Style> | |
| 175 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 176 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 177 | 新增: <Setter Property="Template"> | |
| 178 | 新增: <Setter.Value> | |
| 179 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 180 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="Transparent" Margin="0" CornerRadius="10"> | |
| 181 | 新增: | |
| 182 | 新增: <ContentPresenter/> | |
| 183 | 新增: </Border> | |
| 184 | 新增: <!--<ControlTemplate.Triggers> | |
| 185 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 186 | 新增: --> | |
| 187 | 新增: <!--<Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/>--> | |
| 188 | 新增: <!-- | |
| 189 | 新增: <Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/> | |
| 190 | 新增: | |
| 191 | 新增: </Trigger> | |
| 192 | 新增: </ControlTemplate.Triggers>--> | |
| 193 | 新增: </ControlTemplate> | |
| 194 | 新增: </Setter.Value> | |
| 195 | 新增: </Setter> | |
| 196 | 新增: | |
| 197 | 新增: </Style> | |
| 198 | 新增: </ListBox.Resources> | |
| 199 | 新增: <ListBox.ItemsPanel> | |
| 200 | 新增: <ItemsPanelTemplate> | |
| 201 | 新增: <WrapPanel/> | |
| 202 | 新增: </ItemsPanelTemplate> | |
| 203 | 新增: </ListBox.ItemsPanel> | |
| 204 | 新增: <ListView.ItemTemplate> | |
| 205 | 新增: <DataTemplate> | |
| 206 | 新增: | |
| 207 | 新增: <WrapPanel Orientation="Vertical"> | |
| 208 | 新增: <Border Width="auto" Height="30" Margin="0,0,10,0"> | |
| 209 | 新增: <Grid> | |
| 210 | 新增: <Grid.ColumnDefinitions> | |
| 211 | 新增: <ColumnDefinition Width="20"/> | |
| 212 | 新增: <ColumnDefinition Width="30"/> | |
| 213 | 新增: <ColumnDefinition Width="auto"/> | |
| 214 | 新增: <ColumnDefinition Width="auto"/> | |
| 215 | 新增: | |
| 216 | 新增: </Grid.ColumnDefinitions> | |
| 217 | 新增: <Border Width="12" CornerRadius="4" Height="12" Background="{Binding Color,Converter={StaticResource HextoColorConverter}}"> | |
| 218 | 新增: <!--颜色--> | |
| 219 | 新增: </Border> | |
| 220 | 新增: <Border Grid.Column="1"> | |
| 221 | 新增: <!--图标--> | |
| 222 | 新增: <base:Img Width="20" Height="20" URL="{Binding Icon}"/> | |
| 223 | 新增: </Border> | |
| 224 | 新增: <Border Grid.Column="2" Margin="5,0,0,0"> | |
| 225 | 新增: <!--名称--> | |
| 226 | 新增: <TextBlock Foreground="#fff" VerticalAlignment="Center" Text="{Binding Name}"/> | |
| 227 | 新增: </Border> | |
| 228 | 新增: <Border Grid.Column="3"> | |
| 229 | 新增: <!--总计和百分比--> | |
| 230 | 新增: <TextBlock FontSize="12" Margin="5,0,0,0" Foreground="#FF8A8A8A" VerticalAlignment="Center" Text="{Binding Text}"/> | |
| 231 | 新增: | |
| 232 | 新增: </Border> | |
| 233 | 新增: | |
| 234 | 新增: </Grid> | |
| 235 | 新增: </Border> | |
| 236 | 新增: | |
| 237 | 新增: </WrapPanel> | |
| 238 | 新增: </DataTemplate> | |
| 239 | 新增: </ListView.ItemTemplate> | |
| 240 | 新增: </ListView> | |
| 241 | 新增: </Grid> | |
| 242 | 新增: </Grid> | |
| 243 | 新增: </Grid> | |
| 244 | 新增: </Grid> | |
| 245 | 新增: | |
| 246 | 新增: <ControlTemplate.Triggers> | |
| 247 | 新增: <MultiTrigger> | |
| 248 | 新增: <MultiTrigger.Conditions> | |
| 249 | 新增: <Condition Property="IsEmpty" Value="True"/> | |
| 250 | 新增: <Condition Property="ChartsType" Value="Column"/> | |
| 251 | 新增: </MultiTrigger.Conditions> | |
| 252 | 新增: <Setter Property="Visibility" Value="Visible" TargetName="ColumnEmpty"/> | |
| 253 | 新增: <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnMain"/> | |
| 254 | 新增: </MultiTrigger> | |
| 255 | 新增: <MultiTrigger> | |
| 256 | 新增: <MultiTrigger.Conditions> | |
| 257 | 新增: <Condition Property="IsShowTotal" Value="False"/> | |
| 258 | 新增: <Condition Property="ChartsType" Value="Column"/> | |
| 259 | 新增: </MultiTrigger.Conditions> | |
| 260 | 新增: <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnTotal"/> | |
| 261 | 新增: </MultiTrigger> | |
| 262 | 新增: <Trigger Property="ChartsType" | |
| 263 | 新增: Value="HorizontalA"> | |
| 264 | 新增: <Setter TargetName="HorizontalA" Property="Visibility" Value="Visible"/> | |
| 265 | 新增: </Trigger> | |
| 266 | 新增: <Trigger Property="ChartsType" | |
| 267 | 新增: Value="Card"> | |
| 268 | 新增: <Setter TargetName="CardContainer" Property="Visibility" Value="Visible"/> | |
| 269 | 新增: </Trigger> | |
| 270 | 新增: <Trigger Property="ChartsType" | |
| 271 | 新增: Value="Month"> | |
| 272 | 新增: <Setter TargetName="MonthContainer" Property="Visibility" Value="Visible"/> | |
| 273 | 新增: </Trigger> | |
| 274 | 新增: <Trigger Property="ChartsType" | |
| 275 | 新增: Value="Column"> | |
| 276 | 新增: <Setter TargetName="Column" Property="Visibility" Value="Visible"/> | |
| 277 | 新增: </Trigger> | |
| 278 | 新增: <Trigger Property="ChartsType" | |
| 279 | 新增: Value="Radar"> | |
| 280 | 新增: <Setter TargetName="Radar" Property="Visibility" Value="Visible"/> | |
| 281 | 新增: </Trigger> | |
| 282 | 新增: </ControlTemplate.Triggers> | |
| 283 | 新增: </ControlTemplate> | |
| 284 | 新增: </Setter.Value> | |
| 285 | 新增: </Setter> | |
| 286 | 新增: </Style> | |
| 287 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,162 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeA}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Margin" Value="0,5"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeA}"> | |
| 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="{DynamicResource StandardBackgroundBrush}" 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 | 新增: <Grid.RowDefinitions> | |
| 29 | 新增: <RowDefinition Height="*"/> | |
| 30 | 新增: <RowDefinition Height="*"/> | |
| 31 | 新增: | |
| 32 | 新增: </Grid.RowDefinitions> | |
| 33 | 新增: <TextBlock x:Name="NameTextObj" Foreground="#5c5c5c" HorizontalAlignment="Left"/> | |
| 34 | 新增: <Grid Grid.Row="1" > | |
| 35 | 新增: <Grid.ColumnDefinitions> | |
| 36 | 新增: <ColumnDefinition Width="auto"/> | |
| 37 | 新增: <ColumnDefinition Width="auto"/> | |
| 38 | 新增: | |
| 39 | 新增: </Grid.ColumnDefinitions> | |
| 40 | 新增: <Rectangle | |
| 41 | 新增: x:Name="ValueBlockObj" | |
| 42 | 新增: RadiusX="4" | |
| 43 | 新增: RadiusY="4" | |
| 44 | 新增: Fill="#cccccc" | |
| 45 | 新增: Height="8" | |
| 46 | 新增: VerticalAlignment="Center" | |
| 47 | 新增: HorizontalAlignment="Left" | |
| 48 | 新增: /> | |
| 49 | 新增: | |
| 50 | 新增: <TextBlock Grid.Column="1" x:Name="ValueTextObj" VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/> | |
| 51 | 新增: </Grid> | |
| 52 | 新增: </Grid>--> | |
| 53 | 新增: <StackPanel Grid.Column="1" x:Name="ValueContainer" VerticalAlignment="Center" > | |
| 54 | 新增: <TextBlock x:Name="NameTextObj" Foreground="{DynamicResource StandardTextBrush}" HorizontalAlignment="Left"/> | |
| 55 | 新增: <StackPanel Orientation="Horizontal" > | |
| 56 | 新增: <Rectangle | |
| 57 | 新增: x:Name="ValueBlockObj" | |
| 58 | 新增: RadiusX="4" | |
| 59 | 新增: RadiusY="4" | |
| 60 | 新增: Fill="#7F777777" | |
| 61 | 新增: Height="8" | |
| 62 | 新增: VerticalAlignment="Center" | |
| 63 | 新增: HorizontalAlignment="Left" | |
| 64 | 新增: /> | |
| 65 | 新增: | |
| 66 | 新增: <TextBlock x:Name="ValueTextObj" VerticalAlignment="Center" Foreground="#ccc" FontSize="12" Margin="5,0,0,0"/> | |
| 67 | 新增: </StackPanel> | |
| 68 | 新增: </StackPanel> | |
| 69 | 新增: | |
| 70 | 新增: </Grid> | |
| 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"> | |
| 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 | |
| 87 | 新增: RadiusX="0" | |
| 88 | 新增: RadiusY="0" | |
| 89 | 新增: Fill="#e0e0e0" | |
| 90 | 新增: Height="8" | |
| 91 | 新增: Width="256" | |
| 92 | 新增: VerticalAlignment="Center" | |
| 93 | 新增: HorizontalAlignment="Left" | |
| 94 | 新增: /> | |
| 95 | 新增: | |
| 96 | 新增: <!--<TextBlock VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/>--> | |
| 97 | 新增: </StackPanel> | |
| 98 | 新增: </StackPanel> | |
| 99 | 新增: </Grid> | |
| 100 | 新增: | |
| 101 | 新增: <VisualStateManager.VisualStateGroups> | |
| 102 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 103 | 新增: <VisualStateGroup.Transitions> | |
| 104 | 新增: <VisualTransition GeneratedDuration="0:0:.3" /> | |
| 105 | 新增: <VisualTransition GeneratedDuration="0" | |
| 106 | 新增: To="Pressed" /> | |
| 107 | 新增: </VisualStateGroup.Transitions> | |
| 108 | 新增: <VisualState x:Name="NormalState" /> | |
| 109 | 新增: <VisualState x:Name="MouseOver"> | |
| 110 | 新增: <Storyboard > | |
| 111 | 新增: <ColorAnimation Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" | |
| 112 | 新增: Storyboard.TargetName="NameTextObj" To="{DynamicResource ThemeColor}" > | |
| 113 | 新增: <ColorAnimation.EasingFunction> | |
| 114 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 115 | 新增: </ColorAnimation.EasingFunction> | |
| 116 | 新增: </ColorAnimation> | |
| 117 | 新增: <ColorAnimation Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" | |
| 118 | 新增: Storyboard.TargetName="ValueTextObj" To="{DynamicResource ThemeColor}" > | |
| 119 | 新增: <ColorAnimation.EasingFunction> | |
| 120 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 121 | 新增: </ColorAnimation.EasingFunction> | |
| 122 | 新增: </ColorAnimation> | |
| 123 | 新增: <ColorAnimation Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" | |
| 124 | 新增: Storyboard.TargetName="ValueBlockObj" To="{DynamicResource ThemeColor}" > | |
| 125 | 新增: <ColorAnimation.EasingFunction> | |
| 126 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 127 | 新增: </ColorAnimation.EasingFunction> | |
| 128 | 新增: </ColorAnimation> | |
| 129 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 130 | 新增: Storyboard.TargetName="IconBorder" To="{DynamicResource ThemeColor}" > | |
| 131 | 新增: <ColorAnimation.EasingFunction> | |
| 132 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 133 | 新增: </ColorAnimation.EasingFunction> | |
| 134 | 新增: </ColorAnimation> | |
| 135 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 136 | 新增: Storyboard.TargetName="IconBorder" To="{DynamicResource HoverBackgroundColor}" > | |
| 137 | 新增: <ColorAnimation.EasingFunction> | |
| 138 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 139 | 新增: </ColorAnimation.EasingFunction> | |
| 140 | 新增: </ColorAnimation> | |
| 141 | 新增: </Storyboard> | |
| 142 | 新增: </VisualState> | |
| 143 | 新增: <VisualState x:Name="Pressed"> | |
| 144 | 新增: | |
| 145 | 新增: </VisualState> | |
| 146 | 新增: </VisualStateGroup> | |
| 147 | 新增: </VisualStateManager.VisualStateGroups> | |
| 148 | 新增: </Grid> | |
| 149 | 新增: | |
| 150 | 新增: <!--</Border>--> | |
| 151 | 新增: | |
| 152 | 新增: <ControlTemplate.Triggers> | |
| 153 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 154 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 155 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 156 | 新增: </Trigger> | |
| 157 | 新增: </ControlTemplate.Triggers> | |
| 158 | 新增: </ControlTemplate> | |
| 159 | 新增: </Setter.Value> | |
| 160 | 新增: </Setter> | |
| 161 | 新增: </Style> | |
| 162 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,122 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeCard}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Margin" Value="5"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeCard}"> | |
| 15 | 新增: <Grid > | |
| 16 | 新增: <Grid x:Name="Normal"> | |
| 17 | 新增: <Border x:Name="ShadowBorder" CornerRadius="12"> | |
| 18 | 新增: <Border.Effect> | |
| 19 | 新增: <DropShadowEffect RenderingBias="Performance" Color="{DynamicResource ThemeColor}" BlurRadius="17" Direction="0" ShadowDepth="0" Opacity="0"/> | |
| 20 | 新增: </Border.Effect> | |
| 21 | 新增: <Border x:Name="Border" BorderBrush="Transparent" BorderThickness="2" Margin="0" Background="{DynamicResource StandardBackgroundBrush}" CornerRadius="12" Width="150" Height="150" > | |
| 22 | 新增: | |
| 23 | 新增: <Border.Clip> | |
| 24 | 新增: <RectangleGeometry RadiusX="12" RadiusY="12" Rect="0,0,150,150"/> | |
| 25 | 新增: </Border.Clip> | |
| 26 | 新增: <!--<Border.RenderTransform> | |
| 27 | 新增: | |
| 28 | 新增: </Border.RenderTransform>--> | |
| 29 | 新增: <Grid> | |
| 30 | 新增: <Rectangle | |
| 31 | 新增: x:Name="ValueBlockObj" | |
| 32 | 新增: | |
| 33 | 新增: | |
| 34 | 新增: HorizontalAlignment="Center" | |
| 35 | 新增: VerticalAlignment="Center" | |
| 36 | 新增: Margin="0" | |
| 37 | 新增: RenderTransformOrigin="0.5,0.5" | |
| 38 | 新增: Fill="#ff305b" | |
| 39 | 新增: | |
| 40 | 新增: > | |
| 41 | 新增: <!--<Rectangle.Effect> | |
| 42 | 新增: <BlurEffect RenderOptions.BitmapScalingMode="LowQuality" Radius="35" RenderingBias="Performance"/> | |
| 43 | 新增: </Rectangle.Effect>--> | |
| 44 | 新增: <!--<Rectangle.Fill> | |
| 45 | 新增: <LinearGradientBrush RenderOptions.BitmapScalingMode="LowQuality" EndPoint="2,1" StartPoint="-2,0"> | |
| 46 | 新增: <GradientStop Color="White"/> | |
| 47 | 新增: <GradientStop Color="#ff305b" Offset="1"/> | |
| 48 | 新增: </LinearGradientBrush> | |
| 49 | 新增: </Rectangle.Fill>--> | |
| 50 | 新增: <Rectangle.RenderTransform> | |
| 51 | 新增: <ScaleTransform ScaleX="3" ScaleY="3" CenterX="0" CenterY="0"/> | |
| 52 | 新增: </Rectangle.RenderTransform> | |
| 53 | 新增: </Rectangle> | |
| 54 | 新增: <!--<Border VerticalAlignment="Center" HorizontalAlignment="Center">--> | |
| 55 | 新增: <Image x:Name="IconObj" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="LowQuality"/> | |
| 56 | 新增: <!--</Border>--> | |
| 57 | 新增: | |
| 58 | 新增: <TextBlock x:Name="NameTextObj" Foreground="{DynamicResource StandardTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="10"/> | |
| 59 | 新增: | |
| 60 | 新增: <Border VerticalAlignment="Top" CornerRadius="5" Padding="5" HorizontalAlignment="Left" Margin="10" > | |
| 61 | 新增: <Border.Background> | |
| 62 | 新增: <SolidColorBrush Color="#ff305b" Opacity="0.7"/> | |
| 63 | 新增: </Border.Background> | |
| 64 | 新增: <TextBlock x:Name="ValueTextObj" Foreground="White" FontSize="12" /> | |
| 65 | 新增: | |
| 66 | 新增: </Border> | |
| 67 | 新增: | |
| 68 | 新增: </Grid> | |
| 69 | 新增: | |
| 70 | 新增: </Border> | |
| 71 | 新增: </Border> | |
| 72 | 新增: | |
| 73 | 新增: </Grid> | |
| 74 | 新增: | |
| 75 | 新增: <Grid x:Name="Loading" Visibility="Collapsed"> | |
| 76 | 新增: <base:Placeholder CornerRadius="12" Width="150" Height="150"/> | |
| 77 | 新增: </Grid> | |
| 78 | 新增: | |
| 79 | 新增: <VisualStateManager.VisualStateGroups> | |
| 80 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 81 | 新增: <VisualStateGroup.Transitions> | |
| 82 | 新增: <VisualTransition GeneratedDuration="0:0:.3" /> | |
| 83 | 新增: <VisualTransition GeneratedDuration="0" | |
| 84 | 新增: To="Pressed" /> | |
| 85 | 新增: </VisualStateGroup.Transitions> | |
| 86 | 新增: <VisualState x:Name="NormalState" /> | |
| 87 | 新增: <VisualState x:Name="MouseOver"> | |
| 88 | 新增: <Storyboard > | |
| 89 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 90 | 新增: Storyboard.TargetName="Border" To="{DynamicResource ThemeColor}" > | |
| 91 | 新增: <ColorAnimation.EasingFunction> | |
| 92 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 93 | 新增: </ColorAnimation.EasingFunction> | |
| 94 | 新增: </ColorAnimation> | |
| 95 | 新增: | |
| 96 | 新增: <DoubleAnimation Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Opacity)" | |
| 97 | 新增: Storyboard.TargetName="ShadowBorder" To="0.3" > | |
| 98 | 新增: <DoubleAnimation.EasingFunction> | |
| 99 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 100 | 新增: </DoubleAnimation.EasingFunction> | |
| 101 | 新增: </DoubleAnimation> | |
| 102 | 新增: | |
| 103 | 新增: | |
| 104 | 新增: </Storyboard> | |
| 105 | 新增: </VisualState> | |
| 106 | 新增: <VisualState x:Name="Pressed"> | |
| 107 | 新增: | |
| 108 | 新增: </VisualState> | |
| 109 | 新增: </VisualStateGroup> | |
| 110 | 新增: </VisualStateManager.VisualStateGroups> | |
| 111 | 新增: </Grid> | |
| 112 | 新增: <ControlTemplate.Triggers> | |
| 113 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 114 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 115 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 116 | 新增: </Trigger> | |
| 117 | 新增: </ControlTemplate.Triggers> | |
| 118 | 新增: </ControlTemplate> | |
| 119 | 新增: </Setter.Value> | |
| 120 | 新增: </Setter> | |
| 121 | 新增: </Style> | |
| 122 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,84 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartItemTypeColumn}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <!--<Setter Property="Margin" Value="5,0"/>--> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartItemTypeColumn}"> | |
| 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 | |
| 23 | 新增: x:Name="ValueBlockObj" | |
| 24 | 新增: RadiusX="4" | |
| 25 | 新增: RadiusY="4" | |
| 26 | 新增: Fill="#cccccc" | |
| 27 | 新增: Width="{Binding ElementName=ValueContainer,Path=ActualWidth}" | |
| 28 | 新增: VerticalAlignment="Bottom" | |
| 29 | 新增: HorizontalAlignment="Center" | |
| 30 | 新增: /> | |
| 31 | 新增: </Border> | |
| 32 | 新增: <TextBlock Grid.Row="1" FontSize="12" HorizontalAlignment="Center" Margin="0,10,0,0" Text="{TemplateBinding ColumnName}" Foreground="#FF8A8A8A" /> | |
| 33 | 新增: <VisualStateManager.VisualStateGroups> | |
| 34 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 35 | 新增: <VisualStateGroup.Transitions> | |
| 36 | 新增: <VisualTransition GeneratedDuration="0:0:.2" /> | |
| 37 | 新增: <VisualTransition GeneratedDuration="0" | |
| 38 | 新增: To="Pressed" /> | |
| 39 | 新增: </VisualStateGroup.Transitions> | |
| 40 | 新增: <VisualState x:Name="NormalState" /> | |
| 41 | 新增: <VisualState x:Name="MouseOver"> | |
| 42 | 新增: <Storyboard > | |
| 43 | 新增: <ColorAnimation Storyboard.TargetProperty="(Canvas.Background).(SolidColorBrush.Color)" | |
| 44 | 新增: Storyboard.TargetName="ValueContainer" To="#7FF1F1F1" > | |
| 45 | 新增: <ColorAnimation.EasingFunction> | |
| 46 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 47 | 新增: </ColorAnimation.EasingFunction> | |
| 48 | 新增: </ColorAnimation> | |
| 49 | 新增: <!--<ColorAnimation Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 50 | 新增: Storyboard.TargetName="IconBorder" To="#2b20d9" > | |
| 51 | 新增: <ColorAnimation.EasingFunction> | |
| 52 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 53 | 新增: </ColorAnimation.EasingFunction> | |
| 54 | 新增: </ColorAnimation> | |
| 55 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 56 | 新增: Storyboard.TargetName="IconBorder" To="#ffffff" > | |
| 57 | 新增: <ColorAnimation.EasingFunction> | |
| 58 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 59 | 新增: </ColorAnimation.EasingFunction> | |
| 60 | 新增: </ColorAnimation>--> | |
| 61 | 新增: </Storyboard> | |
| 62 | 新增: </VisualState> | |
| 63 | 新增: <VisualState x:Name="Pressed"> | |
| 64 | 新增: | |
| 65 | 新增: </VisualState> | |
| 66 | 新增: </VisualStateGroup> | |
| 67 | 新增: </VisualStateManager.VisualStateGroups> | |
| 68 | 新增: </Grid> | |
| 69 | 新增: | |
| 70 | 新增: | |
| 71 | 新增: | |
| 72 | 新增: | |
| 73 | 新增: | |
| 74 | 新增: <ControlTemplate.Triggers> | |
| 75 | 新增: <!--<Trigger Property="IsLoading" Value="True"> | |
| 76 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 77 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 78 | 新增: </Trigger>--> | |
| 79 | 新增: </ControlTemplate.Triggers> | |
| 80 | 新增: </ControlTemplate> | |
| 81 | 新增: </Setter.Value> | |
| 82 | 新增: </Setter> | |
| 83 | 新增: </Style> | |
| 84 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,74 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeMonth}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Margin" Value="5"/> | |
| 11 | 新增: <Setter Property="HorizontalAlignment" Value="Center"/> | |
| 12 | 新增: <Setter Property="VerticalAlignment" Value="Center"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeMonth}"> | |
| 17 | 新增: <Grid > | |
| 18 | 新增: <Grid x:Name="Normal"> | |
| 19 | 新增: <Border> | |
| 20 | 新增: <!--<Border.Effect> | |
| 21 | 新增: <DropShadowEffect BlurRadius="14" ShadowDepth="0" Direction="0" Opacity="0.05"/> | |
| 22 | 新增: </Border.Effect>--> | |
| 23 | 新增: <Border x:Name="Border" Margin="0" Background="{DynamicResource StandardBackgroundBrush}" CornerRadius="4" Width="20" Height="20" BorderThickness="0" BorderBrush="#ffffff"> | |
| 24 | 新增: | |
| 25 | 新增: <Border.Clip> | |
| 26 | 新增: <RectangleGeometry RadiusX="4" RadiusY="4" Rect="0,0,20,20"/> | |
| 27 | 新增: </Border.Clip> | |
| 28 | 新增: | |
| 29 | 新增: <Grid> | |
| 30 | 新增: <!--<TextBlock x:Name="ValueTextObj"/>--> | |
| 31 | 新增: <Rectangle | |
| 32 | 新增: x:Name="ValueBlockObj" | |
| 33 | 新增: | |
| 34 | 新增: | |
| 35 | 新增: HorizontalAlignment="Stretch" | |
| 36 | 新增: VerticalAlignment="Center" | |
| 37 | 新增: > | |
| 38 | 新增: <Rectangle.Effect> | |
| 39 | 新增: <BlurEffect KernelType="Gaussian" Radius="20"/> | |
| 40 | 新增: </Rectangle.Effect> | |
| 41 | 新增: <Rectangle.Fill> | |
| 42 | 新增: <LinearGradientBrush EndPoint="2,1" StartPoint="-2,0"> | |
| 43 | 新增: <GradientStop Color="White"/> | |
| 44 | 新增: <GradientStop Color="#ff305b" Offset="1"/> | |
| 45 | 新增: </LinearGradientBrush> | |
| 46 | 新增: </Rectangle.Fill> | |
| 47 | 新增: </Rectangle> | |
| 48 | 新增: </Grid> | |
| 49 | 新增: | |
| 50 | 新增: </Border> | |
| 51 | 新增: </Border> | |
| 52 | 新增: | |
| 53 | 新增: </Grid> | |
| 54 | 新增: | |
| 55 | 新增: <Grid x:Name="Loading" Visibility="Collapsed"> | |
| 56 | 新增: <base:Placeholder CornerRadius="12" Width="150" Height="150"/> | |
| 57 | 新增: </Grid> | |
| 58 | 新增: </Grid> | |
| 59 | 新增: <ControlTemplate.Triggers> | |
| 60 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 61 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 62 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 63 | 新增: </Trigger> | |
| 64 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 65 | 新增: <Setter TargetName="Border" Property="BorderThickness" Value="1"/> | |
| 66 | 新增: <Setter TargetName="Border" Property="Background" Value="White"/> | |
| 67 | 新增: | |
| 68 | 新增: </Trigger> | |
| 69 | 新增: </ControlTemplate.Triggers> | |
| 70 | 新增: </ControlTemplate> | |
| 71 | 新增: </Setter.Value> | |
| 72 | 新增: </Setter> | |
| 73 | 新增: </Style> | |
| 74 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,65 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeRadar}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <!--<Setter Property="Margin" Value="0,5"/>--> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeRadar}"> | |
| 15 | 新增: <Grid Background="{TemplateBinding Background}"> | |
| 16 | 新增: <Grid x:Name="Normal"> | |
| 17 | 新增: | |
| 18 | 新增: <Canvas x:Name="Canvas" RenderTransformOrigin=".5,.5"> | |
| 19 | 新增: <Canvas.RenderTransform> | |
| 20 | 新增: <RotateTransform Angle="-90"></RotateTransform> | |
| 21 | 新增: </Canvas.RenderTransform> | |
| 22 | 新增: </Canvas> | |
| 23 | 新增: | |
| 24 | 新增: <Rectangle | |
| 25 | 新增: x:Name="ValueBlockObj" | |
| 26 | 新增: Width="20" | |
| 27 | 新增: Height="20" | |
| 28 | 新增: | |
| 29 | 新增: HorizontalAlignment="Center" | |
| 30 | 新增: VerticalAlignment="Center" | |
| 31 | 新增: Margin="0" | |
| 32 | 新增: RenderTransformOrigin="0.5,0.5" | |
| 33 | 新增: | |
| 34 | 新增: > | |
| 35 | 新增: <Rectangle.Effect> | |
| 36 | 新增: <BlurEffect RenderOptions.BitmapScalingMode="LowQuality" Radius="35" RenderingBias="Performance"/> | |
| 37 | 新增: </Rectangle.Effect> | |
| 38 | 新增: <Rectangle.Fill> | |
| 39 | 新增: <LinearGradientBrush RenderOptions.BitmapScalingMode="LowQuality" EndPoint="2,1" StartPoint="-2,0"> | |
| 40 | 新增: <GradientStop Color="White"/> | |
| 41 | 新增: <GradientStop Color="#ff305b" Offset="1"/> | |
| 42 | 新增: </LinearGradientBrush> | |
| 43 | 新增: </Rectangle.Fill> | |
| 44 | 新增: <Rectangle.RenderTransform> | |
| 45 | 新增: <ScaleTransform ScaleX="3" ScaleY="3" CenterX="0" CenterY="0"/> | |
| 46 | 新增: </Rectangle.RenderTransform> | |
| 47 | 新增: </Rectangle> | |
| 48 | 新增: </Grid> | |
| 49 | 新增: <Grid x:Name="Loading"> | |
| 50 | 新增: </Grid> | |
| 51 | 新增: </Grid> | |
| 52 | 新增: | |
| 53 | 新增: <!--</Border>--> | |
| 54 | 新增: | |
| 55 | 新增: <ControlTemplate.Triggers> | |
| 56 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 57 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 58 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 59 | 新增: </Trigger> | |
| 60 | 新增: </ControlTemplate.Triggers> | |
| 61 | 新增: </ControlTemplate> | |
| 62 | 新增: </Setter.Value> | |
| 63 | 新增: </Setter> | |
| 64 | 新增: </Style> | |
| 65 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,36 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:s="clr-namespace:System;assembly=mscorlib" | |
| 4 | 新增: xmlns:m="clr-namespace:System.Media;assembly=System" | |
| 5 | 新增: > | |
| 6 | 新增: <s:String x:Key="ThemeName">Default</s:String> | |
| 7 | 新增: <!--【主题颜色】--> | |
| 8 | 新增: <Color x:Key="ThemeColor">#FF8780F7</Color> | |
| 9 | 新增: | |
| 10 | 新增: <!--鼠标经过背景颜色--> | |
| 11 | 新增: <Color x:Key="HoverBackgroundColor">#CC383838</Color> | |
| 12 | 新增: | |
| 13 | 新增: <!--【通用笔刷】--> | |
| 14 | 新增: <!--主题颜色笔刷--> | |
| 15 | 新增: <SolidColorBrush x:Key="ThemeBrush" Color="{StaticResource ThemeColor}" /> | |
| 16 | 新增: <!---鼠标经过背景颜色--> | |
| 17 | 新增: <SolidColorBrush x:Key="HoverBackgroundBrush" Color="{StaticResource HoverBackgroundColor}" /> | |
| 18 | 新增: <!--标准背景颜色--> | |
| 19 | 新增: <SolidColorBrush x:Key="StandardBackgroundBrush" Color="#7F777777" /> | |
| 20 | 新增: <SolidColorBrush x:Key="StandardBackgroundBrush2" Color="#646464" /> | |
| 21 | 新增: | |
| 22 | 新增: <!--【窗口】--> | |
| 23 | 新增: <SolidColorBrush x:Key="StandardTextBrush" Color="#ffffff" /> | |
| 24 | 新增: <SolidColorBrush x:Key="SubTextBrush" Color="#ccc" /> | |
| 25 | 新增: | |
| 26 | 新增: <!--窗口背景颜色--> | |
| 27 | 新增: <LinearGradientBrush x:Key="WindowBackground" > | |
| 28 | 新增: <GradientStop Color="#161616" Offset="0"/> | |
| 29 | 新增: <GradientStop Color="#161616" Offset="0.8"/> | |
| 30 | 新增: <GradientStop Color="#FF14104A" Offset="1"/> | |
| 31 | 新增: </LinearGradientBrush> | |
| 32 | 新增: <SolidColorBrush x:Key="WindowContentBackground" Color="#FF383636" Opacity=".5"/> | |
| 33 | 新增: <SolidColorBrush x:Key="WindowContentBorder" Color="#FF121010"/> | |
| 34 | 新增: <SolidColorBrush x:Key="CardBorder" Color="Transparent"/> | |
| 35 | 新增: | |
| 36 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,163 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.DatePickerBar" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:list="clr-namespace:UI.Controls.List"> | |
| 6 | 新增: <Style TargetType="{x:Type local:DatePickerBar}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:DatePickerBar}"> | |
| 14 | 新增: <Border> | |
| 15 | 新增: <StackPanel> | |
| 16 | 新增: <Grid x:Name="header"> | |
| 17 | 新增: <Border | |
| 18 | 新增: Width="{Binding ElementName=Date,Path=ActualWidth}" | |
| 19 | 新增: Height="{Binding ElementName=Date,Path=ActualHeight}" | |
| 20 | 新增: Background="{Binding ElementName=Date,Path=Background}" | |
| 21 | 新增: CornerRadius="{Binding ElementName=Date,Path=CornerRadius}" | |
| 22 | 新增: Padding="{Binding ElementName=Date,Path=Padding}" | |
| 23 | 新增: Margin="{Binding ElementName=Date,Path=Margin}" | |
| 24 | 新增: | |
| 25 | 新增: HorizontalAlignment="Left" | |
| 26 | 新增: > | |
| 27 | 新增: <Border.Effect> | |
| 28 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 29 | 新增: </Border.Effect> | |
| 30 | 新增: </Border> | |
| 31 | 新增: <Border | |
| 32 | 新增: x:Name="Date" | |
| 33 | 新增: Background="{DynamicResource StandardBackgroundBrush}" | |
| 34 | 新增: Padding="15,8" | |
| 35 | 新增: CornerRadius="12" | |
| 36 | 新增: Margin="0,0,0,10" | |
| 37 | 新增: HorizontalAlignment="Left" | |
| 38 | 新增: ToolTip="选择"> | |
| 39 | 新增: <!--<Border.Effect> | |
| 40 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 41 | 新增: </Border.Effect>--> | |
| 42 | 新增: <StackPanel Orientation="Horizontal" > | |
| 43 | 新增: <base:Icon x:Name="DateIcon" Margin="0,0,5,0" IconType="DateTime" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" HorizontalAlignment="Right"/> | |
| 44 | 新增: | |
| 45 | 新增: <TextBlock Foreground="{DynamicResource StandardTextBrush}" FontSize="15" Text="{TemplateBinding SelectedDateString}" Margin="0,0" VerticalAlignment="Center" HorizontalAlignment="Left"/> | |
| 46 | 新增: <base:Icon x:Name="PopupIcon" Width="25" Height="25" Margin="10,0,0,0" FontSize="10" IconType="ChevronDown" VerticalAlignment="Center" HorizontalAlignment="Right"> | |
| 47 | 新增: <base:Icon.RenderTransform> | |
| 48 | 新增: <RotateTransform Angle="0" CenterX="12.5" CenterY="12.5"/> | |
| 49 | 新增: </base:Icon.RenderTransform> | |
| 50 | 新增: </base:Icon> | |
| 51 | 新增: </StackPanel> | |
| 52 | 新增: | |
| 53 | 新增: </Border> | |
| 54 | 新增: <Popup | |
| 55 | 新增: x:Name="DatePickerPopup" | |
| 56 | 新增: AllowsTransparency="True" | |
| 57 | 新增: IsOpen="{TemplateBinding IsShowDatePickerPopup}" | |
| 58 | 新增: Placement="Bottom" | |
| 59 | 新增: PlacementTarget="{Binding ElementName=Date}" | |
| 60 | 新增: PopupAnimation="Slide" | |
| 61 | 新增: StaysOpen="False"> | |
| 62 | 新增: <Border | |
| 63 | 新增: Background="{DynamicResource StandardBackgroundBrush2}" | |
| 64 | 新增: CornerRadius="12" | |
| 65 | 新增: Padding="10" | |
| 66 | 新增: Margin="10"> | |
| 67 | 新增: <Border.Effect> | |
| 68 | 新增: <DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity=".2"/> | |
| 69 | 新增: </Border.Effect> | |
| 70 | 新增: | |
| 71 | 新增: <Grid> | |
| 72 | 新增: <Path | |
| 73 | 新增: Width="15" | |
| 74 | 新增: Height="15" | |
| 75 | 新增: SnapsToDevicePixels="False" | |
| 76 | 新增: Data="M 0 15 L 7.5 7.5 L 15 15" Fill="{DynamicResource StandardBackgroundBrush2}" | |
| 77 | 新增: Stroke="{DynamicResource StandardBackgroundBrush2}" | |
| 78 | 新增: StrokeThickness="1" | |
| 79 | 新增: VerticalAlignment="Top" | |
| 80 | 新增: HorizontalAlignment="Left" | |
| 81 | 新增: Margin="0,-25,0,0" | |
| 82 | 新增: /> | |
| 83 | 新增: <StackPanel Orientation="Horizontal"> | |
| 84 | 新增: <!--<ScrollViewer x:Name="YearsListScrollViewer" CanContentScroll="True" VerticalScrollBarVisibility="Hidden">--> | |
| 85 | 新增: <StackPanel > | |
| 86 | 新增: <TextBlock Text="年份" HorizontalAlignment="Center"/> | |
| 87 | 新增: <list:BaseList x:Name="YearsList" Height="120" Margin="0,5,0,0"> | |
| 88 | 新增: | |
| 89 | 新增: </list:BaseList> | |
| 90 | 新增: </StackPanel> | |
| 91 | 新增: <StackPanel x:Name="MonthSelect" Margin="10,0,0,0" Visibility="Collapsed"> | |
| 92 | 新增: <TextBlock Text="月份" HorizontalAlignment="Center"/> | |
| 93 | 新增: <list:BaseList x:Name="MonthsList" Height="120" Margin="0,5,0,0" HorizontalAlignment="Center"> | |
| 94 | 新增: | |
| 95 | 新增: </list:BaseList> | |
| 96 | 新增: </StackPanel> | |
| 97 | 新增: <!--</ScrollViewer>--> | |
| 98 | 新增: | |
| 99 | 新增: </StackPanel> | |
| 100 | 新增: | |
| 101 | 新增: </Grid> | |
| 102 | 新增: | |
| 103 | 新增: </Border> | |
| 104 | 新增: </Popup> | |
| 105 | 新增: </Grid> | |
| 106 | 新增: <Grid x:Name="ItemSelect"> | |
| 107 | 新增: <Border Background="{DynamicResource StandardBackgroundBrush}" Padding="10" CornerRadius="10" Margin="0,10,0,0"> | |
| 108 | 新增: <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Hidden"> | |
| 109 | 新增: <StackPanel | |
| 110 | 新增: Orientation="Horizontal" | |
| 111 | 新增: x:Name="Container"> | |
| 112 | 新增: | |
| 113 | 新增: </StackPanel> | |
| 114 | 新增: </ScrollViewer> | |
| 115 | 新增: </Border> | |
| 116 | 新增: </Grid> | |
| 117 | 新增: </StackPanel> | |
| 118 | 新增: | |
| 119 | 新增: <VisualStateManager.VisualStateGroups> | |
| 120 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 121 | 新增: <VisualStateGroup.Transitions> | |
| 122 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 123 | 新增: <VisualTransition GeneratedDuration="0" | |
| 124 | 新增: To="Pressed" /> | |
| 125 | 新增: </VisualStateGroup.Transitions> | |
| 126 | 新增: <VisualState x:Name="Normal" /> | |
| 127 | 新增: <VisualState x:Name="DateMouseOver"> | |
| 128 | 新增: <Storyboard> | |
| 129 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 130 | 新增: Storyboard.TargetName="Date"> | |
| 131 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 132 | 新增: Value="{DynamicResource HoverBackgroundColor}" /> | |
| 133 | 新增: </ColorAnimationUsingKeyFrames> | |
| 134 | 新增: </Storyboard> | |
| 135 | 新增: </VisualState> | |
| 136 | 新增: <VisualState x:Name="ShowPopup"> | |
| 137 | 新增: <Storyboard> | |
| 138 | 新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(base:Icon.RenderTransform).(RotateTransform.Angle)" | |
| 139 | 新增: Storyboard.TargetName="PopupIcon"> | |
| 140 | 新增: <EasingDoubleKeyFrame KeyTime="0" | |
| 141 | 新增: Value="-180" /> | |
| 142 | 新增: | |
| 143 | 新增: </DoubleAnimationUsingKeyFrames> | |
| 144 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(base:Icon.Foreground).(SolidColorBrush.Color)" | |
| 145 | 新增: Storyboard.TargetName="DateIcon"> | |
| 146 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 147 | 新增: Value="{DynamicResource ThemeColor}" /> | |
| 148 | 新增: </ColorAnimationUsingKeyFrames> | |
| 149 | 新增: </Storyboard> | |
| 150 | 新增: </VisualState> | |
| 151 | 新增: </VisualStateGroup> | |
| 152 | 新增: </VisualStateManager.VisualStateGroups> | |
| 153 | 新增: </Border> | |
| 154 | 新增: <ControlTemplate.Triggers> | |
| 155 | 新增: <Trigger Property="ShowType" Value="Year"> | |
| 156 | 新增: <Setter TargetName="ItemSelect" Property="Visibility" Value="Collapsed"/> | |
| 157 | 新增: </Trigger> | |
| 158 | 新增: </ControlTemplate.Triggers> | |
| 159 | 新增: </ControlTemplate> | |
| 160 | 新增: </Setter.Value> | |
| 161 | 新增: </Setter> | |
| 162 | 新增: </Style> | |
| 163 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,78 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.DatePickerBar" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:DatePickerBarItem}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="Cursor" Value="Hand"/> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:DatePickerBarItem}"> | |
| 14 | 新增: <Border> | |
| 15 | 新增: | |
| 16 | 新增: | |
| 17 | 新增: <Grid Margin="2"> | |
| 18 | 新增: | |
| 19 | 新增: <Border x:Name="Bg" Background="#f9f9f9" Width="45" Height="45" CornerRadius="25"> | |
| 20 | 新增: <TextBlock x:Name="Text" Foreground="#5c5c5c" Text="{TemplateBinding Title}" HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
| 21 | 新增: </Border> | |
| 22 | 新增: </Grid> | |
| 23 | 新增: <VisualStateManager.VisualStateGroups> | |
| 24 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 25 | 新增: <VisualStateGroup.Transitions> | |
| 26 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 27 | 新增: <VisualTransition GeneratedDuration="0" | |
| 28 | 新增: To="Pressed" /> | |
| 29 | 新增: </VisualStateGroup.Transitions> | |
| 30 | 新增: <VisualState x:Name="Normal" /> | |
| 31 | 新增: <VisualState x:Name="MouseOver"> | |
| 32 | 新增: <Storyboard> | |
| 33 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 34 | 新增: Storyboard.TargetName="Bg" To="{DynamicResource HoverBackgroundColor}"> | |
| 35 | 新增: <ColorAnimation.EasingFunction> | |
| 36 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 37 | 新增: </ColorAnimation.EasingFunction> | |
| 38 | 新增: </ColorAnimation> | |
| 39 | 新增: <ColorAnimation Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" | |
| 40 | 新增: Storyboard.TargetName="Text" To="#ffffff"> | |
| 41 | 新增: <ColorAnimation.EasingFunction> | |
| 42 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 43 | 新增: </ColorAnimation.EasingFunction> | |
| 44 | 新增: </ColorAnimation> | |
| 45 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 46 | 新增: Storyboard.TargetName="Bg" > | |
| 47 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 48 | 新增: Value="#192B20D9"/> | |
| 49 | 新增: | |
| 50 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 51 | 新增: | |
| 52 | 新增: </Storyboard> | |
| 53 | 新增: </VisualState> | |
| 54 | 新增: <VisualState x:Name="Pressed"> | |
| 55 | 新增: | |
| 56 | 新增: </VisualState> | |
| 57 | 新增: </VisualStateGroup> | |
| 58 | 新增: </VisualStateManager.VisualStateGroups> | |
| 59 | 新增: </Border> | |
| 60 | 新增: <ControlTemplate.Triggers> | |
| 61 | 新增: <Trigger Property="IsSelected" | |
| 62 | 新增: Value="True"> | |
| 63 | 新增: <Setter TargetName="Bg" Property="Background" Value="{DynamicResource ThemeBrush}"/> | |
| 64 | 新增: <Setter TargetName="Text" Property="Foreground" Value="white"/> | |
| 65 | 新增: | |
| 66 | 新增: </Trigger> | |
| 67 | 新增: <Trigger Property="IsDisabled" | |
| 68 | 新增: Value="True"> | |
| 69 | 新增: <!--<Setter TargetName="Bg" Property="Background" Value="#2b20d9"/>--> | |
| 70 | 新增: <Setter TargetName="Text" Property="Foreground" Value="#ccc"/> | |
| 71 | 新增: | |
| 72 | 新增: </Trigger> | |
| 73 | 新增: </ControlTemplate.Triggers> | |
| 74 | 新增: </ControlTemplate> | |
| 75 | 新增: </Setter.Value> | |
| 76 | 新增: </Setter> | |
| 77 | 新增: </Style> | |
| 78 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,92 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Input" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:InputBox}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Width" Value="auto"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Height" Value="35"/> | |
| 12 | 新增: <Setter Property="Cursor" Value="IBeam"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 15 | 新增: <Setter Property="Template"> | |
| 16 | 新增: <Setter.Value> | |
| 17 | 新增: <ControlTemplate TargetType="{x:Type local:InputBox}"> | |
| 18 | 新增: <Border Background="{TemplateBinding Background}" x:Name="Border"> | |
| 19 | 新增: | |
| 20 | 新增: <Grid> | |
| 21 | 新增: <Border x:Name="BoxBorder" BorderBrush="#a3a3a3" BorderThickness="2" CornerRadius="4"> | |
| 22 | 新增: <Grid> | |
| 23 | 新增: <TextBlock Margin="5,0" x:Name="Placeholder" Text="{TemplateBinding Placeholder}" Foreground="#a3a3a3" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="Center" Visibility="Collapsed"/> | |
| 24 | 新增: <ScrollViewer Margin="5,0" | |
| 25 | 新增: x:Name="PART_ContentHost" VerticalAlignment="Center"/> | |
| 26 | 新增: </Grid> | |
| 27 | 新增: | |
| 28 | 新增: </Border> | |
| 29 | 新增: <Popup | |
| 30 | 新增: x:Name="ErrorPopup" | |
| 31 | 新增: AllowsTransparency="True" | |
| 32 | 新增: IsOpen="{TemplateBinding IsShowError}" | |
| 33 | 新增: Placement="Bottom" | |
| 34 | 新增: PlacementTarget="{Binding ElementName=BoxBorder}" | |
| 35 | 新增: PopupAnimation="Slide" | |
| 36 | 新增: StaysOpen="False"> | |
| 37 | 新增: <Border | |
| 38 | 新增: Background="Red" | |
| 39 | 新增: CornerRadius="12" | |
| 40 | 新增: Padding="10" | |
| 41 | 新增: Margin="10"> | |
| 42 | 新增: <Border.Effect> | |
| 43 | 新增: <DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity=".2"/> | |
| 44 | 新增: </Border.Effect> | |
| 45 | 新增: | |
| 46 | 新增: <Grid> | |
| 47 | 新增: <Path | |
| 48 | 新增: Width="15" | |
| 49 | 新增: Height="15" | |
| 50 | 新增: SnapsToDevicePixels="False" | |
| 51 | 新增: Data="M 0 15 L 7.5 7.5 L 15 15" Fill="Red" | |
| 52 | 新增: Stroke="Red" | |
| 53 | 新增: StrokeThickness="1" | |
| 54 | 新增: VerticalAlignment="Top" | |
| 55 | 新增: HorizontalAlignment="Left" | |
| 56 | 新增: Margin="0,-25,0,0" | |
| 57 | 新增: /> | |
| 58 | 新增: <TextBlock Foreground="White" Text="{TemplateBinding Error}"/> | |
| 59 | 新增: </Grid> | |
| 60 | 新增: | |
| 61 | 新增: </Border> | |
| 62 | 新增: </Popup> | |
| 63 | 新增: | |
| 64 | 新增: </Grid> | |
| 65 | 新增: <VisualStateManager.VisualStateGroups> | |
| 66 | 新增: <VisualStateGroup Name="FocusStates"> | |
| 67 | 新增: <VisualState Name="Unfocused"/> | |
| 68 | 新增: <!--Right here--> | |
| 69 | 新增: <VisualState Name="Focused"> | |
| 70 | 新增: <Storyboard> | |
| 71 | 新增: <ColorAnimation Storyboard.TargetName="BoxBorder" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 72 | 新增: To="{DynamicResource ThemeColor}" | |
| 73 | 新增: Duration="0:0:.4"> | |
| 74 | 新增: <ColorAnimation.EasingFunction> | |
| 75 | 新增: <QuadraticEase/> | |
| 76 | 新增: </ColorAnimation.EasingFunction> | |
| 77 | 新增: </ColorAnimation> | |
| 78 | 新增: </Storyboard> | |
| 79 | 新增: </VisualState> | |
| 80 | 新增: </VisualStateGroup> | |
| 81 | 新增: </VisualStateManager.VisualStateGroups> | |
| 82 | 新增: </Border> | |
| 83 | 新增: <ControlTemplate.Triggers> | |
| 84 | 新增: <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Value="{x:Static sys:String.Empty}"> | |
| 85 | 新增: <Setter TargetName="Placeholder" Property="Visibility" Value="Visible" /> | |
| 86 | 新增: </DataTrigger> | |
| 87 | 新增: </ControlTemplate.Triggers> | |
| 88 | 新增: </ControlTemplate> | |
| 89 | 新增: </Setter.Value> | |
| 90 | 新增: </Setter> | |
| 91 | 新增: </Style> | |
| 92 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,40 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.List" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:BaseList}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="UseLayoutRounding" Value="True"/> | |
| 10 | 新增: | |
| 11 | 新增: <!--<Setter Property="MinWidth" Value="150"/>--> | |
| 12 | 新增: <Setter Property="Height" Value="auto"/> | |
| 13 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:BaseList}"> | |
| 17 | 新增: <Border Background="{TemplateBinding Background}" x:Name="Border"> | |
| 18 | 新增: | |
| 19 | 新增: <Grid> | |
| 20 | 新增: <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Hidden"> | |
| 21 | 新增: <StackPanel x:Name="Container"> | |
| 22 | 新增: | |
| 23 | 新增: </StackPanel> | |
| 24 | 新增: </ScrollViewer> | |
| 25 | 新增: </Grid> | |
| 26 | 新增: | |
| 27 | 新增: </Border> | |
| 28 | 新增: <ControlTemplate.Triggers> | |
| 29 | 新增: <!--<Trigger Property="Icon" Value="None"> | |
| 30 | 新增: <Setter TargetName="Icon" Property="Visibility" Value="Collapsed"/> | |
| 31 | 新增: </Trigger> | |
| 32 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 33 | 新增: <Setter TargetName="BoxBorder" Property="BorderThickness" Value="0"/> | |
| 34 | 新增: </Trigger>--> | |
| 35 | 新增: </ControlTemplate.Triggers> | |
| 36 | 新增: </ControlTemplate> | |
| 37 | 新增: </Setter.Value> | |
| 38 | 新增: </Setter> | |
| 39 | 新增: </Style> | |
| 40 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,85 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.List" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:BaseListItem}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="UseLayoutRounding" Value="True"/> | |
| 10 | 新增: | |
| 11 | 新增: <!--<Setter Property="MinWidth" Value="150"/>--> | |
| 12 | 新增: <Setter Property="Height" Value="35"/> | |
| 13 | 新增: <Setter Property="Margin" Value="0,10,0,0"/> | |
| 14 | 新增: | |
| 15 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 16 | 新增: <Setter Property="Template"> | |
| 17 | 新增: <Setter.Value> | |
| 18 | 新增: <ControlTemplate TargetType="{x:Type local:BaseListItem}"> | |
| 19 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 20 | 新增: | |
| 21 | 新增: <Border BorderBrush="#f3f3f3" BorderThickness="0" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="{DynamicResource StandardBackgroundBrush}" > | |
| 22 | 新增: <Grid VerticalAlignment="Center" Margin="10,0"> | |
| 23 | 新增: <Grid.ColumnDefinitions> | |
| 24 | 新增: <ColumnDefinition Width="9*"/> | |
| 25 | 新增: <ColumnDefinition Width="1*"/> | |
| 26 | 新增: </Grid.ColumnDefinitions> | |
| 27 | 新增: <TextBlock Text="{TemplateBinding Text}"/> | |
| 28 | 新增: </Grid> | |
| 29 | 新增: | |
| 30 | 新增: </Border> | |
| 31 | 新增: <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}"> | |
| 32 | 新增: <Border.Effect> | |
| 33 | 新增: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="#ccc" Opacity=".05"/> | |
| 34 | 新增: </Border.Effect> | |
| 35 | 新增: </Border> | |
| 36 | 新增: | |
| 37 | 新增: <VisualStateManager.VisualStateGroups> | |
| 38 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 39 | 新增: <VisualStateGroup.Transitions> | |
| 40 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 41 | 新增: <VisualTransition GeneratedDuration="0" | |
| 42 | 新增: To="Pressed" /> | |
| 43 | 新增: </VisualStateGroup.Transitions> | |
| 44 | 新增: <VisualState x:Name="Normal" /> | |
| 45 | 新增: <VisualState x:Name="MouseOver"> | |
| 46 | 新增: <Storyboard> | |
| 47 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Color)" | |
| 48 | 新增: Storyboard.TargetName="Shadow"> | |
| 49 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 50 | 新增: Value="{DynamicResource ThemeColor}"/> | |
| 51 | 新增: </ColorAnimationUsingKeyFrames> | |
| 52 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 53 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 54 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 55 | 新增: Value="#192B20D9" /> | |
| 56 | 新增: </ColorAnimationUsingKeyFrames> | |
| 57 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Button.Foreground).(SolidColorBrush.Color)" | |
| 58 | 新增: > | |
| 59 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 60 | 新增: Value="White" /> | |
| 61 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 62 | 新增: </Storyboard> | |
| 63 | 新增: </VisualState> | |
| 64 | 新增: <VisualState x:Name="Pressed"> | |
| 65 | 新增: | |
| 66 | 新增: </VisualState> | |
| 67 | 新增: </VisualStateGroup> | |
| 68 | 新增: </VisualStateManager.VisualStateGroups> | |
| 69 | 新增: | |
| 70 | 新增: </Grid> | |
| 71 | 新增: <ControlTemplate.Triggers> | |
| 72 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 73 | 新增: <Setter TargetName="BoxBorder" Property="Background" Value="{DynamicResource ThemeBrush}"/> | |
| 74 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 75 | 新增: | |
| 76 | 新增: </Trigger> | |
| 77 | 新增: <!--<Trigger Property="IsMouseOver" Value="True"> | |
| 78 | 新增: <Setter TargetName="BoxBorder" Property="BorderThickness" Value="0"/> | |
| 79 | 新增: </Trigger>--> | |
| 80 | 新增: </ControlTemplate.Triggers> | |
| 81 | 新增: </ControlTemplate> | |
| 82 | 新增: </Setter.Value> | |
| 83 | 新增: </Setter> | |
| 84 | 新增: </Style> | |
| 85 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,45 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Navigation" | |
| 4 | 新增: > | |
| 5 | 新增: <Style TargetType="{x:Type local:Navigation}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="MinWidth" Value="44"/> | |
| 9 | 新增: <Setter Property="Height" Value="auto"/> | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 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"/> | |
| 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="{DynamicResource ThemeBrush}" 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"/> | |
| 38 | 新增: </Grid> | |
| 39 | 新增: <!--</Border>--> | |
| 40 | 新增: | |
| 41 | 新增: </ControlTemplate> | |
| 42 | 新增: </Setter.Value> | |
| 43 | 新增: </Setter> | |
| 44 | 新增: </Style> | |
| 45 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,146 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Navigation" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:NavigationItem}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="Width" Value="60"/> | |
| 9 | 新增: <!--<Setter Property="MinHeight" Value="44"/>--> | |
| 10 | 新增: <Setter Property="Height" Value="60"/> | |
| 11 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:NavigationItem}"> | |
| 15 | 新增: <Border Background="Transparent" CornerRadius="5" x:Name="Border"> | |
| 16 | 新增: <!--<Border.Background> | |
| 17 | 新增: <SolidColorBrush Color="{TemplateBinding Background}" Opacity="1"/> | |
| 18 | 新增: </Border.Background>--> | |
| 19 | 新增: <VisualStateManager.VisualStateGroups> | |
| 20 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 21 | 新增: <!--<VisualStateGroup.Transitions> | |
| 22 | 新增: <VisualTransition GeneratedDuration="0:0:0.15" /> | |
| 23 | 新增: <VisualTransition GeneratedDuration="0" | |
| 24 | 新增: To="Pressed" /> | |
| 25 | 新增: </VisualStateGroup.Transitions>--> | |
| 26 | 新增: <VisualState x:Name="Normal" /> | |
| 27 | 新增: <VisualState x:Name="MouseOver"> | |
| 28 | 新增: <Storyboard> | |
| 29 | 新增: <ColorAnimationUsingKeyFrames | |
| 30 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 31 | 新增: Storyboard.TargetName="Border" | |
| 32 | 新增: > | |
| 33 | 新增: <ColorAnimationUsingKeyFrames.KeyFrames> | |
| 34 | 新增: <LinearColorKeyFrame Value="#00383838" KeyTime="0:0:0" /> | |
| 35 | 新增: | |
| 36 | 新增: <LinearColorKeyFrame Value="#CC383838" KeyTime="0:0:0.3" /> | |
| 37 | 新增: </ColorAnimationUsingKeyFrames.KeyFrames> | |
| 38 | 新增: </ColorAnimationUsingKeyFrames> | |
| 39 | 新增: <ColorAnimationUsingKeyFrames | |
| 40 | 新增: Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" | |
| 41 | 新增: Storyboard.TargetName="Title" | |
| 42 | 新增: > | |
| 43 | 新增: <ColorAnimationUsingKeyFrames.KeyFrames> | |
| 44 | 新增: <LinearColorKeyFrame Value="#FFFFFF" KeyTime="0:0:0" /> | |
| 45 | 新增: | |
| 46 | 新增: </ColorAnimationUsingKeyFrames.KeyFrames> | |
| 47 | 新增: </ColorAnimationUsingKeyFrames> | |
| 48 | 新增: <!--<ColorAnimation Duration="0:0:0.8" | |
| 49 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" To="#353535" />--> | |
| 50 | 新增: | |
| 51 | 新增: | |
| 52 | 新增: </Storyboard> | |
| 53 | 新增: </VisualState> | |
| 54 | 新增: <VisualState x:Name="Pressed"> | |
| 55 | 新增: | |
| 56 | 新增: </VisualState> | |
| 57 | 新增: </VisualStateGroup> | |
| 58 | 新增: </VisualStateManager.VisualStateGroups> | |
| 59 | 新增: <!--<Rectangle x:Name="Line" Height="1" Width="auto" Fill="{DynamicResource SubBorderBrush}" Visibility="Collapsed" Margin="20,0"/>--> | |
| 60 | 新增: <Grid x:Name="Content" Margin="5"> | |
| 61 | 新增: <!--<Grid.ColumnDefinitions> | |
| 62 | 新增: <ColumnDefinition Width="15"/> | |
| 63 | 新增: <ColumnDefinition Width="25"/> | |
| 64 | 新增: <ColumnDefinition Width="*"/> | |
| 65 | 新增: <ColumnDefinition Width="44"/> | |
| 66 | 新增: </Grid.ColumnDefinitions>--> | |
| 67 | 新增: <!--<Rectangle x:Name="CheckMark" Width="2" Fill="{TemplateBinding IconColorBrush}" Visibility="Hidden" Margin="0,10"/>--> | |
| 68 | 新增: <!--<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">--> | |
| 69 | 新增: <!--图标--> | |
| 70 | 新增: <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"> | |
| 71 | 新增: <base:Icon.RenderTransform> | |
| 72 | 新增: <TransformGroup> | |
| 73 | 新增: <TranslateTransform X="0" Y="-5"/> | |
| 74 | 新增: <ScaleTransform ScaleX=".8" ScaleY=".8" CenterX=".5" CenterY=".5"/> | |
| 75 | 新增: | |
| 76 | 新增: </TransformGroup> | |
| 77 | 新增: <!--中心点<TranslateTransform X="0" Y="0"/>--> | |
| 78 | 新增: </base:Icon.RenderTransform> | |
| 79 | 新增: </base:Icon> | |
| 80 | 新增: <!--<base:Icon HorizontalAlignment="Center" IconType="{TemplateBinding Icon}" Foreground="Red" Grid.Column="1" FontSize="20" RenderTransformOrigin="0,0"> | |
| 81 | 新增: | |
| 82 | 新增: </base:Icon>--> | |
| 83 | 新增: <!--标题--> | |
| 84 | 新增: <TextBlock x:Name="Title" RenderOptions.EdgeMode="Aliased" Text="{TemplateBinding Title}" Grid.Column="2" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="10" Foreground="#FFAFAFAF" Margin="0,5,0,0"/> | |
| 85 | 新增: <!--</StackPanel>--> | |
| 86 | 新增: <!--徽标--> | |
| 87 | 新增: <!--<TextBlock Text="{TemplateBinding BadgeText}" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,20,0"/>--> | |
| 88 | 新增: | |
| 89 | 新增: </Grid> | |
| 90 | 新增: | |
| 91 | 新增: </Border> | |
| 92 | 新增: <ControlTemplate.Triggers> | |
| 93 | 新增: <Trigger Property="Title" Value="{x:Null}"> | |
| 94 | 新增: <Setter Property="Height" Value="15"/> | |
| 95 | 新增: | |
| 96 | 新增: <!--<Setter Property="Visibility" TargetName="Line" Value="Visible"/>--> | |
| 97 | 新增: <Setter Property="Visibility" TargetName="Content" Value="Collapsed"/> | |
| 98 | 新增: </Trigger> | |
| 99 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 100 | 新增: <!--<Setter Property="Background" Value="White"/>--> | |
| 101 | 新增: <Setter TargetName="Title" Property="Foreground" Value="{DynamicResource ThemeBrush}"/> | |
| 102 | 新增: <Setter TargetName="Title" Property="Visibility" Value="Collapsed"/> | |
| 103 | 新增: | |
| 104 | 新增: <!--<Setter Property="Visibility" TargetName="CheckMark" Value="Visible"/>--> | |
| 105 | 新增: </Trigger> | |
| 106 | 新增: | |
| 107 | 新增: <MultiTrigger> | |
| 108 | 新增: <MultiTrigger.Conditions> | |
| 109 | 新增: <Condition Property="IsSelected" Value="True"/> | |
| 110 | 新增: </MultiTrigger.Conditions> | |
| 111 | 新增: <MultiTrigger.EnterActions> | |
| 112 | 新增: <BeginStoryboard> | |
| 113 | 新增: <Storyboard> | |
| 114 | 新增: <ColorAnimation Duration="0:0:0.3" | |
| 115 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" To="#CC383838" /> | |
| 116 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 117 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[0].(TranslateTransform.Y)" Storyboard.TargetName="Icon" To="0" /> | |
| 118 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 119 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleX)" Storyboard.TargetName="Icon" To="1" /> | |
| 120 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 121 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleY)" Storyboard.TargetName="Icon" To="1" /> | |
| 122 | 新增: </Storyboard> | |
| 123 | 新增: </BeginStoryboard> | |
| 124 | 新增: </MultiTrigger.EnterActions> | |
| 125 | 新增: <MultiTrigger.ExitActions> | |
| 126 | 新增: <BeginStoryboard> | |
| 127 | 新增: <Storyboard> | |
| 128 | 新增: <ColorAnimation Duration="0:0:0.3" | |
| 129 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" To="#00383838" /> | |
| 130 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 131 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[0].(TranslateTransform.Y)" Storyboard.TargetName="Icon" To="-5" /> | |
| 132 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 133 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleX)" Storyboard.TargetName="Icon" To=".8" /> | |
| 134 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 135 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleY)" Storyboard.TargetName="Icon" To=".8" /> | |
| 136 | 新增: </Storyboard> | |
| 137 | 新增: </BeginStoryboard> | |
| 138 | 新增: </MultiTrigger.ExitActions> | |
| 139 | 新增: </MultiTrigger> | |
| 140 | 新增: | |
| 141 | 新增: </ControlTemplate.Triggers> | |
| 142 | 新增: </ControlTemplate> | |
| 143 | 新增: </Setter.Value> | |
| 144 | 新增: </Setter> | |
| 145 | 新增: </Style> | |
| 146 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,22 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:PageContainer}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" Value="True"/> | |
| 7 | 新增: <Setter Property="Template"> | |
| 8 | 新增: <Setter.Value> | |
| 9 | 新增: <ControlTemplate TargetType="{x:Type local:PageContainer}"> | |
| 10 | 新增: <!--<Border Background="{TemplateBinding Background}" | |
| 11 | 新增: BorderBrush="{TemplateBinding BorderBrush}" | |
| 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>--> | |
| 18 | 新增: </ControlTemplate> | |
| 19 | 新增: </Setter.Value> | |
| 20 | 新增: </Setter> | |
| 21 | 新增: </Style> | |
| 22 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,201 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:button="clr-namespace:UI.Controls.Button" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 4 | 新增: <converter:ToStringConverter x:Key="ToStringConverter"/> | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:DateSelect}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:DateSelect}"> | |
| 15 | 新增: <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" HorizontalAlignment="Left" > | |
| 16 | 新增: <Grid> | |
| 17 | 新增: <!--当前选择项--> | |
| 18 | 新增: <Border Background="{Binding ElementName=Main,Path=Background}" Panel.ZIndex="-1" Width="{Binding ElementName=Main,Path=ActualWidth}" Height="{Binding ElementName=Main,Path=ActualHeight}" CornerRadius="{Binding ElementName=Main,Path=CornerRadius}"> | |
| 19 | 新增: <Border.Effect> | |
| 20 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 21 | 新增: </Border.Effect> | |
| 22 | 新增: </Border> | |
| 23 | 新增: <Border x:Name="Main" Margin="0,0,0,0" Background="{DynamicResource StandardBackgroundBrush}" HorizontalAlignment="Left" Padding="18,10" CornerRadius="5"> | |
| 24 | 新增: <Border.InputBindings> | |
| 25 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=ShowSelectCommand}"/> | |
| 26 | 新增: </Border.InputBindings> | |
| 27 | 新增: | |
| 28 | 新增: <StackPanel Orientation="Horizontal"> | |
| 29 | 新增: <base:Icon x:Name="Icon" IconType="DateTime" Foreground="{DynamicResource StandardTextBrush}"/> | |
| 30 | 新增: <TextBlock Foreground="{DynamicResource StandardTextBrush}" Text="{TemplateBinding DateStr}" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 31 | 新增: </StackPanel> | |
| 32 | 新增: </Border> | |
| 33 | 新增: | |
| 34 | 新增: <!--选择--> | |
| 35 | 新增: <Popup | |
| 36 | 新增: x:Name="Popup" | |
| 37 | 新增: Placement="Bottom" | |
| 38 | 新增: PlacementTarget="{Binding ElementName=Main}" | |
| 39 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" > | |
| 40 | 新增: <Border | |
| 41 | 新增: x:Name="SelectContainer" | |
| 42 | 新增: CornerRadius="10" | |
| 43 | 新增: BorderBrush="{DynamicResource WindowContentBorder}" | |
| 44 | 新增: BorderThickness="1" | |
| 45 | 新增: Background="{DynamicResource StandardBackgroundBrush2}" Padding="10" MaxHeight="300" Margin="10"> | |
| 46 | 新增: <Border.Effect> | |
| 47 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 48 | 新增: </Border.Effect> | |
| 49 | 新增: <Grid> | |
| 50 | 新增: <Grid.RowDefinitions> | |
| 51 | 新增: <RowDefinition Height="40"/> | |
| 52 | 新增: <RowDefinition Height="auto"/> | |
| 53 | 新增: <RowDefinition Height="auto"/> | |
| 54 | 新增: | |
| 55 | 新增: </Grid.RowDefinitions> | |
| 56 | 新增: <!--年份月份选择--> | |
| 57 | 新增: <Border> | |
| 58 | 新增: <Grid> | |
| 59 | 新增: <Grid.ColumnDefinitions> | |
| 60 | 新增: <ColumnDefinition Width="*"/> | |
| 61 | 新增: <ColumnDefinition Width="*"/> | |
| 62 | 新增: | |
| 63 | 新增: </Grid.ColumnDefinitions> | |
| 64 | 新增: <!--年份选择--> | |
| 65 | 新增: <StackPanel Orientation="Horizontal"> | |
| 66 | 新增: <button:IconButton Icon="Back" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetYearCommand}" CommandParameter="-1"/> | |
| 67 | 新增: <TextBlock Width="50" Foreground="{DynamicResource StandardTextBrush}" TextAlignment="Center" Margin="5,0" VerticalAlignment="Center" Text="{TemplateBinding Year ,Converter= {StaticResource ToStringConverter}}"/> | |
| 68 | 新增: <button:IconButton Icon="Forward" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetYearCommand}" CommandParameter="1"/> | |
| 69 | 新增: | |
| 70 | 新增: </StackPanel> | |
| 71 | 新增: <StackPanel Grid.Column="1" Orientation="Horizontal" x:Name="MonthSelect" Visibility="Collapsed"> | |
| 72 | 新增: <button:IconButton Icon="Back" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetMonthCommand}" CommandParameter="-1"/> | |
| 73 | 新增: <TextBlock Width="30" Foreground="{DynamicResource StandardTextBrush}" TextAlignment="Center" Margin="5,0" VerticalAlignment="Center" Text="{TemplateBinding Month ,Converter= {StaticResource ToStringConverter}}"/> | |
| 74 | 新增: <button:IconButton Icon="Forward" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetMonthCommand}" CommandParameter="1"/> | |
| 75 | 新增: | |
| 76 | 新增: </StackPanel> | |
| 77 | 新增: </Grid> | |
| 78 | 新增: | |
| 79 | 新增: </Border> | |
| 80 | 新增: <!--日选择--> | |
| 81 | 新增: <Border Grid.Row="1" Width="250" x:Name="DaySelect" Visibility="Collapsed"> | |
| 82 | 新增: <ListView ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=Days}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=Day,Mode=TwoWay}" Margin="0,10,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 83 | 新增: <!--<i:Interaction.Triggers> | |
| 84 | 新增: <i:EventTrigger EventName="MouseLeftButtonUp"> | |
| 85 | 新增: <i:InvokeCommandAction Command="{Binding GotoDetailCommand}" | |
| 86 | 新增: CommandParameter="{Binding SelectedItem}" /> | |
| 87 | 新增: </i:EventTrigger> | |
| 88 | 新增: </i:Interaction.Triggers>--> | |
| 89 | 新增: <ListBox.Resources> | |
| 90 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 91 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 92 | 新增: | |
| 93 | 新增: <Setter Property="Template"> | |
| 94 | 新增: <Setter.Value> | |
| 95 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 96 | 新增: <Border> | |
| 97 | 新增: <ItemsPresenter /> | |
| 98 | 新增: </Border> | |
| 99 | 新增: </ControlTemplate> | |
| 100 | 新增: </Setter.Value> | |
| 101 | 新增: </Setter> | |
| 102 | 新增: </Style> | |
| 103 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 104 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 105 | 新增: <Setter Property="Foreground" Value="{DynamicResource StandardTextBrush}"/> | |
| 106 | 新增: | |
| 107 | 新增: <Setter Property="Template"> | |
| 108 | 新增: <Setter.Value> | |
| 109 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 110 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="{DynamicResource StandardBackgroundBrush}" Margin="0,0,0,0" Padding="0" Width="35" Height="35" CornerRadius="5"> | |
| 111 | 新增: <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 112 | 新增: </Border> | |
| 113 | 新增: <ControlTemplate.Triggers> | |
| 114 | 新增: <DataTrigger Binding="{Binding IsOut}" Value="True"> | |
| 115 | 新增: <Setter Property="Foreground" Value="#ccc"/> | |
| 116 | 新增: <Setter Property="IsEnabled" Value="False"/> | |
| 117 | 新增: </DataTrigger> | |
| 118 | 新增: <DataTrigger Binding="{Binding IsToday}" Value="True"> | |
| 119 | 新增: <Setter TargetName="Border" Property="Background" Value="#FFF2F1FF"/> | |
| 120 | 新增: <Setter Property="Foreground" Value="{DynamicResource ThemeBrush}"/> | |
| 121 | 新增: | |
| 122 | 新增: </DataTrigger> | |
| 123 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 124 | 新增: <Setter TargetName="Border" Property="Background" Value="{DynamicResource HoverBackgroundBrush}"/> | |
| 125 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 126 | 新增: | |
| 127 | 新增: </Trigger> | |
| 128 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 129 | 新增: <Setter TargetName="Border" Property="Background" Value="{DynamicResource ThemeBrush}"/> | |
| 130 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 131 | 新增: | |
| 132 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 133 | 新增: | |
| 134 | 新增: </Trigger> | |
| 135 | 新增: </ControlTemplate.Triggers> | |
| 136 | 新增: </ControlTemplate> | |
| 137 | 新增: </Setter.Value> | |
| 138 | 新增: </Setter> | |
| 139 | 新增: | |
| 140 | 新增: </Style> | |
| 141 | 新增: </ListBox.Resources> | |
| 142 | 新增: <ListBox.ItemsPanel> | |
| 143 | 新增: <ItemsPanelTemplate> | |
| 144 | 新增: <WrapPanel/> | |
| 145 | 新增: </ItemsPanelTemplate> | |
| 146 | 新增: </ListBox.ItemsPanel> | |
| 147 | 新增: <ListView.ItemTemplate> | |
| 148 | 新增: <DataTemplate> | |
| 149 | 新增: | |
| 150 | 新增: <WrapPanel Orientation="Horizontal"> | |
| 151 | 新增: <Border > | |
| 152 | 新增: <!--<Grid> | |
| 153 | 新增: <base:View Value="{Binding IsToday}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,-5,-5,0"> | |
| 154 | 新增: <Rectangle RadiusX="10" RadiusY="10" Width="5" Height="5" Fill="Red"></Rectangle> | |
| 155 | 新增: </base:View> | |
| 156 | 新增: </Grid>--> | |
| 157 | 新增: <TextBlock Text="{Binding DayText}" /> | |
| 158 | 新增: | |
| 159 | 新增: </Border> | |
| 160 | 新增: | |
| 161 | 新增: </WrapPanel> | |
| 162 | 新增: | |
| 163 | 新增: </DataTemplate> | |
| 164 | 新增: </ListView.ItemTemplate> | |
| 165 | 新增: </ListView> | |
| 166 | 新增: </Border> | |
| 167 | 新增: <Border Grid.Row="2" HorizontalAlignment="Right"> | |
| 168 | 新增: <StackPanel Orientation="Horizontal"> | |
| 169 | 新增: <button:Button Content="确认" Width="100" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=DoneCommand}"/> | |
| 170 | 新增: </StackPanel> | |
| 171 | 新增: </Border> | |
| 172 | 新增: </Grid> | |
| 173 | 新增: | |
| 174 | 新增: </Border> | |
| 175 | 新增: </Popup> | |
| 176 | 新增: </Grid> | |
| 177 | 新增: </Border> | |
| 178 | 新增: <ControlTemplate.Triggers> | |
| 179 | 新增: <Trigger Property="SelectType" Value="Day"> | |
| 180 | 新增: <Setter Property="Visibility" TargetName="DaySelect" Value="Visible"/> | |
| 181 | 新增: <Setter Property="Visibility" TargetName="MonthSelect" Value="Visible"/> | |
| 182 | 新增: </Trigger> | |
| 183 | 新增: <Trigger Property="SelectType" Value="Month"> | |
| 184 | 新增: <Setter Property="Visibility" TargetName="DaySelect" Value="Collapsed"/> | |
| 185 | 新增: <Setter Property="Visibility" TargetName="MonthSelect" Value="Visible"/> | |
| 186 | 新增: | |
| 187 | 新增: </Trigger> | |
| 188 | 新增: <Trigger Property="SelectType" Value="Year"> | |
| 189 | 新增: <Setter Property="Visibility" TargetName="DaySelect" Value="Collapsed"/> | |
| 190 | 新增: <Setter Property="Visibility" TargetName="MonthSelect" Value="Collapsed"/> | |
| 191 | 新增: </Trigger> | |
| 192 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 193 | 新增: <Setter Property="Background" TargetName="Main" Value="{DynamicResource HoverBackgroundBrush}"/> | |
| 194 | 新增: <Setter TargetName="Icon" Property="Foreground" Value="{DynamicResource ThemeBrush}"/> | |
| 195 | 新增: </Trigger> | |
| 196 | 新增: </ControlTemplate.Triggers> | |
| 197 | 新增: </ControlTemplate> | |
| 198 | 新增: </Setter.Value> | |
| 199 | 新增: </Setter> | |
| 200 | 新增: </Style> | |
| 201 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,55 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:ImageSelect}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="True" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="ToolTip" Value="选择图片"/> | |
| 12 | 新增: | |
| 13 | 新增: <Setter Property="Template"> | |
| 14 | 新增: <Setter.Value> | |
| 15 | 新增: <ControlTemplate TargetType="{x:Type local:ImageSelect}"> | |
| 16 | 新增: <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" HorizontalAlignment="Left" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"> | |
| 17 | 新增: <Border.InputBindings> | |
| 18 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ImageSelect}}, Path=SelectCommand}"/> | |
| 19 | 新增: </Border.InputBindings> | |
| 20 | 新增: <Grid> | |
| 21 | 新增: <Border x:Name="Choose" Background="#f7f8fa" Padding="20" CornerRadius="10"> | |
| 22 | 新增: <Grid HorizontalAlignment="Center"> | |
| 23 | 新增: <Grid.RowDefinitions> | |
| 24 | 新增: <RowDefinition Height="*"/> | |
| 25 | 新增: <RowDefinition Height="*"/> | |
| 26 | 新增: </Grid.RowDefinitions> | |
| 27 | 新增: <base:Icon IconType="FileImage" Foreground="#2b20d9" VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 28 | 新增: | |
| 29 | 新增: <TextBlock Text="选择图片" Grid.Row="1" Margin="0,10,0,0"/> | |
| 30 | 新增: </Grid> | |
| 31 | 新增: </Border> | |
| 32 | 新增: <Border x:Name="Img" BorderBrush="#f7f8fa" BorderThickness="1" CornerRadius="10" Padding="10"> | |
| 33 | 新增: <base:Img URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ImageSelect}}, Path=URL,Mode=TwoWay}" Width="{TemplateBinding ImageWidth}" Height="{TemplateBinding ImageHeight}"/> | |
| 34 | 新增: </Border> | |
| 35 | 新增: | |
| 36 | 新增: </Grid> | |
| 37 | 新增: </Border> | |
| 38 | 新增: <ControlTemplate.Triggers> | |
| 39 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 40 | 新增: <Setter Property="Background" TargetName="Choose" Value="#FFE8E6FF"/> | |
| 41 | 新增: </Trigger> | |
| 42 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 43 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Visible"/> | |
| 44 | 新增: <Setter Property="Visibility" TargetName="Choose" Value="Collapsed"/> | |
| 45 | 新增: </Trigger> | |
| 46 | 新增: <Trigger Property="IsSelected" Value="False"> | |
| 47 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 48 | 新增: <Setter Property="Visibility" TargetName="Choose" Value="Visible"/> | |
| 49 | 新增: </Trigger> | |
| 50 | 新增: </ControlTemplate.Triggers> | |
| 51 | 新增: </ControlTemplate> | |
| 52 | 新增: </Setter.Value> | |
| 53 | 新增: </Setter> | |
| 54 | 新增: </Style> | |
| 55 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,88 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Option}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 9 | 新增: <!--<Setter Property="Height" Value="15"/>--> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:Option}"> | |
| 14 | 新增: <Border CornerRadius="10" Background="{TemplateBinding Background}" Padding="10,8"> | |
| 15 | 新增: | |
| 16 | 新增: <Border> | |
| 17 | 新增: <Grid> | |
| 18 | 新增: <Grid.ColumnDefinitions> | |
| 19 | 新增: <ColumnDefinition Width="30"/> | |
| 20 | 新增: | |
| 21 | 新增: <ColumnDefinition Width="auto"/> | |
| 22 | 新增: <ColumnDefinition Width="*"/> | |
| 23 | 新增: | |
| 24 | 新增: </Grid.ColumnDefinitions> | |
| 25 | 新增: <!--标记是否选中--> | |
| 26 | 新增: <Border> | |
| 27 | 新增: <Grid> | |
| 28 | 新增: <!--选中--> | |
| 29 | 新增: <Border | |
| 30 | 新增: Width="20" | |
| 31 | 新增: Height="20" | |
| 32 | 新增: Background="#FFA9A4FD" | |
| 33 | 新增: BorderBrush="{DynamicResource ThemeBrush}" | |
| 34 | 新增: BorderThickness="2" | |
| 35 | 新增: CornerRadius="20" | |
| 36 | 新增: x:Name="CheckStyle" Visibility="Collapsed"> | |
| 37 | 新增: <Rectangle Width="10" Height="10" RadiusX="10" RadiusY="10" Fill="White" VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 38 | 新增: </Border> | |
| 39 | 新增: | |
| 40 | 新增: <!--未选中--> | |
| 41 | 新增: <Border | |
| 42 | 新增: Width="20" | |
| 43 | 新增: Height="20" | |
| 44 | 新增: BorderBrush="#FFECECEC" | |
| 45 | 新增: BorderThickness="2" | |
| 46 | 新增: CornerRadius="20" | |
| 47 | 新增: x:Name="UnCheckStyle" Visibility="Collapsed"> | |
| 48 | 新增: | |
| 49 | 新增: </Border> | |
| 50 | 新增: </Grid> | |
| 51 | 新增: </Border> | |
| 52 | 新增: <!--图标--> | |
| 53 | 新增: <Border Grid.Column="1" Margin="5,0,0,0" x:Name="Img"> | |
| 54 | 新增: <base:Img URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Option}}, Path=Value.Img}" Width="25" Height="25" VerticalAlignment="Center"/> | |
| 55 | 新增: </Border> | |
| 56 | 新增: <!--文字--> | |
| 57 | 新增: <Border Grid.Column="2"> | |
| 58 | 新增: <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Option}}, Path=Value.Name}" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 59 | 新增: </Border> | |
| 60 | 新增: </Grid> | |
| 61 | 新增: </Border> | |
| 62 | 新增: | |
| 63 | 新增: | |
| 64 | 新增: | |
| 65 | 新增: | |
| 66 | 新增: </Border> | |
| 67 | 新增: <ControlTemplate.Triggers> | |
| 68 | 新增: <Trigger Property="IsShowIcon" Value="False"> | |
| 69 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 70 | 新增: </Trigger> | |
| 71 | 新增: <Trigger Property="IsChecked" Value="True"> | |
| 72 | 新增: <Setter TargetName="CheckStyle" Property="Visibility" Value="Visible"/> | |
| 73 | 新增: <Setter TargetName="UnCheckStyle" Property="Visibility" Value="Collapsed"/> | |
| 74 | 新增: </Trigger> | |
| 75 | 新增: <Trigger Property="IsChecked" Value="False"> | |
| 76 | 新增: <Setter TargetName="CheckStyle" Property="Visibility" Value="Collapsed"/> | |
| 77 | 新增: <Setter TargetName="UnCheckStyle" Property="Visibility" Value="Visible"/> | |
| 78 | 新增: </Trigger> | |
| 79 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 80 | 新增: <Setter Property="Background" Value="{DynamicResource HoverBackgroundBrush}"/> | |
| 81 | 新增: </Trigger> | |
| 82 | 新增: </ControlTemplate.Triggers> | |
| 83 | 新增: | |
| 84 | 新增: </ControlTemplate> | |
| 85 | 新增: </Setter.Value> | |
| 86 | 新增: </Setter> | |
| 87 | 新增: </Style> | |
| 88 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,77 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 4 | 新增: | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:Select}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:Select}"> | |
| 15 | 新增: <Border HorizontalAlignment="Left" > | |
| 16 | 新增: | |
| 17 | 新增: <Grid > | |
| 18 | 新增: <!--当前选择项--> | |
| 19 | 新增: <Border Background="{TemplateBinding Background}" Panel.ZIndex="-1" Width="{Binding ElementName=Main,Path=ActualWidth}" Height="{Binding ElementName=Main,Path=ActualHeight}" CornerRadius="{Binding ElementName=Main,Path=CornerRadius}"> | |
| 20 | 新增: <Border.Effect> | |
| 21 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 22 | 新增: </Border.Effect> | |
| 23 | 新增: | |
| 24 | 新增: </Border> | |
| 25 | 新增: <Border x:Name="Main" Background="{TemplateBinding Background}" Padding="18,10" CornerRadius="5"> | |
| 26 | 新增: <StackPanel Orientation="Horizontal" > | |
| 27 | 新增: <!--<TextBlock x:Name="PlaceholderText" Text="请选择" Visibility="Collapsed"/>--> | |
| 28 | 新增: <base:Img x:Name="Img" URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Img}" Width="20" Height="20" VerticalAlignment="Center"/> | |
| 29 | 新增: <TextBlock TextOptions.TextFormattingMode="Display" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Name}" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 30 | 新增: </StackPanel> | |
| 31 | 新增: </Border> | |
| 32 | 新增: | |
| 33 | 新增: <!--选择--> | |
| 34 | 新增: <Popup | |
| 35 | 新增: Placement="Bottom" | |
| 36 | 新增: PlacementTarget="{Binding ElementName=Main}" | |
| 37 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" StaysOpen="False"> | |
| 38 | 新增: <Border | |
| 39 | 新增: CornerRadius="10" | |
| 40 | 新增: BorderBrush="{DynamicResource WindowContentBorder}" | |
| 41 | 新增: BorderThickness="1" | |
| 42 | 新增: Background="{DynamicResource StandardBackgroundBrush2}" Padding="10" MaxHeight="300" Margin="10"> | |
| 43 | 新增: <Border.Effect> | |
| 44 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 45 | 新增: </Border.Effect> | |
| 46 | 新增: <ScrollViewer HorizontalScrollBarVisibility="Disabled"> | |
| 47 | 新增: <StackPanel x:Name="OptionsContainer"> | |
| 48 | 新增: | |
| 49 | 新增: </StackPanel> | |
| 50 | 新增: </ScrollViewer> | |
| 51 | 新增: | |
| 52 | 新增: </Border> | |
| 53 | 新增: </Popup> | |
| 54 | 新增: </Grid> | |
| 55 | 新增: </Border> | |
| 56 | 新增: <ControlTemplate.Triggers> | |
| 57 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 58 | 新增: <Setter Property="Background" TargetName="Main" Value="{DynamicResource HoverBackgroundBrush}"/> | |
| 59 | 新增: </Trigger> | |
| 60 | 新增: <Trigger Property="IsShowIcon" Value="False"> | |
| 61 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 62 | 新增: </Trigger> | |
| 63 | 新增: <!--<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Img}" Value="{x:Static sys:String.Empty}"> | |
| 64 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 65 | 新增: | |
| 66 | 新增: </DataTrigger> | |
| 67 | 新增: <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Name}" Value=""> | |
| 68 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 69 | 新增: <Setter Property="Visibility" TargetName="PlaceholderText" Value="Visible"/> | |
| 70 | 新增: | |
| 71 | 新增: </DataTrigger>--> | |
| 72 | 新增: </ControlTemplate.Triggers> | |
| 73 | 新增: </ControlTemplate> | |
| 74 | 新增: </Setter.Value> | |
| 75 | 新增: </Setter> | |
| 76 | 新增: </Style> | |
| 77 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,26 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.SettingPanel" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:SettingPanel}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 10 | 新增: <Setter Property="Template"> | |
| 11 | 新增: <Setter.Value> | |
| 12 | 新增: <ControlTemplate TargetType="{x:Type local:SettingPanel}"> | |
| 13 | 新增: <Border CornerRadius="5" x:Name="Border"> | |
| 14 | 新增: <StackPanel x:Name="Container"> | |
| 15 | 新增: | |
| 16 | 新增: </StackPanel> | |
| 17 | 新增: | |
| 18 | 新增: </Border> | |
| 19 | 新增: <ControlTemplate.Triggers> | |
| 20 | 新增: | |
| 21 | 新增: </ControlTemplate.Triggers> | |
| 22 | 新增: </ControlTemplate> | |
| 23 | 新增: </Setter.Value> | |
| 24 | 新增: </Setter> | |
| 25 | 新增: </Style> | |
| 26 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,47 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.SettingPanel" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:SettingPanelItem}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Template"> | |
| 11 | 新增: <Setter.Value> | |
| 12 | 新增: <ControlTemplate TargetType="{x:Type local:SettingPanelItem}"> | |
| 13 | 新增: <Border Background="{TemplateBinding Background}" Margin="15,16" x:Name="Border"> | |
| 14 | 新增: | |
| 15 | 新增: <Grid> | |
| 16 | 新增: <Grid.ColumnDefinitions> | |
| 17 | 新增: <ColumnDefinition Width="8*"/> | |
| 18 | 新增: <ColumnDefinition Width="2*"/> | |
| 19 | 新增: | |
| 20 | 新增: </Grid.ColumnDefinitions> | |
| 21 | 新增: | |
| 22 | 新增: <Grid> | |
| 23 | 新增: <StackPanel VerticalAlignment="Center" HorizontalAlignment="Left"> | |
| 24 | 新增: <TextBlock Text="{TemplateBinding Name}" FontSize="14" Foreground="{DynamicResource StandardTextBrush}"/> | |
| 25 | 新增: <TextBlock Text="{TemplateBinding Description}" FontSize="12" Margin="0,4,0,0" Foreground="{DynamicResource SubTextBrush}"/> | |
| 26 | 新增: </StackPanel> | |
| 27 | 新增: </Grid> | |
| 28 | 新增: <Grid Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right"> | |
| 29 | 新增: <Border HorizontalAlignment="Left"> | |
| 30 | 新增: <ContentPresenter HorizontalAlignment="Center" | |
| 31 | 新增: VerticalAlignment="Center" | |
| 32 | 新增: RecognizesAccessKey="True" | |
| 33 | 新增: SnapsToDevicePixels="False" Content="{TemplateBinding Content}" | |
| 34 | 新增: /> | |
| 35 | 新增: </Border> | |
| 36 | 新增: </Grid> | |
| 37 | 新增: </Grid> | |
| 38 | 新增: | |
| 39 | 新增: </Border> | |
| 40 | 新增: <ControlTemplate.Triggers> | |
| 41 | 新增: | |
| 42 | 新增: </ControlTemplate.Triggers> | |
| 43 | 新增: </ControlTemplate> | |
| 44 | 新增: </Setter.Value> | |
| 45 | 新增: </Setter> | |
| 46 | 新增: </Style> | |
| 47 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,53 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.SettingPanel" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:btn="clr-namespace:UI.Controls.Button"> | |
| 6 | 新增: <Style TargetType="{x:Type local:SettingPanelMultiItem}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Margin" Value="0,0,0,20"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:SettingPanelMultiItem}"> | |
| 15 | 新增: <Border Background="{TemplateBinding Background}" x:Name="Border" CornerRadius="6" > | |
| 16 | 新增: | |
| 17 | 新增: <Grid> | |
| 18 | 新增: <Grid.RowDefinitions> | |
| 19 | 新增: <RowDefinition Height="auto"/> | |
| 20 | 新增: <RowDefinition Height="*"/> | |
| 21 | 新增: | |
| 22 | 新增: </Grid.RowDefinitions> | |
| 23 | 新增: <Grid Margin="10,10,10,10"> | |
| 24 | 新增: <TextBlock Text="{TemplateBinding Title}" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16" FontWeight="Bold"/> | |
| 25 | 新增: | |
| 26 | 新增: <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center"> | |
| 27 | 新增: <btn:IconButton ToolTip="收起" x:Name="FoldBtn" Command="{TemplateBinding OnFoldAction}" Icon="ChevronUp" Margin="0"></btn:IconButton> | |
| 28 | 新增: <btn:IconButton Icon="Delete" Command="{TemplateBinding OnRemoveAction}" ToolTip="移除此项"></btn:IconButton> | |
| 29 | 新增: </StackPanel> | |
| 30 | 新增: | |
| 31 | 新增: </Grid> | |
| 32 | 新增: <StackPanel x:Name="Container" Grid.Row="1"> | |
| 33 | 新增: | |
| 34 | 新增: </StackPanel> | |
| 35 | 新增: | |
| 36 | 新增: </Grid> | |
| 37 | 新增: | |
| 38 | 新增: </Border> | |
| 39 | 新增: <ControlTemplate.Triggers> | |
| 40 | 新增: <Trigger Property="Fold" | |
| 41 | 新增: Value="True"> | |
| 42 | 新增: <Setter TargetName="Container" Property="Visibility" Value="Collapsed"/> | |
| 43 | 新增: </Trigger> | |
| 44 | 新增: <Trigger Property="Fold" | |
| 45 | 新增: Value="False"> | |
| 46 | 新增: <Setter TargetName="Container" Property="Visibility" Value="Visible"/> | |
| 47 | 新增: </Trigger> | |
| 48 | 新增: </ControlTemplate.Triggers> | |
| 49 | 新增: </ControlTemplate> | |
| 50 | 新增: </Setter.Value> | |
| 51 | 新增: </Setter> | |
| 52 | 新增: </Style> | |
| 53 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,46 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
| 3 | 新增: <ResourceDictionary.MergedDictionaries> | |
| 4 | 新增: <ResourceDictionary Source="Window/HideWindow.xaml" /> | |
| 5 | 新增: <ResourceDictionary Source="Window/DefaultWindow.xaml" /> | |
| 6 | 新增: <ResourceDictionary Source="Navigation/NavigationItem.xaml"/> | |
| 7 | 新增: <ResourceDictionary Source="Navigation/Navigation.xaml"/> | |
| 8 | 新增: <ResourceDictionary Source="Base/Icon.xaml"/> | |
| 9 | 新增: <ResourceDictionary Source="Base/Placeholder.xaml"/> | |
| 10 | 新增: <ResourceDictionary Source="Base/EmptyData.xaml"/> | |
| 11 | 新增: <ResourceDictionary Source="Base/Img.xaml"/> | |
| 12 | 新增: <ResourceDictionary Source="Base/CheckBox.xaml"/> | |
| 13 | 新增: <ResourceDictionary Source="Base/Text.xaml"/> | |
| 14 | 新增: <ResourceDictionary Source="Base/View.xaml"/> | |
| 15 | 新增: <ResourceDictionary Source="Base/IconSelect.xaml"/> | |
| 16 | 新增: <ResourceDictionary Source="Base/ColorSelect.xaml"/> | |
| 17 | 新增: | |
| 18 | 新增: <!--<ResourceDictionary Source="PageContainer.xaml"/>--> | |
| 19 | 新增: <ResourceDictionary Source="Charts/Charts.xaml"/> | |
| 20 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeA.xaml"/> | |
| 21 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeCard.xaml"/> | |
| 22 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeMonth.xaml"/> | |
| 23 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeColumn.xaml"/> | |
| 24 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeRadar.xaml"/> | |
| 25 | 新增: | |
| 26 | 新增: <ResourceDictionary Source="Tabbar/Tabbar.xaml"/> | |
| 27 | 新增: <ResourceDictionary Source="DatePickerBar/DatePickerBar.xaml"/> | |
| 28 | 新增: <ResourceDictionary Source="DatePickerBar/DatePickerBarItem.xaml"/> | |
| 29 | 新增: <ResourceDictionary Source="SettingPanel/SettingPanel.xaml"/> | |
| 30 | 新增: <ResourceDictionary Source="Toggle/Toggle.xaml"/> | |
| 31 | 新增: <ResourceDictionary Source="SettingPanel/SettingPanelItem.xaml"/> | |
| 32 | 新增: <ResourceDictionary Source="SettingPanel/SettingPanelMultiItem.xaml"/> | |
| 33 | 新增: <ResourceDictionary Source="Input/InputBox.xaml"/> | |
| 34 | 新增: <ResourceDictionary Source="Button/IconButton.xaml"/> | |
| 35 | 新增: <ResourceDictionary Source="Button/Button.xaml"/> | |
| 36 | 新增: <ResourceDictionary Source="List/BaseList.xaml"/> | |
| 37 | 新增: <ResourceDictionary Source="List/BaseListItem.xaml"/> | |
| 38 | 新增: | |
| 39 | 新增: <ResourceDictionary Source="Select/Select.xaml"/> | |
| 40 | 新增: <ResourceDictionary Source="Select/Option.xaml"/> | |
| 41 | 新增: <ResourceDictionary Source="Select/ImageSelect.xaml"/> | |
| 42 | 新增: <ResourceDictionary Source="Select/DateSelect.xaml"/> | |
| 43 | 新增: | |
| 44 | 新增: </ResourceDictionary.MergedDictionaries> | |
| 45 | 新增: | |
| 46 | 新增:</ResourceDictionary> | |
| @@ -0,0 +1,46 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Tabbar" | |
| 4 | 新增: > | |
| 5 | 新增: <Style TargetType="{x:Type local:Tabbar}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="MinWidth" Value="44"/> | |
| 9 | 新增: <Setter Property="Height" Value="auto"/> | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="SelectedTextColor" Value="{DynamicResource ThemeColor}"/> | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:Tabbar}"> | |
| 15 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 16 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 17 | 新增: <Border x:Name="ActiveBlock" Width="35" CornerRadius="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Panel.ZIndex="9" RenderTransformOrigin="0,0"> | |
| 18 | 新增: <Border.RenderTransform> | |
| 19 | 新增: <TransformGroup> | |
| 20 | 新增: <TranslateTransform X="0" Y="0"></TranslateTransform> | |
| 21 | 新增: <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/> | |
| 22 | 新增: </TransformGroup> | |
| 23 | 新增: </Border.RenderTransform> | |
| 24 | 新增: <Path | |
| 25 | 新增: Width="15" | |
| 26 | 新增: Height="15" | |
| 27 | 新增: SnapsToDevicePixels="False" | |
| 28 | 新增: Data="M 0 15 L 7.5 7.5 L 15 15" Fill="{DynamicResource ThemeBrush}" | |
| 29 | 新增: Stroke="{DynamicResource ThemeBrush}" | |
| 30 | 新增: StrokeThickness="1" | |
| 31 | 新增: /> | |
| 32 | 新增: </Border> | |
| 33 | 新增: <Border Height="30" Margin="0,0,0,15"> | |
| 34 | 新增: <Grid x:Name="ItemsContainer"> | |
| 35 | 新增: | |
| 36 | 新增: </Grid> | |
| 37 | 新增: <!--<StackPanel Orientation="Horizontal" x:Name="ItemsPanel" VerticalAlignment="Bottom"/>--> | |
| 38 | 新增: </Border> | |
| 39 | 新增: </Grid> | |
| 40 | 新增: <!--</Border>--> | |
| 41 | 新增: | |
| 42 | 新增: </ControlTemplate> | |
| 43 | 新增: </Setter.Value> | |
| 44 | 新增: </Setter> | |
| 45 | 新增: </Style> | |
| 46 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,89 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Toggle"> | |
| 4 | 新增: | |
| 5 | 新增: <Style TargetType="{x:Type local:Toggle}"> | |
| 6 | 新增: <Setter Property="Width" Value="auto"/> | |
| 7 | 新增: <Setter Property="Height" Value="22"/> | |
| 8 | 新增: <Setter Property="Cursor" Value="Hand"/> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:Toggle}"> | |
| 14 | 新增: <Border x:Name="Border" Background="{TemplateBinding Background}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" CornerRadius="4" Margin="{TemplateBinding Margin}"> | |
| 15 | 新增: <Grid> | |
| 16 | 新增: <Grid.ColumnDefinitions> | |
| 17 | 新增: <ColumnDefinition Width="50"/> | |
| 18 | 新增: <ColumnDefinition Width="*"/> | |
| 19 | 新增: </Grid.ColumnDefinitions> | |
| 20 | 新增: <Border x:Name="Button" Background="#f5f5f5" CornerRadius="10" Padding="5"> | |
| 21 | 新增: <Border x:Name="Mark" Width="12" Height="12" CornerRadius="15" Background="#5d5d5d" VerticalAlignment="Center" HorizontalAlignment="Left"> | |
| 22 | 新增: <Border.RenderTransform> | |
| 23 | 新增: <TranslateTransform X="0"/> | |
| 24 | 新增: </Border.RenderTransform> | |
| 25 | 新增: </Border> | |
| 26 | 新增: </Border> | |
| 27 | 新增: <TextBlock x:Name="OnText" Grid.Column="1" VerticalAlignment="Center" Margin="10,0,0,0" Text="{TemplateBinding OnText}"/> | |
| 28 | 新增: <TextBlock x:Name="OffText" Grid.Column="1" VerticalAlignment="Center" Margin="10,0,0,0" Text="{TemplateBinding OffText}"/> | |
| 29 | 新增: | |
| 30 | 新增: </Grid> | |
| 31 | 新增: | |
| 32 | 新增: <VisualStateManager.VisualStateGroups> | |
| 33 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 34 | 新增: <VisualState x:Name="On"> | |
| 35 | 新增: <Storyboard> | |
| 36 | 新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.RenderTransform). | |
| 37 | 新增: (TranslateTransform.X)" | |
| 38 | 新增: Storyboard.TargetName="Mark"> | |
| 39 | 新增: <EasingDoubleKeyFrame KeyTime="00:00:0.2" | |
| 40 | 新增: Value="28" /> | |
| 41 | 新增: </DoubleAnimationUsingKeyFrames> | |
| 42 | 新增: <!--更改标记点颜色--> | |
| 43 | 新增: <ColorAnimationUsingKeyFrames | |
| 44 | 新增: Storyboard.TargetName="Mark" | |
| 45 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"> | |
| 46 | 新增: <EasingColorKeyFrame KeyTime="00:00:0.2" | |
| 47 | 新增: Value="White"/> | |
| 48 | 新增: </ColorAnimationUsingKeyFrames> | |
| 49 | 新增: <!--更改背景颜色--> | |
| 50 | 新增: <ColorAnimationUsingKeyFrames | |
| 51 | 新增: Storyboard.TargetName="Button" | |
| 52 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"> | |
| 53 | 新增: <EasingColorKeyFrame KeyTime="00:00:0.2" | |
| 54 | 新增: Value="{DynamicResource ThemeColor}"/> | |
| 55 | 新增: </ColorAnimationUsingKeyFrames> | |
| 56 | 新增: </Storyboard> | |
| 57 | 新增: </VisualState> | |
| 58 | 新增: <VisualState x:Name="Off"> | |
| 59 | 新增: <Storyboard> | |
| 60 | 新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.RenderTransform). | |
| 61 | 新增: (TranslateTransform.X)" | |
| 62 | 新增: Storyboard.TargetName="Mark"> | |
| 63 | 新增: <EasingDoubleKeyFrame KeyTime="00:00:0.2" | |
| 64 | 新增: Value="0" /> | |
| 65 | 新增: <EasingDoubleKeyFrame KeyTime="00:00:0" | |
| 66 | 新增: Value="28" /> | |
| 67 | 新增: </DoubleAnimationUsingKeyFrames> | |
| 68 | 新增: </Storyboard> | |
| 69 | 新增: </VisualState> | |
| 70 | 新增: </VisualStateGroup> | |
| 71 | 新增: </VisualStateManager.VisualStateGroups> | |
| 72 | 新增: </Border> | |
| 73 | 新增: <ControlTemplate.Triggers> | |
| 74 | 新增: <Trigger Property="IsChecked" Value="True"> | |
| 75 | 新增: <Setter TargetName="OffText" Property="Visibility" Value="Collapsed"/> | |
| 76 | 新增: <Setter TargetName="OnText" Property="Visibility" Value="Visible"/> | |
| 77 | 新增: </Trigger> | |
| 78 | 新增: <Trigger Property="IsChecked" Value="False"> | |
| 79 | 新增: <Setter TargetName="OffText" Property="Visibility" Value="Visible"/> | |
| 80 | 新增: <Setter TargetName="OnText" Property="Visibility" Value="Collapsed"/> | |
| 81 | 新增: </Trigger> | |
| 82 | 新增: </ControlTemplate.Triggers> | |
| 83 | 新增: | |
| 84 | 新增: </ControlTemplate> | |
| 85 | 新增: </Setter.Value> | |
| 86 | 新增: </Setter> | |
| 87 | 新增: | |
| 88 | 新增: </Style> | |
| 89 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,281 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:w="clr-namespace:UI.Controls.Window" xmlns:button="clr-namespace:UI.Controls.Button" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style x:Key="WindowSystemButton" TargetType="{x:Type Button}"> | |
| 6 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 7 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 8 | 新增: <Setter Property="VerticalContentAlignment" Value="Center"/> | |
| 9 | 新增: <Setter Property="HorizontalContentAlignment" Value="Center"/> | |
| 10 | 新增: <Setter Property="FontFamily" Value="/Tai;component/Resources/Fonts/#Segoe MDL2 Assets"/> | |
| 11 | 新增: <Setter Property="Foreground" Value="{DynamicResource SubTextBrush}"/> | |
| 12 | 新增: <!--<Setter Property="FontWeight" Value="Bold"/>--> | |
| 13 | 新增: <Setter Property="FontSize" Value="10"/> | |
| 14 | 新增: | |
| 15 | 新增: <Setter Property="Template"> | |
| 16 | 新增: <Setter.Value> | |
| 17 | 新增: <ControlTemplate TargetType="{x:Type Button}"> | |
| 18 | 新增: <Border | |
| 19 | 新增: Background="{TemplateBinding Background}" | |
| 20 | 新增: SnapsToDevicePixels="true"> | |
| 21 | 新增: <ContentPresenter Name="Presenter" Margin="{TemplateBinding Padding}" | |
| 22 | 新增: VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
| 23 | 新增: HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" | |
| 24 | 新增: RecognizesAccessKey="True" | |
| 25 | 新增: SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> | |
| 26 | 新增: </Border> | |
| 27 | 新增: <ControlTemplate.Triggers> | |
| 28 | 新增: <Trigger Property="IsEnabled" Value="false"> | |
| 29 | 新增: <!--<Setter Property="Foreground" Value="{DynamicResource ButtonTextDisabled}"/>--> | |
| 30 | 新增: </Trigger> | |
| 31 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 32 | 新增: <Setter Property="Background" Value="{DynamicResource HoverBackgroundBrush}" /> | |
| 33 | 新增: <Setter Property="Foreground" Value="{DynamicResource PrimaryColorBrush}"/> | |
| 34 | 新增: </Trigger> | |
| 35 | 新增: <Trigger Property="IsPressed" Value="True"> | |
| 36 | 新增: <Setter Property="Background" Value="{DynamicResource ThemeBrush}" /> | |
| 37 | 新增: <!--<Setter Property="Background" Value="{DynamicResource ButtonBackgroundPressed}" /> | |
| 38 | 新增: <Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderPressed}"/>--> | |
| 39 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 40 | 新增: </Trigger> | |
| 41 | 新增: <Trigger Property="IsFocused" Value="true"> | |
| 42 | 新增: <!--<Setter TargetName="Chrome" Property="BorderBrush" Value="{DynamicResource Accent}" />--> | |
| 43 | 新增: </Trigger> | |
| 44 | 新增: </ControlTemplate.Triggers> | |
| 45 | 新增: </ControlTemplate> | |
| 46 | 新增: </Setter.Value> | |
| 47 | 新增: </Setter> | |
| 48 | 新增: </Style> | |
| 49 | 新增: <Style x:Key="WindowStyle" TargetType="{x:Type w:DefaultWindow}"> | |
| 50 | 新增: <Setter Property="BorderThickness" Value="1" /> | |
| 51 | 新增: <Setter Property="BorderBrush" Value="{DynamicResource StandardColorBrush}" /> | |
| 52 | 新增: <Setter Property="Background" Value="Transparent" /> | |
| 53 | 新增: <!--<Setter Property="Logo" Value="{DynamicResource WindowLogo}" />--> | |
| 54 | 新增: <Setter Property="Foreground" Value="{DynamicResource StandardTextBrush}" /> | |
| 55 | 新增: | |
| 56 | 新增: <Setter Property="ResizeMode" Value="CanResizeWithGrip" /> | |
| 57 | 新增: <Setter Property="UseLayoutRounding" Value="True" /> | |
| 58 | 新增: <Setter Property="TextOptions.TextFormattingMode" Value="Display"/> | |
| 59 | 新增: <Setter Property="WindowChrome.WindowChrome"> | |
| 60 | 新增: <Setter.Value> | |
| 61 | 新增: <WindowChrome | |
| 62 | 新增: CaptionHeight="32" | |
| 63 | 新增: CornerRadius="0" GlassFrameThickness="1" UseAeroCaptionButtons="False" NonClientFrameEdges="None" /> | |
| 64 | 新增: </Setter.Value> | |
| 65 | 新增: </Setter> | |
| 66 | 新增: <Setter Property="Template"> | |
| 67 | 新增: <Setter.Value> | |
| 68 | 新增: <ControlTemplate TargetType="{x:Type w:DefaultWindow}"> | |
| 69 | 新增: <ControlTemplate.Resources> | |
| 70 | 新增: | |
| 71 | 新增: <Storyboard x:Key="Storyboardload"> | |
| 72 | 新增: <DoubleAnimation Storyboard.TargetName="WindowBorder" Storyboard.TargetProperty="Opacity" Duration="00:00:0.1" From="0" To="1" > | |
| 73 | 新增: </DoubleAnimation> | |
| 74 | 新增: </Storyboard> | |
| 75 | 新增: | |
| 76 | 新增: </ControlTemplate.Resources> | |
| 77 | 新增: <Border x:Name="WindowBorder" | |
| 78 | 新增: Margin="{Binding Source={x:Static SystemParameters.WindowNonClientFrameThickness}}"> | |
| 79 | 新增: <Border | |
| 80 | 新增: | |
| 81 | 新增: BorderThickness="{TemplateBinding BorderThickness}" | |
| 82 | 新增: BorderBrush="{TemplateBinding BorderBrush}" | |
| 83 | 新增: Background="{DynamicResource WindowBackground}" | |
| 84 | 新增: > | |
| 85 | 新增: <AdornerDecorator> | |
| 86 | 新增: <Grid x:Name="WindowContent"> | |
| 87 | 新增: | |
| 88 | 新增: <!--<Grid.RowDefinitions> | |
| 89 | 新增: <RowDefinition Height="Auto"></RowDefinition> | |
| 90 | 新增: <RowDefinition Height="*"></RowDefinition> | |
| 91 | 新增: | |
| 92 | 新增: </Grid.RowDefinitions>--> | |
| 93 | 新增: | |
| 94 | 新增: <!--标题栏--> | |
| 95 | 新增: <Grid | |
| 96 | 新增: x:Name="TitleBar" | |
| 97 | 新增: Panel.ZIndex="999" | |
| 98 | 新增: Height="{DynamicResource WindowTitleBarHeight}" | |
| 99 | 新增: VerticalAlignment="Top"> | |
| 100 | 新增: <Grid.ColumnDefinitions> | |
| 101 | 新增: <ColumnDefinition Width="Auto"></ColumnDefinition> | |
| 102 | 新增: <ColumnDefinition Width="*"></ColumnDefinition> | |
| 103 | 新增: | |
| 104 | 新增: </Grid.ColumnDefinitions> | |
| 105 | 新增: | |
| 106 | 新增: <Grid Grid.Column="0" | |
| 107 | 新增: Panel.ZIndex="3"> | |
| 108 | 新增: <!--标题区域--> | |
| 109 | 新增: <StackPanel Orientation="Horizontal" Margin="15,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Center"> | |
| 110 | 新增: | |
| 111 | 新增: <button:IconButton Width="0" VerticalAlignment="Center" ToolTip="返回" FontSize="10" x:Name="BackBtn" Icon="Back" WindowChrome.IsHitTestVisibleInChrome="True" Command="{x:Static w:DefaultWindowCommands.BackCommand}"/> | |
| 112 | 新增: | |
| 113 | 新增: <Image Source="{TemplateBinding Icon}" VerticalAlignment="Center" Stretch="Uniform" Width="18"/> | |
| 114 | 新增: <TextBlock VerticalAlignment="Center" Text="{TemplateBinding Title}" IsEnabled="{TemplateBinding IsActive}" Foreground="#FFF" Margin="15,0,0,0"/> | |
| 115 | 新增: </StackPanel> | |
| 116 | 新增: | |
| 117 | 新增: | |
| 118 | 新增: </Grid> | |
| 119 | 新增: <Grid Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top" | |
| 120 | 新增: WindowChrome.IsHitTestVisibleInChrome="True" | |
| 121 | 新增: Panel.ZIndex="3"> | |
| 122 | 新增: <!--系统按钮区域--> | |
| 123 | 新增: | |
| 124 | 新增: <StackPanel Orientation="Horizontal"> | |
| 125 | 新增: <!--最小化--> | |
| 126 | 新增: <Button | |
| 127 | 新增: ToolTip="最小化" | |
| 128 | 新增: Width="46" | |
| 129 | 新增: Height="32" | |
| 130 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 131 | 新增: Content="" | |
| 132 | 新增: Command="{x:Static w:DefaultWindowCommands.MinimizeWindowCommand}" | |
| 133 | 新增: Visibility="{TemplateBinding MinimizeVisibility}"/> | |
| 134 | 新增: | |
| 135 | 新增: <!--最大化--> | |
| 136 | 新增: <Button | |
| 137 | 新增: x:Name="MaximizeButton" | |
| 138 | 新增: ToolTip="最大化" | |
| 139 | 新增: Width="46" | |
| 140 | 新增: Height="32" | |
| 141 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 142 | 新增: Content="" | |
| 143 | 新增: Command="{x:Static w:DefaultWindowCommands.MaximizeWindowCommand}" | |
| 144 | 新增: Visibility="{TemplateBinding MaximizeVisibility}"/> | |
| 145 | 新增: <!--还原--> | |
| 146 | 新增: <Button | |
| 147 | 新增: x:Name="RestoreButton" | |
| 148 | 新增: ToolTip="向下还原" | |
| 149 | 新增: Width="46" | |
| 150 | 新增: Height="32" | |
| 151 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 152 | 新增: Content="" | |
| 153 | 新增: Command="{x:Static w:DefaultWindowCommands.RestoreWindowCommand}" | |
| 154 | 新增: Visibility="Collapsed"/> | |
| 155 | 新增: <!--关闭--> | |
| 156 | 新增: <Button | |
| 157 | 新增: ToolTip="关闭" | |
| 158 | 新增: Width="46" | |
| 159 | 新增: Height="32" | |
| 160 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 161 | 新增: Content="" | |
| 162 | 新增: Command="{x:Static w:DefaultWindowCommands.CloseWindowCommand}" | |
| 163 | 新增: Visibility="{TemplateBinding CloseVisibility}"/> | |
| 164 | 新增: | |
| 165 | 新增: </StackPanel> | |
| 166 | 新增: | |
| 167 | 新增: | |
| 168 | 新增: </Grid> | |
| 169 | 新增: </Grid> | |
| 170 | 新增: | |
| 171 | 新增: | |
| 172 | 新增: | |
| 173 | 新增: <!--窗体内容--> | |
| 174 | 新增: <ContentPresenter Grid.Row="1"/> | |
| 175 | 新增: <!--提醒框--> | |
| 176 | 新增: <Grid Panel.ZIndex="999" x:Name="ToastGrid" Visibility="Collapsed"> | |
| 177 | 新增: <!--内容--> | |
| 178 | 新增: <Border | |
| 179 | 新增: Padding="15,15" | |
| 180 | 新增: CornerRadius="12" | |
| 181 | 新增: MaxWidth="320" | |
| 182 | 新增: x:Name="ToastBorder" Background="White" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1000"> | |
| 183 | 新增: <Border.RenderTransform> | |
| 184 | 新增: <TransformGroup> | |
| 185 | 新增: <TranslateTransform Y="-150"/> | |
| 186 | 新增: </TransformGroup> | |
| 187 | 新增: </Border.RenderTransform> | |
| 188 | 新增: <Border.Effect> | |
| 189 | 新增: <DropShadowEffect BlurRadius="10" Color="Black" Opacity=".1"/> | |
| 190 | 新增: </Border.Effect> | |
| 191 | 新增: <Grid > | |
| 192 | 新增: <Grid.ColumnDefinitions> | |
| 193 | 新增: <ColumnDefinition Width="30"/> | |
| 194 | 新增: <ColumnDefinition Width="*"/> | |
| 195 | 新增: | |
| 196 | 新增: </Grid.ColumnDefinitions> | |
| 197 | 新增: <base:Icon IconType="{TemplateBinding ToastIcon}" VerticalAlignment="Top" Margin="0,0,10,0" x:Name="ToastIcon"/> | |
| 198 | 新增: <TextBlock x:Name="ToastText" Grid.Column="1" Text="{TemplateBinding ToastContent}" VerticalAlignment="Top" TextWrapping="WrapWithOverflow"/> | |
| 199 | 新增: </Grid> | |
| 200 | 新增: </Border> | |
| 201 | 新增: <!--遮罩层--> | |
| 202 | 新增: <Border x:Name="Masklayer" Background="Black" Opacity="0"></Border> | |
| 203 | 新增: </Grid> | |
| 204 | 新增: </Grid> | |
| 205 | 新增: </AdornerDecorator> | |
| 206 | 新增: </Border> | |
| 207 | 新增: <VisualStateManager.VisualStateGroups> | |
| 208 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 209 | 新增: <VisualStateGroup.Transitions> | |
| 210 | 新增: <VisualTransition GeneratedDuration="0:0:.15" /> | |
| 211 | 新增: <VisualTransition GeneratedDuration="0" | |
| 212 | 新增: To="Pressed" /> | |
| 213 | 新增: </VisualStateGroup.Transitions> | |
| 214 | 新增: <VisualState x:Name="Normal" /> | |
| 215 | 新增: <VisualState x:Name="CanBackState"> | |
| 216 | 新增: <Storyboard > | |
| 217 | 新增: <DoubleAnimation Storyboard.TargetProperty="(Button.Width)" | |
| 218 | 新增: Storyboard.TargetName="BackBtn" To="35" Duration="0:0:.1"> | |
| 219 | 新增: </DoubleAnimation> | |
| 220 | 新增: </Storyboard> | |
| 221 | 新增: </VisualState> | |
| 222 | 新增: | |
| 223 | 新增: </VisualStateGroup> | |
| 224 | 新增: </VisualStateManager.VisualStateGroups> | |
| 225 | 新增: </Border> | |
| 226 | 新增: <ControlTemplate.Triggers> | |
| 227 | 新增: <Trigger Property="ToastType" Value="Success"> | |
| 228 | 新增: <Setter TargetName="ToastBorder" Property="Background" Value="#24bf5f" /> | |
| 229 | 新增: <Setter TargetName="ToastIcon" Property="Foreground" Value="#fff" /> | |
| 230 | 新增: <Setter TargetName="ToastText" Property="Foreground" Value="#fff" /> | |
| 231 | 新增: </Trigger> | |
| 232 | 新增: <Trigger Property="ToastType" Value="Error"> | |
| 233 | 新增: <Setter TargetName="ToastBorder" Property="Background" Value="#f54f4e" /> | |
| 234 | 新增: <Setter TargetName="ToastIcon" Property="Foreground" Value="#fff" /> | |
| 235 | 新增: <Setter TargetName="ToastText" Property="Foreground" Value="#fff" /> | |
| 236 | 新增: </Trigger> | |
| 237 | 新增: <MultiTrigger> | |
| 238 | 新增: <MultiTrigger.Conditions> | |
| 239 | 新增: <Condition Property="WindowState" Value="Normal" /> | |
| 240 | 新增: <Condition Property="MaximizeVisibility" Value="Visible" /> | |
| 241 | 新增: </MultiTrigger.Conditions> | |
| 242 | 新增: <Setter TargetName="MaximizeButton" Property="Visibility" Value="Visible" /> | |
| 243 | 新增: <Setter TargetName="RestoreButton" Property="Visibility" Value="Collapsed" /> | |
| 244 | 新增: </MultiTrigger> | |
| 245 | 新增: <Trigger Property="WindowState" Value="Maximized"> | |
| 246 | 新增: <!--最大化时调整外边距,否则显示不完整--> | |
| 247 | 新增: <Setter TargetName="WindowContent" Property="Margin" Value="7"/> | |
| 248 | 新增: <Setter TargetName="MaximizeButton" Property="Visibility" Value="Collapsed" /> | |
| 249 | 新增: <Setter TargetName="RestoreButton" Property="Visibility" Value="Visible" /> | |
| 250 | 新增: </Trigger> | |
| 251 | 新增: <!--<Trigger Property="IsCanBack" Value="True"> | |
| 252 | 新增: <Setter TargetName="BackBtn" Property="Visibility" Value="Visible" /> | |
| 253 | 新增: </Trigger>--> | |
| 254 | 新增: <!--<Trigger Property="WindowState" Value="Normal"> | |
| 255 | 新增: <Setter TargetName="MaximizeButton" Property="Visibility" Value="Visible" /> | |
| 256 | 新增: <Setter TargetName="RestoreButton" Property="Visibility" Value="Collapsed" /> | |
| 257 | 新增: </Trigger>--> | |
| 258 | 新增: <!--<EventTrigger RoutedEvent="Window.Loaded"> | |
| 259 | 新增: --> | |
| 260 | 新增: <!--窗口载入动画--> | |
| 261 | 新增: <!-- | |
| 262 | 新增: <BeginStoryboard Storyboard="{StaticResource Storyboardload}"> | |
| 263 | 新增: </BeginStoryboard> | |
| 264 | 新增: | |
| 265 | 新增: </EventTrigger>--> | |
| 266 | 新增: <Trigger Property="WindowStyle" Value="None"> | |
| 267 | 新增: <Setter TargetName="WindowBorder" Property="Margin" Value="0"/> | |
| 268 | 新增: <Setter Property="BorderThickness" Value="0"/> | |
| 269 | 新增: <Setter TargetName="TitleBar" Property="Visibility" Value="Collapsed" /> | |
| 270 | 新增: <Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" /> | |
| 271 | 新增: <!--<Setter Property="BorderBrush" Value="Transparent" />--> | |
| 272 | 新增: </Trigger> | |
| 273 | 新增: </ControlTemplate.Triggers> | |
| 274 | 新增: </ControlTemplate> | |
| 275 | 新增: </Setter.Value> | |
| 276 | 新增: </Setter> | |
| 277 | 新增: | |
| 278 | 新增: </Style> | |
| 279 | 新增: | |
| 280 | 新增: | |
| 281 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,17 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:w="clr-namespace:UI.Controls.Window"> | |
| 4 | 新增: <Style TargetType="{x:Type w:HideWindow}"> | |
| 5 | 新增: <!--<Setter Property="Background" Value="Transparent" />--> | |
| 6 | 新增: <Setter Property="ResizeMode" Value="NoResize" /> | |
| 7 | 新增: <Setter Property="Width" Value="0" /> | |
| 8 | 新增: <Setter Property="Height" Value="0" /> | |
| 9 | 新增: <Setter Property="Visibility" Value="Collapsed" /> | |
| 10 | 新增: <!--<Setter Property="Template"> | |
| 11 | 新增: <Setter.Value> | |
| 12 | 新增: <ControlTemplate TargetType="{x:Type w:HideWindow}"> | |
| 13 | 新增: </ControlTemplate> | |
| 14 | 新增: </Setter.Value> | |
| 15 | 新增: </Setter>--> | |
| 16 | 新增: </Style> | |
| 17 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,26 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:CheckBox}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="MinWidth" Value="18"/> | |
| 9 | 新增: <Setter Property="MinHeight" Value="18"/> | |
| 10 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 11 | 新增: <Setter Property="FontFamily" Value="pack://application:,,,/Tai;component/Resources/Fonts/#Fabric MDL2 Assets"/> | |
| 12 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:CheckBox}"> | |
| 17 | 新增: <Border Background="{TemplateBinding Background}"> | |
| 18 | 新增: | |
| 19 | 新增: | |
| 20 | 新增: </Border> | |
| 21 | 新增: | |
| 22 | 新增: </ControlTemplate> | |
| 23 | 新增: </Setter.Value> | |
| 24 | 新增: </Setter> | |
| 25 | 新增: </Style> | |
| 26 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,133 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base" xmlns:button="clr-namespace:UI.Controls.Button" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 4 | 新增: <converter:HextoColorConverter x:Key="HextoColorConverter"/> | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:ColorSelect}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:ColorSelect}"> | |
| 14 | 新增: <Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True" BorderBrush="#f7f8fa" CornerRadius="5" BorderThickness="2" Width="38" Height="38"> | |
| 15 | 新增: <Border.InputBindings> | |
| 16 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=ShowSelectCommand}"/> | |
| 17 | 新增: </Border.InputBindings> | |
| 18 | 新增: <Grid> | |
| 19 | 新增: <Border CornerRadius="4" Width="28" Height="28" Background="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=Color,Converter={StaticResource HextoColorConverter}}"/> | |
| 20 | 新增: <Popup | |
| 21 | 新增: x:Name="Popup" | |
| 22 | 新增: Placement="Bottom" | |
| 23 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" | |
| 24 | 新增: > | |
| 25 | 新增: <Border | |
| 26 | 新增: x:Name="SelectContainer" | |
| 27 | 新增: CornerRadius="10" | |
| 28 | 新增: BorderBrush="#CCC" | |
| 29 | 新增: BorderThickness="1" | |
| 30 | 新增: Background="White" Padding="10" Width="275" MaxHeight="300" Margin="10"> | |
| 31 | 新增: <Border.Effect> | |
| 32 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 33 | 新增: </Border.Effect> | |
| 34 | 新增: <Grid> | |
| 35 | 新增: <Grid.RowDefinitions> | |
| 36 | 新增: <RowDefinition Height="auto"/> | |
| 37 | 新增: <RowDefinition Height="*"/> | |
| 38 | 新增: <RowDefinition Height="auto"/> | |
| 39 | 新增: </Grid.RowDefinitions> | |
| 40 | 新增: | |
| 41 | 新增: <TextBlock Text="选择颜色" VerticalAlignment="Center" HorizontalAlignment="Left"/> | |
| 42 | 新增: | |
| 43 | 新增: <ScrollViewer Grid.Row="1"> | |
| 44 | 新增: <ListView Grid.Row="1" ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=Colors}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=Color,Mode=TwoWay}" Margin="0,10,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 45 | 新增: <!--<i:Interaction.Triggers> | |
| 46 | 新增: <i:EventTrigger EventName="MouseLeftButtonUp"> | |
| 47 | 新增: <i:InvokeCommandAction Command="{Binding GotoDetailCommand}" | |
| 48 | 新增: CommandParameter="{Binding SelectedItem}" /> | |
| 49 | 新增: </i:EventTrigger> | |
| 50 | 新增: </i:Interaction.Triggers>--> | |
| 51 | 新增: <ListBox.Resources> | |
| 52 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 53 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 54 | 新增: | |
| 55 | 新增: <Setter Property="Template"> | |
| 56 | 新增: <Setter.Value> | |
| 57 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 58 | 新增: <Border> | |
| 59 | 新增: <ItemsPresenter /> | |
| 60 | 新增: </Border> | |
| 61 | 新增: </ControlTemplate> | |
| 62 | 新增: </Setter.Value> | |
| 63 | 新增: </Setter> | |
| 64 | 新增: </Style> | |
| 65 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 66 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 67 | 新增: <Setter Property="Foreground" Value="#1a1a1a"/> | |
| 68 | 新增: | |
| 69 | 新增: <Setter Property="Template"> | |
| 70 | 新增: <Setter.Value> | |
| 71 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 72 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0,0,0,0" Padding="0" Width="35" Height="35" CornerRadius="5"> | |
| 73 | 新增: <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 74 | 新增: </Border> | |
| 75 | 新增: <ControlTemplate.Triggers> | |
| 76 | 新增: | |
| 77 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 78 | 新增: <Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/> | |
| 79 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 80 | 新增: | |
| 81 | 新增: </Trigger> | |
| 82 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 83 | 新增: <Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/> | |
| 84 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 85 | 新增: | |
| 86 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 87 | 新增: | |
| 88 | 新增: </Trigger> | |
| 89 | 新增: </ControlTemplate.Triggers> | |
| 90 | 新增: </ControlTemplate> | |
| 91 | 新增: </Setter.Value> | |
| 92 | 新增: </Setter> | |
| 93 | 新增: | |
| 94 | 新增: </Style> | |
| 95 | 新增: </ListBox.Resources> | |
| 96 | 新增: <ListBox.ItemsPanel> | |
| 97 | 新增: <ItemsPanelTemplate> | |
| 98 | 新增: <WrapPanel/> | |
| 99 | 新增: </ItemsPanelTemplate> | |
| 100 | 新增: </ListBox.ItemsPanel> | |
| 101 | 新增: <ListView.ItemTemplate> | |
| 102 | 新增: <DataTemplate> | |
| 103 | 新增: | |
| 104 | 新增: <WrapPanel Orientation="Horizontal"> | |
| 105 | 新增: | |
| 106 | 新增: <!--<local:Img URL="{Binding}" Width="25" Height="25"/>--> | |
| 107 | 新增: <Border Width="25" CornerRadius="4" Height="25" Background="{Binding .,Converter={StaticResource HextoColorConverter}}"> | |
| 108 | 新增: </Border> | |
| 109 | 新增: | |
| 110 | 新增: </WrapPanel> | |
| 111 | 新增: | |
| 112 | 新增: </DataTemplate> | |
| 113 | 新增: </ListView.ItemTemplate> | |
| 114 | 新增: </ListView> | |
| 115 | 新增: </ScrollViewer> | |
| 116 | 新增: <button:Button Grid.Row="2" HorizontalAlignment="Right" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ColorSelect}}, Path=ColorSelectCommand}" Content="自定义颜色" Width="120"/> | |
| 117 | 新增: </Grid> | |
| 118 | 新增: </Border> | |
| 119 | 新增: | |
| 120 | 新增: </Popup> | |
| 121 | 新增: </Grid> | |
| 122 | 新增: </Border> | |
| 123 | 新增: <ControlTemplate.Triggers> | |
| 124 | 新增: | |
| 125 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 126 | 新增: <Setter Property="Background" Value="#FFE8E6FF"/> | |
| 127 | 新增: </Trigger> | |
| 128 | 新增: </ControlTemplate.Triggers> | |
| 129 | 新增: </ControlTemplate> | |
| 130 | 新增: </Setter.Value> | |
| 131 | 新增: </Setter> | |
| 132 | 新增: </Style> | |
| 133 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,62 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:EmptyData}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="HorizontalAlignment" | |
| 8 | 新增: Value="Left" /> | |
| 9 | 新增: <Setter Property="ToolTip" | |
| 10 | 新增: Value="什么都没有" /> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:EmptyData}"> | |
| 15 | 新增: <Border > | |
| 16 | 新增: | |
| 17 | 新增: <Grid> | |
| 18 | 新增: <Grid.RowDefinitions> | |
| 19 | 新增: <RowDefinition Height="auto"/> | |
| 20 | 新增: <RowDefinition Height="auto"/> | |
| 21 | 新增: </Grid.RowDefinitions> | |
| 22 | 新增: <Grid> | |
| 23 | 新增: <Border Background="{DynamicResource StandardBackgroundBrush}" BorderThickness="4" CornerRadius="10" Width="100" Height="100"> | |
| 24 | 新增: <Border.RenderTransform> | |
| 25 | 新增: <RotateTransform Angle="5"/> | |
| 26 | 新增: </Border.RenderTransform> | |
| 27 | 新增: <Border.Effect> | |
| 28 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="10" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 29 | 新增: </Border.Effect> | |
| 30 | 新增: <StackPanel> | |
| 31 | 新增: <Border Background="#c4c4c4" BorderThickness="4" CornerRadius="6" Height="20" Margin="5"/> | |
| 32 | 新增: <Border Background="#f0f0f0" BorderThickness="4" CornerRadius="6" Height="40" Margin="5"/> | |
| 33 | 新增: </StackPanel> | |
| 34 | 新增: | |
| 35 | 新增: </Border> | |
| 36 | 新增: <Border HorizontalAlignment="Left" Margin="30,0,0,30" Background="{DynamicResource StandardBackgroundBrush}" BorderThickness="4" CornerRadius="10" Width="100" Height="100"> | |
| 37 | 新增: | |
| 38 | 新增: <Border.Effect> | |
| 39 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="10" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 40 | 新增: </Border.Effect> | |
| 41 | 新增: <StackPanel> | |
| 42 | 新增: <Border Background="#c4c4c4" BorderThickness="4" CornerRadius="6" Height="20" Margin="5"/> | |
| 43 | 新增: <Border Background="#f0f0f0" BorderThickness="4" CornerRadius="6" Height="40" Margin="5"> | |
| 44 | 新增: <TextBlock Foreground="Gray" Opacity=".4" Text="Tai" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 45 | 新增: </Border> | |
| 46 | 新增: </StackPanel> | |
| 47 | 新增: | |
| 48 | 新增: </Border> | |
| 49 | 新增: </Grid> | |
| 50 | 新增: <Border Grid.Row="1" Margin="0,10,0,0"> | |
| 51 | 新增: <TextBlock VerticalAlignment="Center" Text="暂时没有数据" FontSize="12" Margin="0,10" HorizontalAlignment="Center" Foreground="Gray" Opacity=".7"/> | |
| 52 | 新增: | |
| 53 | 新增: </Border> | |
| 54 | 新增: </Grid> | |
| 55 | 新增: | |
| 56 | 新增: </Border> | |
| 57 | 新增: | |
| 58 | 新增: </ControlTemplate> | |
| 59 | 新增: </Setter.Value> | |
| 60 | 新增: </Setter> | |
| 61 | 新增: </Style> | |
| 62 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,26 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Icon}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="MinWidth" Value="18"/> | |
| 9 | 新增: <Setter Property="MinHeight" Value="18"/> | |
| 10 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 11 | 新增: <Setter Property="FontFamily" Value="pack://application:,,,/Tai;component/Resources/Fonts/#Fabric MDL2 Assets"/> | |
| 12 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:Icon}"> | |
| 17 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 18 | 新增: | |
| 19 | 新增: <TextBlock Text="{TemplateBinding Unicode}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" VerticalAlignment="Center" HorizontalAlignment="Center" TextOptions.TextFormattingMode="Ideal" SnapsToDevicePixels="True" /> | |
| 20 | 新增: <!--</Border>--> | |
| 21 | 新增: | |
| 22 | 新增: </ControlTemplate> | |
| 23 | 新增: </Setter.Value> | |
| 24 | 新增: </Setter> | |
| 25 | 新增: </Style> | |
| 26 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,133 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base" xmlns:button="clr-namespace:UI.Controls.Button"> | |
| 4 | 新增: <Style TargetType="{x:Type local:IconSelect}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Template"> | |
| 10 | 新增: <Setter.Value> | |
| 11 | 新增: <ControlTemplate TargetType="{x:Type local:IconSelect}"> | |
| 12 | 新增: <Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True" BorderBrush="#f7f8fa" CornerRadius="20" BorderThickness="2" Width="100" Height="100"> | |
| 13 | 新增: <Border.InputBindings> | |
| 14 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=ShowSelectCommand}"/> | |
| 15 | 新增: </Border.InputBindings> | |
| 16 | 新增: <Grid> | |
| 17 | 新增: <local:Img HorizontalAlignment="Center" VerticalAlignment="Center" URL="{TemplateBinding URL}" Width="50" Height="50"/> | |
| 18 | 新增: | |
| 19 | 新增: <Popup | |
| 20 | 新增: x:Name="Popup" | |
| 21 | 新增: Placement="Bottom" | |
| 22 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" | |
| 23 | 新增: > | |
| 24 | 新增: <Border | |
| 25 | 新增: x:Name="SelectContainer" | |
| 26 | 新增: CornerRadius="10" | |
| 27 | 新增: BorderBrush="#CCC" | |
| 28 | 新增: BorderThickness="1" | |
| 29 | 新增: Background="White" Padding="10" Width="275" MaxHeight="300" Margin="10"> | |
| 30 | 新增: <Border.Effect> | |
| 31 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 32 | 新增: </Border.Effect> | |
| 33 | 新增: <Grid> | |
| 34 | 新增: <Grid.RowDefinitions> | |
| 35 | 新增: <RowDefinition Height="auto"/> | |
| 36 | 新增: <RowDefinition Height="*"/> | |
| 37 | 新增: <RowDefinition Height="auto"/> | |
| 38 | 新增: </Grid.RowDefinitions> | |
| 39 | 新增: | |
| 40 | 新增: <TextBlock Text="选择图标" VerticalAlignment="Center" HorizontalAlignment="Left"/> | |
| 41 | 新增: | |
| 42 | 新增: <ScrollViewer Grid.Row="1"> | |
| 43 | 新增: <ListView Grid.Row="1" ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=Icons}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=URL,Mode=TwoWay}" Margin="0,10,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 44 | 新增: <!--<i:Interaction.Triggers> | |
| 45 | 新增: <i:EventTrigger EventName="MouseLeftButtonUp"> | |
| 46 | 新增: <i:InvokeCommandAction Command="{Binding GotoDetailCommand}" | |
| 47 | 新增: CommandParameter="{Binding SelectedItem}" /> | |
| 48 | 新增: </i:EventTrigger> | |
| 49 | 新增: </i:Interaction.Triggers>--> | |
| 50 | 新增: <ListBox.Resources> | |
| 51 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 52 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 53 | 新增: | |
| 54 | 新增: <Setter Property="Template"> | |
| 55 | 新增: <Setter.Value> | |
| 56 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 57 | 新增: <Border> | |
| 58 | 新增: <ItemsPresenter /> | |
| 59 | 新增: </Border> | |
| 60 | 新增: </ControlTemplate> | |
| 61 | 新增: </Setter.Value> | |
| 62 | 新增: </Setter> | |
| 63 | 新增: </Style> | |
| 64 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 65 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 66 | 新增: <Setter Property="Foreground" Value="#1a1a1a"/> | |
| 67 | 新增: | |
| 68 | 新增: <Setter Property="Template"> | |
| 69 | 新增: <Setter.Value> | |
| 70 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 71 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0,0,0,0" Padding="0" Width="35" Height="35" CornerRadius="5"> | |
| 72 | 新增: <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 73 | 新增: </Border> | |
| 74 | 新增: <ControlTemplate.Triggers> | |
| 75 | 新增: | |
| 76 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 77 | 新增: <Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/> | |
| 78 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 79 | 新增: | |
| 80 | 新增: </Trigger> | |
| 81 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 82 | 新增: <Setter TargetName="Border" Property="Background" Value="#2b20d9"/> | |
| 83 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 84 | 新增: | |
| 85 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 86 | 新增: | |
| 87 | 新增: </Trigger> | |
| 88 | 新增: </ControlTemplate.Triggers> | |
| 89 | 新增: </ControlTemplate> | |
| 90 | 新增: </Setter.Value> | |
| 91 | 新增: </Setter> | |
| 92 | 新增: | |
| 93 | 新增: </Style> | |
| 94 | 新增: </ListBox.Resources> | |
| 95 | 新增: <ListBox.ItemsPanel> | |
| 96 | 新增: <ItemsPanelTemplate> | |
| 97 | 新增: <WrapPanel/> | |
| 98 | 新增: </ItemsPanelTemplate> | |
| 99 | 新增: </ListBox.ItemsPanel> | |
| 100 | 新增: <ListView.ItemTemplate> | |
| 101 | 新增: <DataTemplate> | |
| 102 | 新增: | |
| 103 | 新增: <WrapPanel Orientation="Horizontal"> | |
| 104 | 新增: <Border > | |
| 105 | 新增: | |
| 106 | 新增: <local:Img URL="{Binding}" Width="25" Height="25"/> | |
| 107 | 新增: | |
| 108 | 新增: </Border> | |
| 109 | 新增: | |
| 110 | 新增: </WrapPanel> | |
| 111 | 新增: | |
| 112 | 新增: </DataTemplate> | |
| 113 | 新增: </ListView.ItemTemplate> | |
| 114 | 新增: </ListView> | |
| 115 | 新增: </ScrollViewer> | |
| 116 | 新增: <button:Button Grid.Row="2" Icon="FileImage" HorizontalAlignment="Right" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:IconSelect}}, Path=FileSelectCommand}" Content="自定义图片" Width="120"/> | |
| 117 | 新增: </Grid> | |
| 118 | 新增: </Border> | |
| 119 | 新增: | |
| 120 | 新增: </Popup> | |
| 121 | 新增: </Grid> | |
| 122 | 新增: </Border> | |
| 123 | 新增: <ControlTemplate.Triggers> | |
| 124 | 新增: | |
| 125 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 126 | 新增: <Setter Property="Background" Value="#FFE8E6FF"/> | |
| 127 | 新增: </Trigger> | |
| 128 | 新增: </ControlTemplate.Triggers> | |
| 129 | 新增: </ControlTemplate> | |
| 130 | 新增: </Setter.Value> | |
| 131 | 新增: </Setter> | |
| 132 | 新增: </Style> | |
| 133 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,32 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Img}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="MinWidth" Value="18"/> | |
| 9 | 新增: <Setter Property="MinHeight" Value="18"/> | |
| 10 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 11 | 新增: <Setter Property="Radius" Value="5"/> | |
| 12 | 新增: <Setter Property="FontFamily" Value="pack://application:,,,/Tai;component/Resources/Fonts/#Fabric MDL2 Assets"/> | |
| 13 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 14 | 新增: | |
| 15 | 新增: <Setter Property="Template"> | |
| 16 | 新增: <Setter.Value> | |
| 17 | 新增: <ControlTemplate TargetType="{x:Type local:Img}"> | |
| 18 | 新增: <!--<Border Background="{TemplateBinding Background}" CornerRadius="5"> | |
| 19 | 新增: <Image x:Name="image" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"/> | |
| 20 | 新增: </Border>--> | |
| 21 | 新增: | |
| 22 | 新增: <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" CornerRadius="{TemplateBinding Radius}"> | |
| 23 | 新增: <Border.Background> | |
| 24 | 新增: <ImageBrush Stretch="Fill" x:Name="image" ImageSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Img}}, Path=URL}"/> | |
| 25 | 新增: </Border.Background> | |
| 26 | 新增: </Border> | |
| 27 | 新增: | |
| 28 | 新增: </ControlTemplate> | |
| 29 | 新增: </Setter.Value> | |
| 30 | 新增: </Setter> | |
| 31 | 新增: </Style> | |
| 32 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,32 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Placeholder}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Template"> | |
| 11 | 新增: <Setter.Value> | |
| 12 | 新增: <ControlTemplate TargetType="{x:Type local:Placeholder}"> | |
| 13 | 新增: <Border CornerRadius="{TemplateBinding CornerRadius}" Background="#e0e0e0" ClipToBounds="True"> | |
| 14 | 新增: <Border x:Name="Flash" Background="White" Width="10" Height="{TemplateBinding Height}" Opacity=".5" RenderTransformOrigin="0,0.5"> | |
| 15 | 新增: <Border.Effect> | |
| 16 | 新增: <BlurEffect Radius="30" ></BlurEffect> | |
| 17 | 新增: </Border.Effect> | |
| 18 | 新增: <Border.RenderTransform> | |
| 19 | 新增: <TransformGroup> | |
| 20 | 新增: <TranslateTransform X="-10" /> | |
| 21 | 新增: <RotateTransform Angle="15"/> | |
| 22 | 新增: </TransformGroup> | |
| 23 | 新增: </Border.RenderTransform> | |
| 24 | 新增: </Border> | |
| 25 | 新增: | |
| 26 | 新增: </Border> | |
| 27 | 新增: | |
| 28 | 新增: </ControlTemplate> | |
| 29 | 新增: </Setter.Value> | |
| 30 | 新增: </Setter> | |
| 31 | 新增: </Style> | |
| 32 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,18 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Text}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="Template"> | |
| 8 | 新增: <Setter.Value> | |
| 9 | 新增: <ControlTemplate TargetType="{x:Type local:Text}"> | |
| 10 | 新增: <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}"> | |
| 11 | 新增: <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Text}}, Path=Content_}"/> | |
| 12 | 新增: </Border> | |
| 13 | 新增: | |
| 14 | 新增: </ControlTemplate> | |
| 15 | 新增: </Setter.Value> | |
| 16 | 新增: </Setter> | |
| 17 | 新增: </Style> | |
| 18 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,20 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:View}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Template"> | |
| 10 | 新增: <Setter.Value> | |
| 11 | 新增: <ControlTemplate TargetType="{x:Type local:View}"> | |
| 12 | 新增: <Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 13 | 新增: <ContentPresenter/> | |
| 14 | 新增: </Border> | |
| 15 | 新增: | |
| 16 | 新增: </ControlTemplate> | |
| 17 | 新增: </Setter.Value> | |
| 18 | 新增: </Setter> | |
| 19 | 新增: </Style> | |
| 20 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,109 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Button" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:Button}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="UseLayoutRounding" Value="True"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Foreground" Value="{DynamicResource StandardTextBrush}"/> | |
| 12 | 新增: <Setter Property="Height" Value="35"/> | |
| 13 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:Button}"> | |
| 17 | 新增: <!--<Border x:Name="Border" SnapsToDevicePixels="True">--> | |
| 18 | 新增: <Grid SnapsToDevicePixels="True"> | |
| 19 | 新增: | |
| 20 | 新增: | |
| 21 | 新增: <Border BorderBrush="#f3f3f3" BorderThickness="0" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="{TemplateBinding Background}"> | |
| 22 | 新增: <!--<Border.Effect> | |
| 23 | 新增: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 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" > | |
| 31 | 新增: | |
| 32 | 新增: </base:Icon> | |
| 33 | 新增: <ContentPresenter | |
| 34 | 新增: Grid.Column="1" | |
| 35 | 新增: HorizontalAlignment="Center" | |
| 36 | 新增: VerticalAlignment="Center" | |
| 37 | 新增: RecognizesAccessKey="True"/> | |
| 38 | 新增: </Grid> | |
| 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 | 新增: <VisualStateManager.VisualStateGroups> | |
| 47 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 48 | 新增: <VisualStateGroup.Transitions> | |
| 49 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 50 | 新增: <VisualTransition GeneratedDuration="0" | |
| 51 | 新增: To="Pressed" /> | |
| 52 | 新增: </VisualStateGroup.Transitions> | |
| 53 | 新增: <VisualState x:Name="Normal" /> | |
| 54 | 新增: <VisualState x:Name="MouseOver"> | |
| 55 | 新增: <Storyboard> | |
| 56 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Color)" | |
| 57 | 新增: Storyboard.TargetName="Shadow"> | |
| 58 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 59 | 新增: Value="#2b20d9" /> | |
| 60 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 61 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 62 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 63 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 64 | 新增: Value="{DynamicResource HoverBackgroundColor}" /> | |
| 65 | 新增: </ColorAnimationUsingKeyFrames> | |
| 66 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 67 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 68 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 69 | 新增: Value="#2b20d9" /> | |
| 70 | 新增: </ColorAnimationUsingKeyFrames> | |
| 71 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Button.Foreground).(SolidColorBrush.Color)" | |
| 72 | 新增: > | |
| 73 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 74 | 新增: Value="White" /> | |
| 75 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 76 | 新增: </Storyboard> | |
| 77 | 新增: </VisualState> | |
| 78 | 新增: <VisualState x:Name="Pressed"> | |
| 79 | 新增: <Storyboard> | |
| 80 | 新增: | |
| 81 | 新增: | |
| 82 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 83 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 84 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 85 | 新增: Value="{DynamicResource ThemeColor}" /> | |
| 86 | 新增: </ColorAnimationUsingKeyFrames> | |
| 87 | 新增: | |
| 88 | 新增: </Storyboard> | |
| 89 | 新增: </VisualState> | |
| 90 | 新增: </VisualStateGroup> | |
| 91 | 新增: </VisualStateManager.VisualStateGroups> | |
| 92 | 新增: | |
| 93 | 新增: </Grid> | |
| 94 | 新增: | |
| 95 | 新增: <!--</Border>--> | |
| 96 | 新增: <ControlTemplate.Triggers> | |
| 97 | 新增: <Trigger Property="Icon" Value="None"> | |
| 98 | 新增: <Setter TargetName="Icon" Property="Visibility" Value="Collapsed"/> | |
| 99 | 新增: </Trigger> | |
| 100 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 101 | 新增: <Setter TargetName="BoxBorder" Property="BorderThickness" Value="0"/> | |
| 102 | 新增: <!--<Setter Property="Foreground" Value="White"/>--> | |
| 103 | 新增: </Trigger> | |
| 104 | 新增: </ControlTemplate.Triggers> | |
| 105 | 新增: </ControlTemplate> | |
| 106 | 新增: </Setter.Value> | |
| 107 | 新增: </Setter> | |
| 108 | 新增: </Style> | |
| 109 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,68 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Button" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:IconButton}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Width" Value="35"/> | |
| 10 | 新增: <Setter Property="Height" Value="35"/> | |
| 11 | 新增: <Setter Property="FontSize" Value="16"/> | |
| 12 | 新增: | |
| 13 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:IconButton}"> | |
| 17 | 新增: <!--<Border Background="{TemplateBinding Background}" x:Name="Border">--> | |
| 18 | 新增: | |
| 19 | 新增: <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Padding="5" Background="#00eaeaea"> | |
| 20 | 新增: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" > | |
| 21 | 新增: | |
| 22 | 新增: </base:Icon> | |
| 23 | 新增: <VisualStateManager.VisualStateGroups> | |
| 24 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 25 | 新增: <VisualStateGroup.Transitions> | |
| 26 | 新增: <VisualTransition GeneratedDuration="0:0:0.15" /> | |
| 27 | 新增: <VisualTransition GeneratedDuration="0" | |
| 28 | 新增: To="Pressed" /> | |
| 29 | 新增: </VisualStateGroup.Transitions> | |
| 30 | 新增: <VisualState x:Name="Normal" /> | |
| 31 | 新增: <VisualState x:Name="MouseOver"> | |
| 32 | 新增: <Storyboard> | |
| 33 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 34 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 35 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 36 | 新增: Value="{DynamicResource HoverBackgroundColor}" /> | |
| 37 | 新增: </ColorAnimationUsingKeyFrames> | |
| 38 | 新增: </Storyboard> | |
| 39 | 新增: </VisualState> | |
| 40 | 新增: <VisualState x:Name="Pressed"> | |
| 41 | 新增: <Storyboard> | |
| 42 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 43 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 44 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 45 | 新增: Value="{DynamicResource ThemeColor}" /> | |
| 46 | 新增: </ColorAnimationUsingKeyFrames> | |
| 47 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(base:Icon.Foreground).(SolidColorBrush.Color)" | |
| 48 | 新增: Storyboard.TargetName="Icon"> | |
| 49 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 50 | 新增: Value="#fff" /> | |
| 51 | 新增: </ColorAnimationUsingKeyFrames> | |
| 52 | 新增: </Storyboard> | |
| 53 | 新增: </VisualState> | |
| 54 | 新增: </VisualStateGroup> | |
| 55 | 新增: </VisualStateManager.VisualStateGroups> | |
| 56 | 新增: </Border> | |
| 57 | 新增: | |
| 58 | 新增: | |
| 59 | 新增: | |
| 60 | 新增: <!--</Border>--> | |
| 61 | 新增: <ControlTemplate.Triggers> | |
| 62 | 新增: | |
| 63 | 新增: </ControlTemplate.Triggers> | |
| 64 | 新增: </ControlTemplate> | |
| 65 | 新增: </Setter.Value> | |
| 66 | 新增: </Setter> | |
| 67 | 新增: </Style> | |
| 68 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,287 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 4 | 新增: <converter:HextoColorConverter x:Key="HextoColorConverter"/> | |
| 5 | 新增: <Style TargetType="{x:Type local:Charts}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="FontSize" Value="14"/> | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:Charts}"> | |
| 15 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 16 | 新增: <Border x:Name="Radar" Visibility="Collapsed"> | |
| 17 | 新增: | |
| 18 | 新增: </Border> | |
| 19 | 新增: <Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 20 | 新增: <ScrollViewer Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=HorizontalA,Path=ActualHeight}" CanContentScroll="False"> | |
| 21 | 新增: <StackPanel x:Name="Container"> | |
| 22 | 新增: </StackPanel> | |
| 23 | 新增: </ScrollViewer> | |
| 24 | 新增: <StackPanel Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 25 | 新增: </Grid> | |
| 26 | 新增: <WrapPanel x:Name="CardContainer" Visibility="Collapsed"> | |
| 27 | 新增: </WrapPanel> | |
| 28 | 新增: <Grid x:Name="MonthContainer" Visibility="Collapsed"> | |
| 29 | 新增: </Grid> | |
| 30 | 新增: | |
| 31 | 新增: <Grid x:Name="Column" Visibility="Collapsed"> | |
| 32 | 新增: <base:EmptyData x:Name="ColumnEmpty" Visibility="Collapsed"/> | |
| 33 | 新增: <Grid x:Name="ColumnMain"> | |
| 34 | 新增: <Grid.RowDefinitions> | |
| 35 | 新增: <RowDefinition Height="auto"/> | |
| 36 | 新增: <RowDefinition Height="*"/> | |
| 37 | 新增: <RowDefinition Height="auto"/> | |
| 38 | 新增: </Grid.RowDefinitions> | |
| 39 | 新增: <StackPanel x:Name="ColumnTotal"> | |
| 40 | 新增: <TextBlock Text="总计" Foreground="#626262"/> | |
| 41 | 新增: <TextBlock Margin="0,10,0,0" Text="{TemplateBinding Total}" FontSize="20" Foreground="#1a1919"/> | |
| 42 | 新增: </StackPanel> | |
| 43 | 新增: <Grid Grid.Row="1" Margin="0,20,0,0"> | |
| 44 | 新增: <Popup | |
| 45 | 新增: AllowsTransparency="True" | |
| 46 | 新增: IsOpen="{TemplateBinding IsShowValuesPopup}" | |
| 47 | 新增: Placement="Top" | |
| 48 | 新增: PlacementTarget="{TemplateBinding ValuesPopupPlacementTarget}" | |
| 49 | 新增: HorizontalOffset="{TemplateBinding ValuesPopupHorizontalOffset}"> | |
| 50 | 新增: <Border | |
| 51 | 新增: Background="White" | |
| 52 | 新增: CornerRadius="12" | |
| 53 | 新增: Padding="10" | |
| 54 | 新增: Margin="10"> | |
| 55 | 新增: <Border.Effect> | |
| 56 | 新增: <DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity=".1"/> | |
| 57 | 新增: </Border.Effect> | |
| 58 | 新增: | |
| 59 | 新增: <Grid> | |
| 60 | 新增: <Path | |
| 61 | 新增: Width="15" | |
| 62 | 新增: Height="15" | |
| 63 | 新增: SnapsToDevicePixels="False" | |
| 64 | 新增: Data="M 0 0 L 7.5 7.5 L 15 0" Fill="White" | |
| 65 | 新增: Stroke="White" | |
| 66 | 新增: StrokeThickness="1" | |
| 67 | 新增: VerticalAlignment="Bottom" | |
| 68 | 新增: HorizontalAlignment="Left" | |
| 69 | 新增: Margin="0,0,0,-22" | |
| 70 | 新增: /> | |
| 71 | 新增: <!--列数据--> | |
| 72 | 新增: <ListView ItemsSource="{TemplateBinding ColumnValuesInfoList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 73 | 新增: <ListBox.Resources> | |
| 74 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 75 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 76 | 新增: | |
| 77 | 新增: <Setter Property="Template"> | |
| 78 | 新增: <Setter.Value> | |
| 79 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 80 | 新增: <Border> | |
| 81 | 新增: <ItemsPresenter /> | |
| 82 | 新增: </Border> | |
| 83 | 新增: </ControlTemplate> | |
| 84 | 新增: </Setter.Value> | |
| 85 | 新增: </Setter> | |
| 86 | 新增: </Style> | |
| 87 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 88 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 89 | 新增: <Setter Property="Template"> | |
| 90 | 新增: <Setter.Value> | |
| 91 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 92 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0" CornerRadius="10"> | |
| 93 | 新增: | |
| 94 | 新增: <ContentPresenter/> | |
| 95 | 新增: </Border> | |
| 96 | 新增: </ControlTemplate> | |
| 97 | 新增: </Setter.Value> | |
| 98 | 新增: </Setter> | |
| 99 | 新增: | |
| 100 | 新增: </Style> | |
| 101 | 新增: </ListBox.Resources> | |
| 102 | 新增: <ListBox.ItemsPanel> | |
| 103 | 新增: <ItemsPanelTemplate> | |
| 104 | 新增: <VirtualizingStackPanel/> | |
| 105 | 新增: </ItemsPanelTemplate> | |
| 106 | 新增: </ListBox.ItemsPanel> | |
| 107 | 新增: <ListView.ItemTemplate> | |
| 108 | 新增: <DataTemplate> | |
| 109 | 新增: | |
| 110 | 新增: <StackPanel> | |
| 111 | 新增: <Grid> | |
| 112 | 新增: <Grid.ColumnDefinitions> | |
| 113 | 新增: <ColumnDefinition Width="20"/> | |
| 114 | 新增: <ColumnDefinition Width="auto"/> | |
| 115 | 新增: <ColumnDefinition Width="auto"/> | |
| 116 | 新增: | |
| 117 | 新增: </Grid.ColumnDefinitions> | |
| 118 | 新增: <Border Width="10" CornerRadius="4" Height="10" Background="{Binding Color,Converter={StaticResource HextoColorConverter}}"> | |
| 119 | 新增: <!--颜色--> | |
| 120 | 新增: </Border> | |
| 121 | 新增: | |
| 122 | 新增: <Border Grid.Column="1" Margin="5,0,0,0"> | |
| 123 | 新增: <!--名称--> | |
| 124 | 新增: <TextBlock Foreground="#5c5c5c" VerticalAlignment="Center" Text="{Binding Name}" FontSize="12"/> | |
| 125 | 新增: </Border> | |
| 126 | 新增: <Border Grid.Column="2"> | |
| 127 | 新增: <!--总计和百分比--> | |
| 128 | 新增: <TextBlock FontSize="12" Margin="5,0,0,0" Foreground="#FF8A8A8A" VerticalAlignment="Center" Text="{Binding Text}"/> | |
| 129 | 新增: | |
| 130 | 新增: </Border> | |
| 131 | 新增: | |
| 132 | 新增: </Grid> | |
| 133 | 新增: | |
| 134 | 新增: </StackPanel> | |
| 135 | 新增: </DataTemplate> | |
| 136 | 新增: </ListView.ItemTemplate> | |
| 137 | 新增: </ListView> | |
| 138 | 新增: </Grid> | |
| 139 | 新增: </Border> | |
| 140 | 新增: </Popup> | |
| 141 | 新增: <TextBlock Panel.ZIndex="2" Margin="0,-8,0,0" HorizontalAlignment="Right" VerticalAlignment="Top" Text="{TemplateBinding Maximum}" Foreground="#ccc" FontSize="12"/> | |
| 142 | 新增: | |
| 143 | 新增: <TextBlock Panel.ZIndex="2" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{TemplateBinding Median}" Foreground="#ccc" FontSize="12" Margin="0,0,0,30"/> | |
| 144 | 新增: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 145 | 新增: X2="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" | |
| 146 | 新增: StrokeDashArray="2 5" StrokeThickness=".8" VerticalAlignment="Center" Margin="10,0,10,30"/> | |
| 147 | 新增: | |
| 148 | 新增: <Line Stroke="#ccc" Opacity="1" HorizontalAlignment="Stretch" | |
| 149 | 新增: X2="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" | |
| 150 | 新增: StrokeDashArray="2 5" StrokeThickness=".8" VerticalAlignment="Top" Margin="10,0"/> | |
| 151 | 新增: | |
| 152 | 新增: <Border BorderThickness="1,0,0,1" BorderBrush="#eeeef2"> | |
| 153 | 新增: <Grid x:Name="ColumnContainer"> | |
| 154 | 新增: | |
| 155 | 新增: </Grid> | |
| 156 | 新增: </Border> | |
| 157 | 新增: </Grid> | |
| 158 | 新增: <!--信息--> | |
| 159 | 新增: <Grid Grid.Row="2" Margin="0,5,0,0"> | |
| 160 | 新增: <ListView ItemsSource="{TemplateBinding ColumnInfoList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 161 | 新增: <ListBox.Resources> | |
| 162 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 163 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 164 | 新增: | |
| 165 | 新增: <Setter Property="Template"> | |
| 166 | 新增: <Setter.Value> | |
| 167 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 168 | 新增: <Border> | |
| 169 | 新增: <ItemsPresenter /> | |
| 170 | 新增: </Border> | |
| 171 | 新增: </ControlTemplate> | |
| 172 | 新增: </Setter.Value> | |
| 173 | 新增: </Setter> | |
| 174 | 新增: </Style> | |
| 175 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 176 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 177 | 新增: <Setter Property="Template"> | |
| 178 | 新增: <Setter.Value> | |
| 179 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 180 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="Transparent" Margin="0" CornerRadius="10"> | |
| 181 | 新增: | |
| 182 | 新增: <ContentPresenter/> | |
| 183 | 新增: </Border> | |
| 184 | 新增: <!--<ControlTemplate.Triggers> | |
| 185 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 186 | 新增: --> | |
| 187 | 新增: <!--<Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/>--> | |
| 188 | 新增: <!-- | |
| 189 | 新增: <Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/> | |
| 190 | 新增: | |
| 191 | 新增: </Trigger> | |
| 192 | 新增: </ControlTemplate.Triggers>--> | |
| 193 | 新增: </ControlTemplate> | |
| 194 | 新增: </Setter.Value> | |
| 195 | 新增: </Setter> | |
| 196 | 新增: | |
| 197 | 新增: </Style> | |
| 198 | 新增: </ListBox.Resources> | |
| 199 | 新增: <ListBox.ItemsPanel> | |
| 200 | 新增: <ItemsPanelTemplate> | |
| 201 | 新增: <WrapPanel/> | |
| 202 | 新增: </ItemsPanelTemplate> | |
| 203 | 新增: </ListBox.ItemsPanel> | |
| 204 | 新增: <ListView.ItemTemplate> | |
| 205 | 新增: <DataTemplate> | |
| 206 | 新增: | |
| 207 | 新增: <WrapPanel Orientation="Vertical"> | |
| 208 | 新增: <Border Width="auto" Height="30" Margin="0,0,10,0"> | |
| 209 | 新增: <Grid> | |
| 210 | 新增: <Grid.ColumnDefinitions> | |
| 211 | 新增: <ColumnDefinition Width="20"/> | |
| 212 | 新增: <ColumnDefinition Width="30"/> | |
| 213 | 新增: <ColumnDefinition Width="auto"/> | |
| 214 | 新增: <ColumnDefinition Width="auto"/> | |
| 215 | 新增: | |
| 216 | 新增: </Grid.ColumnDefinitions> | |
| 217 | 新增: <Border Width="12" CornerRadius="4" Height="12" Background="{Binding Color,Converter={StaticResource HextoColorConverter}}"> | |
| 218 | 新增: <!--颜色--> | |
| 219 | 新增: </Border> | |
| 220 | 新增: <Border Grid.Column="1"> | |
| 221 | 新增: <!--图标--> | |
| 222 | 新增: <base:Img Width="20" Height="20" URL="{Binding Icon}"/> | |
| 223 | 新增: </Border> | |
| 224 | 新增: <Border Grid.Column="2" Margin="5,0,0,0"> | |
| 225 | 新增: <!--名称--> | |
| 226 | 新增: <TextBlock Foreground="#5c5c5c" VerticalAlignment="Center" Text="{Binding Name}"/> | |
| 227 | 新增: </Border> | |
| 228 | 新增: <Border Grid.Column="3"> | |
| 229 | 新增: <!--总计和百分比--> | |
| 230 | 新增: <TextBlock FontSize="12" Margin="5,0,0,0" Foreground="#FF8A8A8A" VerticalAlignment="Center" Text="{Binding Text}"/> | |
| 231 | 新增: | |
| 232 | 新增: </Border> | |
| 233 | 新增: | |
| 234 | 新增: </Grid> | |
| 235 | 新增: </Border> | |
| 236 | 新增: | |
| 237 | 新增: </WrapPanel> | |
| 238 | 新增: </DataTemplate> | |
| 239 | 新增: </ListView.ItemTemplate> | |
| 240 | 新增: </ListView> | |
| 241 | 新增: </Grid> | |
| 242 | 新增: </Grid> | |
| 243 | 新增: </Grid> | |
| 244 | 新增: </Grid> | |
| 245 | 新增: | |
| 246 | 新增: <ControlTemplate.Triggers> | |
| 247 | 新增: <MultiTrigger> | |
| 248 | 新增: <MultiTrigger.Conditions> | |
| 249 | 新增: <Condition Property="IsEmpty" Value="True"/> | |
| 250 | 新增: <Condition Property="ChartsType" Value="Column"/> | |
| 251 | 新增: </MultiTrigger.Conditions> | |
| 252 | 新增: <Setter Property="Visibility" Value="Visible" TargetName="ColumnEmpty"/> | |
| 253 | 新增: <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnMain"/> | |
| 254 | 新增: </MultiTrigger> | |
| 255 | 新增: <MultiTrigger> | |
| 256 | 新增: <MultiTrigger.Conditions> | |
| 257 | 新增: <Condition Property="IsShowTotal" Value="False"/> | |
| 258 | 新增: <Condition Property="ChartsType" Value="Column"/> | |
| 259 | 新增: </MultiTrigger.Conditions> | |
| 260 | 新增: <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnTotal"/> | |
| 261 | 新增: </MultiTrigger> | |
| 262 | 新增: <Trigger Property="ChartsType" | |
| 263 | 新增: Value="HorizontalA"> | |
| 264 | 新增: <Setter TargetName="HorizontalA" Property="Visibility" Value="Visible"/> | |
| 265 | 新增: </Trigger> | |
| 266 | 新增: <Trigger Property="ChartsType" | |
| 267 | 新增: Value="Card"> | |
| 268 | 新增: <Setter TargetName="CardContainer" Property="Visibility" Value="Visible"/> | |
| 269 | 新增: </Trigger> | |
| 270 | 新增: <Trigger Property="ChartsType" | |
| 271 | 新增: Value="Month"> | |
| 272 | 新增: <Setter TargetName="MonthContainer" Property="Visibility" Value="Visible"/> | |
| 273 | 新增: </Trigger> | |
| 274 | 新增: <Trigger Property="ChartsType" | |
| 275 | 新增: Value="Column"> | |
| 276 | 新增: <Setter TargetName="Column" Property="Visibility" Value="Visible"/> | |
| 277 | 新增: </Trigger> | |
| 278 | 新增: <Trigger Property="ChartsType" | |
| 279 | 新增: Value="Radar"> | |
| 280 | 新增: <Setter TargetName="Radar" Property="Visibility" Value="Visible"/> | |
| 281 | 新增: </Trigger> | |
| 282 | 新增: </ControlTemplate.Triggers> | |
| 283 | 新增: </ControlTemplate> | |
| 284 | 新增: </Setter.Value> | |
| 285 | 新增: </Setter> | |
| 286 | 新增: </Style> | |
| 287 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,151 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeA}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Margin" Value="0,5"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeA}"> | |
| 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 | 新增: <Grid.RowDefinitions> | |
| 29 | 新增: <RowDefinition Height="*"/> | |
| 30 | 新增: <RowDefinition Height="*"/> | |
| 31 | 新增: | |
| 32 | 新增: </Grid.RowDefinitions> | |
| 33 | 新增: <TextBlock x:Name="NameTextObj" Foreground="#5c5c5c" HorizontalAlignment="Left"/> | |
| 34 | 新增: <Grid Grid.Row="1" > | |
| 35 | 新增: <Grid.ColumnDefinitions> | |
| 36 | 新增: <ColumnDefinition Width="auto"/> | |
| 37 | 新增: <ColumnDefinition Width="auto"/> | |
| 38 | 新增: | |
| 39 | 新增: </Grid.ColumnDefinitions> | |
| 40 | 新增: <Rectangle | |
| 41 | 新增: x:Name="ValueBlockObj" | |
| 42 | 新增: RadiusX="4" | |
| 43 | 新增: RadiusY="4" | |
| 44 | 新增: Fill="#cccccc" | |
| 45 | 新增: Height="8" | |
| 46 | 新增: VerticalAlignment="Center" | |
| 47 | 新增: HorizontalAlignment="Left" | |
| 48 | 新增: /> | |
| 49 | 新增: | |
| 50 | 新增: <TextBlock Grid.Column="1" x:Name="ValueTextObj" VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/> | |
| 51 | 新增: </Grid> | |
| 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 | |
| 57 | 新增: x:Name="ValueBlockObj" | |
| 58 | 新增: RadiusX="4" | |
| 59 | 新增: RadiusY="4" | |
| 60 | 新增: Fill="#7F777777" | |
| 61 | 新增: Height="8" | |
| 62 | 新增: VerticalAlignment="Center" | |
| 63 | 新增: HorizontalAlignment="Left" | |
| 64 | 新增: /> | |
| 65 | 新增: | |
| 66 | 新增: <TextBlock x:Name="ValueTextObj" VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/> | |
| 67 | 新增: </StackPanel> | |
| 68 | 新增: </StackPanel> | |
| 69 | 新增: | |
| 70 | 新增: </Grid> | |
| 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"> | |
| 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 | |
| 87 | 新增: RadiusX="0" | |
| 88 | 新增: RadiusY="0" | |
| 89 | 新增: Fill="#e0e0e0" | |
| 90 | 新增: Height="8" | |
| 91 | 新增: Width="256" | |
| 92 | 新增: VerticalAlignment="Center" | |
| 93 | 新增: HorizontalAlignment="Left" | |
| 94 | 新增: /> | |
| 95 | 新增: | |
| 96 | 新增: <!--<TextBlock VerticalAlignment="Center" Foreground="#5c5c5c" FontSize="12" Margin="5,0,0,0"/>--> | |
| 97 | 新增: </StackPanel> | |
| 98 | 新增: </StackPanel> | |
| 99 | 新增: </Grid> | |
| 100 | 新增: | |
| 101 | 新增: <VisualStateManager.VisualStateGroups> | |
| 102 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 103 | 新增: <VisualStateGroup.Transitions> | |
| 104 | 新增: <VisualTransition GeneratedDuration="0:0:.3" /> | |
| 105 | 新增: <VisualTransition GeneratedDuration="0" | |
| 106 | 新增: To="Pressed" /> | |
| 107 | 新增: </VisualStateGroup.Transitions> | |
| 108 | 新增: <VisualState x:Name="NormalState" /> | |
| 109 | 新增: <VisualState x:Name="MouseOver"> | |
| 110 | 新增: <Storyboard > | |
| 111 | 新增: | |
| 112 | 新增: <ColorAnimation Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" | |
| 113 | 新增: Storyboard.TargetName="ValueBlockObj" To="{DynamicResource ThemeColor}" > | |
| 114 | 新增: <ColorAnimation.EasingFunction> | |
| 115 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 116 | 新增: </ColorAnimation.EasingFunction> | |
| 117 | 新增: </ColorAnimation> | |
| 118 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 119 | 新增: Storyboard.TargetName="IconBorder" To="{DynamicResource ThemeColor}" > | |
| 120 | 新增: <ColorAnimation.EasingFunction> | |
| 121 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 122 | 新增: </ColorAnimation.EasingFunction> | |
| 123 | 新增: </ColorAnimation> | |
| 124 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 125 | 新增: Storyboard.TargetName="IconBorder" To="#ffffff" > | |
| 126 | 新增: <ColorAnimation.EasingFunction> | |
| 127 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 128 | 新增: </ColorAnimation.EasingFunction> | |
| 129 | 新增: </ColorAnimation> | |
| 130 | 新增: </Storyboard> | |
| 131 | 新增: </VisualState> | |
| 132 | 新增: <VisualState x:Name="Pressed"> | |
| 133 | 新增: | |
| 134 | 新增: </VisualState> | |
| 135 | 新增: </VisualStateGroup> | |
| 136 | 新增: </VisualStateManager.VisualStateGroups> | |
| 137 | 新增: </Grid> | |
| 138 | 新增: | |
| 139 | 新增: <!--</Border>--> | |
| 140 | 新增: | |
| 141 | 新增: <ControlTemplate.Triggers> | |
| 142 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 143 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 144 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 145 | 新增: </Trigger> | |
| 146 | 新增: </ControlTemplate.Triggers> | |
| 147 | 新增: </ControlTemplate> | |
| 148 | 新增: </Setter.Value> | |
| 149 | 新增: </Setter> | |
| 150 | 新增: </Style> | |
| 151 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,122 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeCard}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Margin" Value="5"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeCard}"> | |
| 15 | 新增: <Grid > | |
| 16 | 新增: <Grid x:Name="Normal"> | |
| 17 | 新增: <Border x:Name="ShadowBorder" CornerRadius="12"> | |
| 18 | 新增: <Border.Effect> | |
| 19 | 新增: <DropShadowEffect RenderingBias="Performance" Color="{DynamicResource ThemeColor}" BlurRadius="17" Direction="0" ShadowDepth="0" Opacity="0"/> | |
| 20 | 新增: </Border.Effect> | |
| 21 | 新增: <Border x:Name="Border" BorderBrush="Transparent" BorderThickness="2" Margin="0" Background="{DynamicResource StandardBackgroundBrush}" CornerRadius="12" Width="150" Height="150" > | |
| 22 | 新增: | |
| 23 | 新增: <Border.Clip> | |
| 24 | 新增: <RectangleGeometry RadiusX="12" RadiusY="12" Rect="0,0,150,150"/> | |
| 25 | 新增: </Border.Clip> | |
| 26 | 新增: <!--<Border.RenderTransform> | |
| 27 | 新增: | |
| 28 | 新增: </Border.RenderTransform>--> | |
| 29 | 新增: <Grid> | |
| 30 | 新增: <Rectangle | |
| 31 | 新增: x:Name="ValueBlockObj" | |
| 32 | 新增: | |
| 33 | 新增: | |
| 34 | 新增: HorizontalAlignment="Center" | |
| 35 | 新增: VerticalAlignment="Center" | |
| 36 | 新增: Margin="0" | |
| 37 | 新增: RenderTransformOrigin="0.5,0.5" | |
| 38 | 新增: Fill="#ff305b" | |
| 39 | 新增: | |
| 40 | 新增: > | |
| 41 | 新增: <!--<Rectangle.Effect> | |
| 42 | 新增: <BlurEffect RenderOptions.BitmapScalingMode="LowQuality" Radius="35" RenderingBias="Performance"/> | |
| 43 | 新增: </Rectangle.Effect>--> | |
| 44 | 新增: <!--<Rectangle.Fill> | |
| 45 | 新增: <LinearGradientBrush RenderOptions.BitmapScalingMode="LowQuality" EndPoint="2,1" StartPoint="-2,0"> | |
| 46 | 新增: <GradientStop Color="White"/> | |
| 47 | 新增: <GradientStop Color="#ff305b" Offset="1"/> | |
| 48 | 新增: </LinearGradientBrush> | |
| 49 | 新增: </Rectangle.Fill>--> | |
| 50 | 新增: <Rectangle.RenderTransform> | |
| 51 | 新增: <ScaleTransform ScaleX="3" ScaleY="3" CenterX="0" CenterY="0"/> | |
| 52 | 新增: </Rectangle.RenderTransform> | |
| 53 | 新增: </Rectangle> | |
| 54 | 新增: <!--<Border VerticalAlignment="Center" HorizontalAlignment="Center">--> | |
| 55 | 新增: <Image x:Name="IconObj" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="LowQuality"/> | |
| 56 | 新增: <!--</Border>--> | |
| 57 | 新增: | |
| 58 | 新增: <TextBlock x:Name="NameTextObj" Foreground="#5c5c5c" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="10"/> | |
| 59 | 新增: | |
| 60 | 新增: <Border VerticalAlignment="Top" CornerRadius="5" Padding="5" HorizontalAlignment="Left" Margin="10" > | |
| 61 | 新增: <Border.Background> | |
| 62 | 新增: <SolidColorBrush Color="#ff305b" Opacity="0.7"/> | |
| 63 | 新增: </Border.Background> | |
| 64 | 新增: <TextBlock x:Name="ValueTextObj" Foreground="White" FontSize="12" /> | |
| 65 | 新增: | |
| 66 | 新增: </Border> | |
| 67 | 新增: | |
| 68 | 新增: </Grid> | |
| 69 | 新增: | |
| 70 | 新增: </Border> | |
| 71 | 新增: </Border> | |
| 72 | 新增: | |
| 73 | 新增: </Grid> | |
| 74 | 新增: | |
| 75 | 新增: <Grid x:Name="Loading" Visibility="Collapsed"> | |
| 76 | 新增: <base:Placeholder CornerRadius="12" Width="150" Height="150"/> | |
| 77 | 新增: </Grid> | |
| 78 | 新增: | |
| 79 | 新增: <VisualStateManager.VisualStateGroups> | |
| 80 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 81 | 新增: <VisualStateGroup.Transitions> | |
| 82 | 新增: <VisualTransition GeneratedDuration="0:0:.3" /> | |
| 83 | 新增: <VisualTransition GeneratedDuration="0" | |
| 84 | 新增: To="Pressed" /> | |
| 85 | 新增: </VisualStateGroup.Transitions> | |
| 86 | 新增: <VisualState x:Name="NormalState" /> | |
| 87 | 新增: <VisualState x:Name="MouseOver"> | |
| 88 | 新增: <Storyboard > | |
| 89 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 90 | 新增: Storyboard.TargetName="Border" To="{DynamicResource ThemeColor}" > | |
| 91 | 新增: <ColorAnimation.EasingFunction> | |
| 92 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 93 | 新增: </ColorAnimation.EasingFunction> | |
| 94 | 新增: </ColorAnimation> | |
| 95 | 新增: | |
| 96 | 新增: <DoubleAnimation Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Opacity)" | |
| 97 | 新增: Storyboard.TargetName="ShadowBorder" To="0.3" > | |
| 98 | 新增: <DoubleAnimation.EasingFunction> | |
| 99 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 100 | 新增: </DoubleAnimation.EasingFunction> | |
| 101 | 新增: </DoubleAnimation> | |
| 102 | 新增: | |
| 103 | 新增: | |
| 104 | 新增: </Storyboard> | |
| 105 | 新增: </VisualState> | |
| 106 | 新增: <VisualState x:Name="Pressed"> | |
| 107 | 新增: | |
| 108 | 新增: </VisualState> | |
| 109 | 新增: </VisualStateGroup> | |
| 110 | 新增: </VisualStateManager.VisualStateGroups> | |
| 111 | 新增: </Grid> | |
| 112 | 新增: <ControlTemplate.Triggers> | |
| 113 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 114 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 115 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 116 | 新增: </Trigger> | |
| 117 | 新增: </ControlTemplate.Triggers> | |
| 118 | 新增: </ControlTemplate> | |
| 119 | 新增: </Setter.Value> | |
| 120 | 新增: </Setter> | |
| 121 | 新增: </Style> | |
| 122 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,84 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartItemTypeColumn}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <!--<Setter Property="Margin" Value="5,0"/>--> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartItemTypeColumn}"> | |
| 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 | |
| 23 | 新增: x:Name="ValueBlockObj" | |
| 24 | 新增: RadiusX="4" | |
| 25 | 新增: RadiusY="4" | |
| 26 | 新增: Fill="#cccccc" | |
| 27 | 新增: Width="{Binding ElementName=ValueContainer,Path=ActualWidth}" | |
| 28 | 新增: VerticalAlignment="Bottom" | |
| 29 | 新增: HorizontalAlignment="Center" | |
| 30 | 新增: /> | |
| 31 | 新增: </Border> | |
| 32 | 新增: <TextBlock Grid.Row="1" FontSize="12" HorizontalAlignment="Center" Margin="0,10,0,0" Text="{TemplateBinding ColumnName}" Foreground="#FF8A8A8A" /> | |
| 33 | 新增: <VisualStateManager.VisualStateGroups> | |
| 34 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 35 | 新增: <VisualStateGroup.Transitions> | |
| 36 | 新增: <VisualTransition GeneratedDuration="0:0:.2" /> | |
| 37 | 新增: <VisualTransition GeneratedDuration="0" | |
| 38 | 新增: To="Pressed" /> | |
| 39 | 新增: </VisualStateGroup.Transitions> | |
| 40 | 新增: <VisualState x:Name="NormalState" /> | |
| 41 | 新增: <VisualState x:Name="MouseOver"> | |
| 42 | 新增: <Storyboard > | |
| 43 | 新增: <ColorAnimation Storyboard.TargetProperty="(Canvas.Background).(SolidColorBrush.Color)" | |
| 44 | 新增: Storyboard.TargetName="ValueContainer" To="#7FF1F1F1" > | |
| 45 | 新增: <ColorAnimation.EasingFunction> | |
| 46 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 47 | 新增: </ColorAnimation.EasingFunction> | |
| 48 | 新增: </ColorAnimation> | |
| 49 | 新增: <!--<ColorAnimation Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 50 | 新增: Storyboard.TargetName="IconBorder" To="#2b20d9" > | |
| 51 | 新增: <ColorAnimation.EasingFunction> | |
| 52 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 53 | 新增: </ColorAnimation.EasingFunction> | |
| 54 | 新增: </ColorAnimation> | |
| 55 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 56 | 新增: Storyboard.TargetName="IconBorder" To="#ffffff" > | |
| 57 | 新增: <ColorAnimation.EasingFunction> | |
| 58 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 59 | 新增: </ColorAnimation.EasingFunction> | |
| 60 | 新增: </ColorAnimation>--> | |
| 61 | 新增: </Storyboard> | |
| 62 | 新增: </VisualState> | |
| 63 | 新增: <VisualState x:Name="Pressed"> | |
| 64 | 新增: | |
| 65 | 新增: </VisualState> | |
| 66 | 新增: </VisualStateGroup> | |
| 67 | 新增: </VisualStateManager.VisualStateGroups> | |
| 68 | 新增: </Grid> | |
| 69 | 新增: | |
| 70 | 新增: | |
| 71 | 新增: | |
| 72 | 新增: | |
| 73 | 新增: | |
| 74 | 新增: <ControlTemplate.Triggers> | |
| 75 | 新增: <!--<Trigger Property="IsLoading" Value="True"> | |
| 76 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 77 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 78 | 新增: </Trigger>--> | |
| 79 | 新增: </ControlTemplate.Triggers> | |
| 80 | 新增: </ControlTemplate> | |
| 81 | 新增: </Setter.Value> | |
| 82 | 新增: </Setter> | |
| 83 | 新增: </Style> | |
| 84 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,74 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeMonth}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Margin" Value="5"/> | |
| 11 | 新增: <Setter Property="HorizontalAlignment" Value="Center"/> | |
| 12 | 新增: <Setter Property="VerticalAlignment" Value="Center"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeMonth}"> | |
| 17 | 新增: <Grid > | |
| 18 | 新增: <Grid x:Name="Normal"> | |
| 19 | 新增: <Border> | |
| 20 | 新增: <!--<Border.Effect> | |
| 21 | 新增: <DropShadowEffect BlurRadius="14" ShadowDepth="0" Direction="0" Opacity="0.05"/> | |
| 22 | 新增: </Border.Effect>--> | |
| 23 | 新增: <Border x:Name="Border" Margin="0" Background="#f3f3f3" CornerRadius="4" Width="20" Height="20" BorderThickness="0" BorderBrush="#2b20d9"> | |
| 24 | 新增: | |
| 25 | 新增: <Border.Clip> | |
| 26 | 新增: <RectangleGeometry RadiusX="4" RadiusY="4" Rect="0,0,20,20"/> | |
| 27 | 新增: </Border.Clip> | |
| 28 | 新增: | |
| 29 | 新增: <Grid> | |
| 30 | 新增: <!--<TextBlock x:Name="ValueTextObj"/>--> | |
| 31 | 新增: <Rectangle | |
| 32 | 新增: x:Name="ValueBlockObj" | |
| 33 | 新增: | |
| 34 | 新增: | |
| 35 | 新增: HorizontalAlignment="Stretch" | |
| 36 | 新增: VerticalAlignment="Center" | |
| 37 | 新增: > | |
| 38 | 新增: <Rectangle.Effect> | |
| 39 | 新增: <BlurEffect KernelType="Gaussian" Radius="20"/> | |
| 40 | 新增: </Rectangle.Effect> | |
| 41 | 新增: <Rectangle.Fill> | |
| 42 | 新增: <LinearGradientBrush EndPoint="2,1" StartPoint="-2,0"> | |
| 43 | 新增: <GradientStop Color="White"/> | |
| 44 | 新增: <GradientStop Color="#ff305b" Offset="1"/> | |
| 45 | 新增: </LinearGradientBrush> | |
| 46 | 新增: </Rectangle.Fill> | |
| 47 | 新增: </Rectangle> | |
| 48 | 新增: </Grid> | |
| 49 | 新增: | |
| 50 | 新增: </Border> | |
| 51 | 新增: </Border> | |
| 52 | 新增: | |
| 53 | 新增: </Grid> | |
| 54 | 新增: | |
| 55 | 新增: <Grid x:Name="Loading" Visibility="Collapsed"> | |
| 56 | 新增: <base:Placeholder CornerRadius="12" Width="150" Height="150"/> | |
| 57 | 新增: </Grid> | |
| 58 | 新增: </Grid> | |
| 59 | 新增: <ControlTemplate.Triggers> | |
| 60 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 61 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 62 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 63 | 新增: </Trigger> | |
| 64 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 65 | 新增: <Setter TargetName="Border" Property="BorderThickness" Value="1"/> | |
| 66 | 新增: <Setter TargetName="Border" Property="Background" Value="White"/> | |
| 67 | 新增: | |
| 68 | 新增: </Trigger> | |
| 69 | 新增: </ControlTemplate.Triggers> | |
| 70 | 新增: </ControlTemplate> | |
| 71 | 新增: </Setter.Value> | |
| 72 | 新增: </Setter> | |
| 73 | 新增: </Style> | |
| 74 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,65 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:ChartsItemTypeRadar}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <!--<Setter Property="Margin" Value="0,5"/>--> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:ChartsItemTypeRadar}"> | |
| 15 | 新增: <Grid Background="{TemplateBinding Background}"> | |
| 16 | 新增: <Grid x:Name="Normal"> | |
| 17 | 新增: | |
| 18 | 新增: <Canvas x:Name="Canvas" RenderTransformOrigin=".5,.5"> | |
| 19 | 新增: <Canvas.RenderTransform> | |
| 20 | 新增: <RotateTransform Angle="-90"></RotateTransform> | |
| 21 | 新增: </Canvas.RenderTransform> | |
| 22 | 新增: </Canvas> | |
| 23 | 新增: | |
| 24 | 新增: <Rectangle | |
| 25 | 新增: x:Name="ValueBlockObj" | |
| 26 | 新增: Width="20" | |
| 27 | 新增: Height="20" | |
| 28 | 新增: | |
| 29 | 新增: HorizontalAlignment="Center" | |
| 30 | 新增: VerticalAlignment="Center" | |
| 31 | 新增: Margin="0" | |
| 32 | 新增: RenderTransformOrigin="0.5,0.5" | |
| 33 | 新增: | |
| 34 | 新增: > | |
| 35 | 新增: <Rectangle.Effect> | |
| 36 | 新增: <BlurEffect RenderOptions.BitmapScalingMode="LowQuality" Radius="35" RenderingBias="Performance"/> | |
| 37 | 新增: </Rectangle.Effect> | |
| 38 | 新增: <Rectangle.Fill> | |
| 39 | 新增: <LinearGradientBrush RenderOptions.BitmapScalingMode="LowQuality" EndPoint="2,1" StartPoint="-2,0"> | |
| 40 | 新增: <GradientStop Color="White"/> | |
| 41 | 新增: <GradientStop Color="#ff305b" Offset="1"/> | |
| 42 | 新增: </LinearGradientBrush> | |
| 43 | 新增: </Rectangle.Fill> | |
| 44 | 新增: <Rectangle.RenderTransform> | |
| 45 | 新增: <ScaleTransform ScaleX="3" ScaleY="3" CenterX="0" CenterY="0"/> | |
| 46 | 新增: </Rectangle.RenderTransform> | |
| 47 | 新增: </Rectangle> | |
| 48 | 新增: </Grid> | |
| 49 | 新增: <Grid x:Name="Loading"> | |
| 50 | 新增: </Grid> | |
| 51 | 新增: </Grid> | |
| 52 | 新增: | |
| 53 | 新增: <!--</Border>--> | |
| 54 | 新增: | |
| 55 | 新增: <ControlTemplate.Triggers> | |
| 56 | 新增: <Trigger Property="IsLoading" Value="True"> | |
| 57 | 新增: <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> | |
| 58 | 新增: <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> | |
| 59 | 新增: </Trigger> | |
| 60 | 新增: </ControlTemplate.Triggers> | |
| 61 | 新增: </ControlTemplate> | |
| 62 | 新增: </Setter.Value> | |
| 63 | 新增: </Setter> | |
| 64 | 新增: </Style> | |
| 65 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,34 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:s="clr-namespace:System;assembly=mscorlib" | |
| 4 | 新增: xmlns:m="clr-namespace:System.Media;assembly=System" | |
| 5 | 新增: > | |
| 6 | 新增: <s:String x:Key="ThemeName">Light</s:String> | |
| 7 | 新增: <!--【主题颜色】--> | |
| 8 | 新增: <Color x:Key="ThemeColor">#2b20d9</Color> | |
| 9 | 新增: | |
| 10 | 新增: <!--鼠标经过背景颜色--> | |
| 11 | 新增: <Color x:Key="HoverBackgroundColor">#eaeaea</Color> | |
| 12 | 新增: | |
| 13 | 新增: <!--【通用笔刷】--> | |
| 14 | 新增: <!--主题颜色笔刷--> | |
| 15 | 新增: <SolidColorBrush x:Key="ThemeBrush" Color="{StaticResource ThemeColor}" /> | |
| 16 | 新增: <!---鼠标经过背景颜色--> | |
| 17 | 新增: <SolidColorBrush x:Key="HoverBackgroundBrush" Color="{StaticResource HoverBackgroundColor}" /> | |
| 18 | 新增: <!--标准背景颜色--> | |
| 19 | 新增: <SolidColorBrush x:Key="StandardBackgroundBrush" Color="#ffffff" /> | |
| 20 | 新增: <SolidColorBrush x:Key="StandardBackgroundBrush2" Color="#ffffff" /> | |
| 21 | 新增: | |
| 22 | 新增: <!--【窗口】--> | |
| 23 | 新增: <SolidColorBrush x:Key="StandardTextBrush" Color="#000" /> | |
| 24 | 新增: <SolidColorBrush x:Key="SubTextBrush" Color="#5c5c5c" /> | |
| 25 | 新增: | |
| 26 | 新增: <!--窗口背景颜色--> | |
| 27 | 新增: <SolidColorBrush x:Key="WindowBackground" Color="#f3f3f3" /> | |
| 28 | 新增: | |
| 29 | 新增: | |
| 30 | 新增: <SolidColorBrush x:Key="WindowContentBackground" Color="#f9f9f9" /> | |
| 31 | 新增: <SolidColorBrush x:Key="WindowContentBorder" Color="#ccc"/> | |
| 32 | 新增: <SolidColorBrush x:Key="CardBorder" Color="#ccc"/> | |
| 33 | 新增: | |
| 34 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,163 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.DatePickerBar" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:list="clr-namespace:UI.Controls.List"> | |
| 6 | 新增: <Style TargetType="{x:Type local:DatePickerBar}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:DatePickerBar}"> | |
| 14 | 新增: <Border> | |
| 15 | 新增: <StackPanel> | |
| 16 | 新增: <Grid x:Name="header"> | |
| 17 | 新增: <Border | |
| 18 | 新增: Width="{Binding ElementName=Date,Path=ActualWidth}" | |
| 19 | 新增: Height="{Binding ElementName=Date,Path=ActualHeight}" | |
| 20 | 新增: Background="{Binding ElementName=Date,Path=Background}" | |
| 21 | 新增: CornerRadius="{Binding ElementName=Date,Path=CornerRadius}" | |
| 22 | 新增: Padding="{Binding ElementName=Date,Path=Padding}" | |
| 23 | 新增: Margin="{Binding ElementName=Date,Path=Margin}" | |
| 24 | 新增: | |
| 25 | 新增: HorizontalAlignment="Left" | |
| 26 | 新增: > | |
| 27 | 新增: <Border.Effect> | |
| 28 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 29 | 新增: </Border.Effect> | |
| 30 | 新增: </Border> | |
| 31 | 新增: <Border | |
| 32 | 新增: x:Name="Date" | |
| 33 | 新增: Background="{DynamicResource StandardBackgroundBrush}" | |
| 34 | 新增: Padding="15,8" | |
| 35 | 新增: CornerRadius="12" | |
| 36 | 新增: Margin="0,0,0,10" | |
| 37 | 新增: HorizontalAlignment="Left" | |
| 38 | 新增: ToolTip="选择"> | |
| 39 | 新增: <!--<Border.Effect> | |
| 40 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 41 | 新增: </Border.Effect>--> | |
| 42 | 新增: <StackPanel Orientation="Horizontal" > | |
| 43 | 新增: <base:Icon x:Name="DateIcon" Margin="0,0,5,0" IconType="DateTime" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" HorizontalAlignment="Right"/> | |
| 44 | 新增: | |
| 45 | 新增: <TextBlock Foreground="{DynamicResource StandardTextBrush}" FontSize="15" Text="{TemplateBinding SelectedDateString}" Margin="0,0" VerticalAlignment="Center" HorizontalAlignment="Left"/> | |
| 46 | 新增: <base:Icon x:Name="PopupIcon" Width="25" Height="25" Margin="10,0,0,0" FontSize="10" IconType="ChevronDown" VerticalAlignment="Center" HorizontalAlignment="Right"> | |
| 47 | 新增: <base:Icon.RenderTransform> | |
| 48 | 新增: <RotateTransform Angle="0" CenterX="12.5" CenterY="12.5"/> | |
| 49 | 新增: </base:Icon.RenderTransform> | |
| 50 | 新增: </base:Icon> | |
| 51 | 新增: </StackPanel> | |
| 52 | 新增: | |
| 53 | 新增: </Border> | |
| 54 | 新增: <Popup | |
| 55 | 新增: x:Name="DatePickerPopup" | |
| 56 | 新增: AllowsTransparency="True" | |
| 57 | 新增: IsOpen="{TemplateBinding IsShowDatePickerPopup}" | |
| 58 | 新增: Placement="Bottom" | |
| 59 | 新增: PlacementTarget="{Binding ElementName=Date}" | |
| 60 | 新增: PopupAnimation="Slide" | |
| 61 | 新增: StaysOpen="False"> | |
| 62 | 新增: <Border | |
| 63 | 新增: Background="{DynamicResource StandardBackgroundBrush2}" | |
| 64 | 新增: CornerRadius="12" | |
| 65 | 新增: Padding="10" | |
| 66 | 新增: Margin="10"> | |
| 67 | 新增: <Border.Effect> | |
| 68 | 新增: <DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity=".2"/> | |
| 69 | 新增: </Border.Effect> | |
| 70 | 新增: | |
| 71 | 新增: <Grid> | |
| 72 | 新增: <Path | |
| 73 | 新增: Width="15" | |
| 74 | 新增: Height="15" | |
| 75 | 新增: SnapsToDevicePixels="False" | |
| 76 | 新增: Data="M 0 15 L 7.5 7.5 L 15 15" Fill="{DynamicResource StandardBackgroundBrush2}" | |
| 77 | 新增: Stroke="{DynamicResource StandardBackgroundBrush2}" | |
| 78 | 新增: StrokeThickness="1" | |
| 79 | 新增: VerticalAlignment="Top" | |
| 80 | 新增: HorizontalAlignment="Left" | |
| 81 | 新增: Margin="0,-25,0,0" | |
| 82 | 新增: /> | |
| 83 | 新增: <StackPanel Orientation="Horizontal"> | |
| 84 | 新增: <!--<ScrollViewer x:Name="YearsListScrollViewer" CanContentScroll="True" VerticalScrollBarVisibility="Hidden">--> | |
| 85 | 新增: <StackPanel > | |
| 86 | 新增: <TextBlock Text="年份" HorizontalAlignment="Center"/> | |
| 87 | 新增: <list:BaseList x:Name="YearsList" Height="120" Margin="0,5,0,0"> | |
| 88 | 新增: | |
| 89 | 新增: </list:BaseList> | |
| 90 | 新增: </StackPanel> | |
| 91 | 新增: <StackPanel x:Name="MonthSelect" Margin="10,0,0,0" Visibility="Collapsed"> | |
| 92 | 新增: <TextBlock Text="月份" HorizontalAlignment="Center"/> | |
| 93 | 新增: <list:BaseList x:Name="MonthsList" Height="120" Margin="0,5,0,0" HorizontalAlignment="Center"> | |
| 94 | 新增: | |
| 95 | 新增: </list:BaseList> | |
| 96 | 新增: </StackPanel> | |
| 97 | 新增: <!--</ScrollViewer>--> | |
| 98 | 新增: | |
| 99 | 新增: </StackPanel> | |
| 100 | 新增: | |
| 101 | 新增: </Grid> | |
| 102 | 新增: | |
| 103 | 新增: </Border> | |
| 104 | 新增: </Popup> | |
| 105 | 新增: </Grid> | |
| 106 | 新增: <Grid x:Name="ItemSelect"> | |
| 107 | 新增: <Border Background="{DynamicResource StandardBackgroundBrush}" Padding="10" CornerRadius="10" Margin="0,10,0,0"> | |
| 108 | 新增: <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Hidden"> | |
| 109 | 新增: <StackPanel | |
| 110 | 新增: Orientation="Horizontal" | |
| 111 | 新增: x:Name="Container"> | |
| 112 | 新增: | |
| 113 | 新增: </StackPanel> | |
| 114 | 新增: </ScrollViewer> | |
| 115 | 新增: </Border> | |
| 116 | 新增: </Grid> | |
| 117 | 新增: </StackPanel> | |
| 118 | 新增: | |
| 119 | 新增: <VisualStateManager.VisualStateGroups> | |
| 120 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 121 | 新增: <VisualStateGroup.Transitions> | |
| 122 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 123 | 新增: <VisualTransition GeneratedDuration="0" | |
| 124 | 新增: To="Pressed" /> | |
| 125 | 新增: </VisualStateGroup.Transitions> | |
| 126 | 新增: <VisualState x:Name="Normal" /> | |
| 127 | 新增: <VisualState x:Name="DateMouseOver"> | |
| 128 | 新增: <Storyboard> | |
| 129 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 130 | 新增: Storyboard.TargetName="Date"> | |
| 131 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 132 | 新增: Value="{DynamicResource HoverBackgroundColor}" /> | |
| 133 | 新增: </ColorAnimationUsingKeyFrames> | |
| 134 | 新增: </Storyboard> | |
| 135 | 新增: </VisualState> | |
| 136 | 新增: <VisualState x:Name="ShowPopup"> | |
| 137 | 新增: <Storyboard> | |
| 138 | 新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(base:Icon.RenderTransform).(RotateTransform.Angle)" | |
| 139 | 新增: Storyboard.TargetName="PopupIcon"> | |
| 140 | 新增: <EasingDoubleKeyFrame KeyTime="0" | |
| 141 | 新增: Value="-180" /> | |
| 142 | 新增: | |
| 143 | 新增: </DoubleAnimationUsingKeyFrames> | |
| 144 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(base:Icon.Foreground).(SolidColorBrush.Color)" | |
| 145 | 新增: Storyboard.TargetName="DateIcon"> | |
| 146 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 147 | 新增: Value="{DynamicResource ThemeColor}" /> | |
| 148 | 新增: </ColorAnimationUsingKeyFrames> | |
| 149 | 新增: </Storyboard> | |
| 150 | 新增: </VisualState> | |
| 151 | 新增: </VisualStateGroup> | |
| 152 | 新增: </VisualStateManager.VisualStateGroups> | |
| 153 | 新增: </Border> | |
| 154 | 新增: <ControlTemplate.Triggers> | |
| 155 | 新增: <Trigger Property="ShowType" Value="Year"> | |
| 156 | 新增: <Setter TargetName="ItemSelect" Property="Visibility" Value="Collapsed"/> | |
| 157 | 新增: </Trigger> | |
| 158 | 新增: </ControlTemplate.Triggers> | |
| 159 | 新增: </ControlTemplate> | |
| 160 | 新增: </Setter.Value> | |
| 161 | 新增: </Setter> | |
| 162 | 新增: </Style> | |
| 163 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,78 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.DatePickerBar" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:DatePickerBarItem}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="Cursor" Value="Hand"/> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:DatePickerBarItem}"> | |
| 14 | 新增: <Border> | |
| 15 | 新增: | |
| 16 | 新增: | |
| 17 | 新增: <Grid Margin="2"> | |
| 18 | 新增: | |
| 19 | 新增: <Border x:Name="Bg" Background="#f9f9f9" Width="45" Height="45" CornerRadius="25"> | |
| 20 | 新增: <TextBlock x:Name="Text" Foreground="#5c5c5c" Text="{TemplateBinding Title}" HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
| 21 | 新增: </Border> | |
| 22 | 新增: </Grid> | |
| 23 | 新增: <VisualStateManager.VisualStateGroups> | |
| 24 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 25 | 新增: <VisualStateGroup.Transitions> | |
| 26 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 27 | 新增: <VisualTransition GeneratedDuration="0" | |
| 28 | 新增: To="Pressed" /> | |
| 29 | 新增: </VisualStateGroup.Transitions> | |
| 30 | 新增: <VisualState x:Name="Normal" /> | |
| 31 | 新增: <VisualState x:Name="MouseOver"> | |
| 32 | 新增: <Storyboard> | |
| 33 | 新增: <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 34 | 新增: Storyboard.TargetName="Bg" To="{DynamicResource HoverBackgroundColor}"> | |
| 35 | 新增: <ColorAnimation.EasingFunction> | |
| 36 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 37 | 新增: </ColorAnimation.EasingFunction> | |
| 38 | 新增: </ColorAnimation> | |
| 39 | 新增: <ColorAnimation Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" | |
| 40 | 新增: Storyboard.TargetName="Text" To="#ffffff"> | |
| 41 | 新增: <ColorAnimation.EasingFunction> | |
| 42 | 新增: <CubicEase EasingMode="EaseInOut"/> | |
| 43 | 新增: </ColorAnimation.EasingFunction> | |
| 44 | 新增: </ColorAnimation> | |
| 45 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 46 | 新增: Storyboard.TargetName="Bg" > | |
| 47 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 48 | 新增: Value="#192B20D9"/> | |
| 49 | 新增: | |
| 50 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 51 | 新增: | |
| 52 | 新增: </Storyboard> | |
| 53 | 新增: </VisualState> | |
| 54 | 新增: <VisualState x:Name="Pressed"> | |
| 55 | 新增: | |
| 56 | 新增: </VisualState> | |
| 57 | 新增: </VisualStateGroup> | |
| 58 | 新增: </VisualStateManager.VisualStateGroups> | |
| 59 | 新增: </Border> | |
| 60 | 新增: <ControlTemplate.Triggers> | |
| 61 | 新增: <Trigger Property="IsSelected" | |
| 62 | 新增: Value="True"> | |
| 63 | 新增: <Setter TargetName="Bg" Property="Background" Value="{DynamicResource ThemeBrush}"/> | |
| 64 | 新增: <Setter TargetName="Text" Property="Foreground" Value="white"/> | |
| 65 | 新增: | |
| 66 | 新增: </Trigger> | |
| 67 | 新增: <Trigger Property="IsDisabled" | |
| 68 | 新增: Value="True"> | |
| 69 | 新增: <!--<Setter TargetName="Bg" Property="Background" Value="#2b20d9"/>--> | |
| 70 | 新增: <Setter TargetName="Text" Property="Foreground" Value="#ccc"/> | |
| 71 | 新增: | |
| 72 | 新增: </Trigger> | |
| 73 | 新增: </ControlTemplate.Triggers> | |
| 74 | 新增: </ControlTemplate> | |
| 75 | 新增: </Setter.Value> | |
| 76 | 新增: </Setter> | |
| 77 | 新增: </Style> | |
| 78 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,92 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Input" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:InputBox}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Width" Value="auto"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Height" Value="35"/> | |
| 12 | 新增: <Setter Property="Cursor" Value="IBeam"/> | |
| 13 | 新增: | |
| 14 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 15 | 新增: <Setter Property="Template"> | |
| 16 | 新增: <Setter.Value> | |
| 17 | 新增: <ControlTemplate TargetType="{x:Type local:InputBox}"> | |
| 18 | 新增: <Border Background="{TemplateBinding Background}" x:Name="Border"> | |
| 19 | 新增: | |
| 20 | 新增: <Grid> | |
| 21 | 新增: <Border x:Name="BoxBorder" BorderBrush="#a3a3a3" BorderThickness="2" CornerRadius="4"> | |
| 22 | 新增: <Grid> | |
| 23 | 新增: <TextBlock Margin="5,0" x:Name="Placeholder" Text="{TemplateBinding Placeholder}" Foreground="#a3a3a3" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="Center" Visibility="Collapsed"/> | |
| 24 | 新增: <ScrollViewer Margin="5,0" | |
| 25 | 新增: x:Name="PART_ContentHost" VerticalAlignment="Center"/> | |
| 26 | 新增: </Grid> | |
| 27 | 新增: | |
| 28 | 新增: </Border> | |
| 29 | 新增: <Popup | |
| 30 | 新增: x:Name="ErrorPopup" | |
| 31 | 新增: AllowsTransparency="True" | |
| 32 | 新增: IsOpen="{TemplateBinding IsShowError}" | |
| 33 | 新增: Placement="Bottom" | |
| 34 | 新增: PlacementTarget="{Binding ElementName=BoxBorder}" | |
| 35 | 新增: PopupAnimation="Slide" | |
| 36 | 新增: StaysOpen="False"> | |
| 37 | 新增: <Border | |
| 38 | 新增: Background="Red" | |
| 39 | 新增: CornerRadius="12" | |
| 40 | 新增: Padding="10" | |
| 41 | 新增: Margin="10"> | |
| 42 | 新增: <Border.Effect> | |
| 43 | 新增: <DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity=".2"/> | |
| 44 | 新增: </Border.Effect> | |
| 45 | 新增: | |
| 46 | 新增: <Grid> | |
| 47 | 新增: <Path | |
| 48 | 新增: Width="15" | |
| 49 | 新增: Height="15" | |
| 50 | 新增: SnapsToDevicePixels="False" | |
| 51 | 新增: Data="M 0 15 L 7.5 7.5 L 15 15" Fill="Red" | |
| 52 | 新增: Stroke="Red" | |
| 53 | 新增: StrokeThickness="1" | |
| 54 | 新增: VerticalAlignment="Top" | |
| 55 | 新增: HorizontalAlignment="Left" | |
| 56 | 新增: Margin="0,-25,0,0" | |
| 57 | 新增: /> | |
| 58 | 新增: <TextBlock Foreground="White" Text="{TemplateBinding Error}"/> | |
| 59 | 新增: </Grid> | |
| 60 | 新增: | |
| 61 | 新增: </Border> | |
| 62 | 新增: </Popup> | |
| 63 | 新增: | |
| 64 | 新增: </Grid> | |
| 65 | 新增: <VisualStateManager.VisualStateGroups> | |
| 66 | 新增: <VisualStateGroup Name="FocusStates"> | |
| 67 | 新增: <VisualState Name="Unfocused"/> | |
| 68 | 新增: <!--Right here--> | |
| 69 | 新增: <VisualState Name="Focused"> | |
| 70 | 新增: <Storyboard> | |
| 71 | 新增: <ColorAnimation Storyboard.TargetName="BoxBorder" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" | |
| 72 | 新增: To="{DynamicResource ThemeColor}" | |
| 73 | 新增: Duration="0:0:.4"> | |
| 74 | 新增: <ColorAnimation.EasingFunction> | |
| 75 | 新增: <QuadraticEase/> | |
| 76 | 新增: </ColorAnimation.EasingFunction> | |
| 77 | 新增: </ColorAnimation> | |
| 78 | 新增: </Storyboard> | |
| 79 | 新增: </VisualState> | |
| 80 | 新增: </VisualStateGroup> | |
| 81 | 新增: </VisualStateManager.VisualStateGroups> | |
| 82 | 新增: </Border> | |
| 83 | 新增: <ControlTemplate.Triggers> | |
| 84 | 新增: <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Value="{x:Static sys:String.Empty}"> | |
| 85 | 新增: <Setter TargetName="Placeholder" Property="Visibility" Value="Visible" /> | |
| 86 | 新增: </DataTrigger> | |
| 87 | 新增: </ControlTemplate.Triggers> | |
| 88 | 新增: </ControlTemplate> | |
| 89 | 新增: </Setter.Value> | |
| 90 | 新增: </Setter> | |
| 91 | 新增: </Style> | |
| 92 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,40 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.List" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:BaseList}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="UseLayoutRounding" Value="True"/> | |
| 10 | 新增: | |
| 11 | 新增: <!--<Setter Property="MinWidth" Value="150"/>--> | |
| 12 | 新增: <Setter Property="Height" Value="auto"/> | |
| 13 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 14 | 新增: <Setter Property="Template"> | |
| 15 | 新增: <Setter.Value> | |
| 16 | 新增: <ControlTemplate TargetType="{x:Type local:BaseList}"> | |
| 17 | 新增: <Border Background="{TemplateBinding Background}" x:Name="Border"> | |
| 18 | 新增: | |
| 19 | 新增: <Grid> | |
| 20 | 新增: <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Hidden"> | |
| 21 | 新增: <StackPanel x:Name="Container"> | |
| 22 | 新增: | |
| 23 | 新增: </StackPanel> | |
| 24 | 新增: </ScrollViewer> | |
| 25 | 新增: </Grid> | |
| 26 | 新增: | |
| 27 | 新增: </Border> | |
| 28 | 新增: <ControlTemplate.Triggers> | |
| 29 | 新增: <!--<Trigger Property="Icon" Value="None"> | |
| 30 | 新增: <Setter TargetName="Icon" Property="Visibility" Value="Collapsed"/> | |
| 31 | 新增: </Trigger> | |
| 32 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 33 | 新增: <Setter TargetName="BoxBorder" Property="BorderThickness" Value="0"/> | |
| 34 | 新增: </Trigger>--> | |
| 35 | 新增: </ControlTemplate.Triggers> | |
| 36 | 新增: </ControlTemplate> | |
| 37 | 新增: </Setter.Value> | |
| 38 | 新增: </Setter> | |
| 39 | 新增: </Style> | |
| 40 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,85 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.List" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 6 | 新增: <Style TargetType="{x:Type local:BaseListItem}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="UseLayoutRounding" Value="True"/> | |
| 10 | 新增: | |
| 11 | 新增: <!--<Setter Property="MinWidth" Value="150"/>--> | |
| 12 | 新增: <Setter Property="Height" Value="35"/> | |
| 13 | 新增: <Setter Property="Margin" Value="0,10,0,0"/> | |
| 14 | 新增: | |
| 15 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 16 | 新增: <Setter Property="Template"> | |
| 17 | 新增: <Setter.Value> | |
| 18 | 新增: <ControlTemplate TargetType="{x:Type local:BaseListItem}"> | |
| 19 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 20 | 新增: | |
| 21 | 新增: <Border BorderBrush="#f3f3f3" BorderThickness="0" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="{DynamicResource StandardBackgroundBrush}" > | |
| 22 | 新增: <Grid VerticalAlignment="Center" Margin="10,0"> | |
| 23 | 新增: <Grid.ColumnDefinitions> | |
| 24 | 新增: <ColumnDefinition Width="9*"/> | |
| 25 | 新增: <ColumnDefinition Width="1*"/> | |
| 26 | 新增: </Grid.ColumnDefinitions> | |
| 27 | 新增: <TextBlock Text="{TemplateBinding Text}"/> | |
| 28 | 新增: </Grid> | |
| 29 | 新增: | |
| 30 | 新增: </Border> | |
| 31 | 新增: <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}"> | |
| 32 | 新增: <Border.Effect> | |
| 33 | 新增: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="#ccc" Opacity=".05"/> | |
| 34 | 新增: </Border.Effect> | |
| 35 | 新增: </Border> | |
| 36 | 新增: | |
| 37 | 新增: <VisualStateManager.VisualStateGroups> | |
| 38 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 39 | 新增: <VisualStateGroup.Transitions> | |
| 40 | 新增: <VisualTransition GeneratedDuration="0:0:0.18" /> | |
| 41 | 新增: <VisualTransition GeneratedDuration="0" | |
| 42 | 新增: To="Pressed" /> | |
| 43 | 新增: </VisualStateGroup.Transitions> | |
| 44 | 新增: <VisualState x:Name="Normal" /> | |
| 45 | 新增: <VisualState x:Name="MouseOver"> | |
| 46 | 新增: <Storyboard> | |
| 47 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Color)" | |
| 48 | 新增: Storyboard.TargetName="Shadow"> | |
| 49 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 50 | 新增: Value="{DynamicResource ThemeColor}"/> | |
| 51 | 新增: </ColorAnimationUsingKeyFrames> | |
| 52 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 53 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 54 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 55 | 新增: Value="#192B20D9" /> | |
| 56 | 新增: </ColorAnimationUsingKeyFrames> | |
| 57 | 新增: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Button.Foreground).(SolidColorBrush.Color)" | |
| 58 | 新增: > | |
| 59 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 60 | 新增: Value="White" /> | |
| 61 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 62 | 新增: </Storyboard> | |
| 63 | 新增: </VisualState> | |
| 64 | 新增: <VisualState x:Name="Pressed"> | |
| 65 | 新增: | |
| 66 | 新增: </VisualState> | |
| 67 | 新增: </VisualStateGroup> | |
| 68 | 新增: </VisualStateManager.VisualStateGroups> | |
| 69 | 新增: | |
| 70 | 新增: </Grid> | |
| 71 | 新增: <ControlTemplate.Triggers> | |
| 72 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 73 | 新增: <Setter TargetName="BoxBorder" Property="Background" Value="{DynamicResource ThemeBrush}"/> | |
| 74 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 75 | 新增: | |
| 76 | 新增: </Trigger> | |
| 77 | 新增: <!--<Trigger Property="IsMouseOver" Value="True"> | |
| 78 | 新增: <Setter TargetName="BoxBorder" Property="BorderThickness" Value="0"/> | |
| 79 | 新增: </Trigger>--> | |
| 80 | 新增: </ControlTemplate.Triggers> | |
| 81 | 新增: </ControlTemplate> | |
| 82 | 新增: </Setter.Value> | |
| 83 | 新增: </Setter> | |
| 84 | 新增: </Style> | |
| 85 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,45 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Navigation" | |
| 4 | 新增: > | |
| 5 | 新增: <Style TargetType="{x:Type local:Navigation}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="MinWidth" Value="44"/> | |
| 9 | 新增: <Setter Property="Height" Value="auto"/> | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 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"/> | |
| 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="{DynamicResource ThemeBrush}" 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"/> | |
| 38 | 新增: </Grid> | |
| 39 | 新增: <!--</Border>--> | |
| 40 | 新增: | |
| 41 | 新增: </ControlTemplate> | |
| 42 | 新增: </Setter.Value> | |
| 43 | 新增: </Setter> | |
| 44 | 新增: </Style> | |
| 45 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,146 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Navigation" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:NavigationItem}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="Width" Value="60"/> | |
| 9 | 新增: <!--<Setter Property="MinHeight" Value="44"/>--> | |
| 10 | 新增: <Setter Property="Height" Value="60"/> | |
| 11 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:NavigationItem}"> | |
| 15 | 新增: <Border Background="Transparent" CornerRadius="5" x:Name="Border"> | |
| 16 | 新增: <!--<Border.Background> | |
| 17 | 新增: <SolidColorBrush Color="{TemplateBinding Background}" Opacity="1"/> | |
| 18 | 新增: </Border.Background>--> | |
| 19 | 新增: <VisualStateManager.VisualStateGroups> | |
| 20 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 21 | 新增: <!--<VisualStateGroup.Transitions> | |
| 22 | 新增: <VisualTransition GeneratedDuration="0:0:0.15" /> | |
| 23 | 新增: <VisualTransition GeneratedDuration="0" | |
| 24 | 新增: To="Pressed" /> | |
| 25 | 新增: </VisualStateGroup.Transitions>--> | |
| 26 | 新增: <VisualState x:Name="Normal" /> | |
| 27 | 新增: <VisualState x:Name="MouseOver"> | |
| 28 | 新增: <Storyboard> | |
| 29 | 新增: <ColorAnimationUsingKeyFrames | |
| 30 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 31 | 新增: Storyboard.TargetName="Border" | |
| 32 | 新增: > | |
| 33 | 新增: <ColorAnimationUsingKeyFrames.KeyFrames> | |
| 34 | 新增: <LinearColorKeyFrame Value="#eaeaea" KeyTime="0:0:0" /> | |
| 35 | 新增: | |
| 36 | 新增: <!--<LinearColorKeyFrame Value="#eaeaea" KeyTime="0:0:0.3" />--> | |
| 37 | 新增: </ColorAnimationUsingKeyFrames.KeyFrames> | |
| 38 | 新增: </ColorAnimationUsingKeyFrames> | |
| 39 | 新增: <!--<ColorAnimationUsingKeyFrames | |
| 40 | 新增: Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" | |
| 41 | 新增: Storyboard.TargetName="Title" | |
| 42 | 新增: > | |
| 43 | 新增: <ColorAnimationUsingKeyFrames.KeyFrames> | |
| 44 | 新增: <LinearColorKeyFrame Value="{DynamicResource ThemeColor}" KeyTime="0:0:0" /> | |
| 45 | 新增: | |
| 46 | 新增: </ColorAnimationUsingKeyFrames.KeyFrames> | |
| 47 | 新增: </ColorAnimationUsingKeyFrames>--> | |
| 48 | 新增: <!--<ColorAnimation Duration="0:0:0.8" | |
| 49 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" To="#353535" />--> | |
| 50 | 新增: | |
| 51 | 新增: | |
| 52 | 新增: </Storyboard> | |
| 53 | 新增: </VisualState> | |
| 54 | 新增: <VisualState x:Name="Pressed"> | |
| 55 | 新增: | |
| 56 | 新增: </VisualState> | |
| 57 | 新增: </VisualStateGroup> | |
| 58 | 新增: </VisualStateManager.VisualStateGroups> | |
| 59 | 新增: <!--<Rectangle x:Name="Line" Height="1" Width="auto" Fill="{DynamicResource SubBorderBrush}" Visibility="Collapsed" Margin="20,0"/>--> | |
| 60 | 新增: <Grid x:Name="Content" Margin="5"> | |
| 61 | 新增: <!--<Grid.ColumnDefinitions> | |
| 62 | 新增: <ColumnDefinition Width="15"/> | |
| 63 | 新增: <ColumnDefinition Width="25"/> | |
| 64 | 新增: <ColumnDefinition Width="*"/> | |
| 65 | 新增: <ColumnDefinition Width="44"/> | |
| 66 | 新增: </Grid.ColumnDefinitions>--> | |
| 67 | 新增: <!--<Rectangle x:Name="CheckMark" Width="2" Fill="{TemplateBinding IconColorBrush}" Visibility="Hidden" Margin="0,10"/>--> | |
| 68 | 新增: <!--<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">--> | |
| 69 | 新增: <!--图标--> | |
| 70 | 新增: <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"> | |
| 71 | 新增: <base:Icon.RenderTransform> | |
| 72 | 新增: <TransformGroup> | |
| 73 | 新增: <TranslateTransform X="0" Y="-5"/> | |
| 74 | 新增: <ScaleTransform ScaleX=".8" ScaleY=".8" CenterX=".5" CenterY=".5"/> | |
| 75 | 新增: | |
| 76 | 新增: </TransformGroup> | |
| 77 | 新增: <!--中心点<TranslateTransform X="0" Y="0"/>--> | |
| 78 | 新增: </base:Icon.RenderTransform> | |
| 79 | 新增: </base:Icon> | |
| 80 | 新增: <!--<base:Icon HorizontalAlignment="Center" IconType="{TemplateBinding Icon}" Foreground="Red" Grid.Column="1" FontSize="20" RenderTransformOrigin="0,0"> | |
| 81 | 新增: | |
| 82 | 新增: </base:Icon>--> | |
| 83 | 新增: <!--标题--> | |
| 84 | 新增: <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"/> | |
| 85 | 新增: <!--</StackPanel>--> | |
| 86 | 新增: <!--徽标--> | |
| 87 | 新增: <!--<TextBlock Text="{TemplateBinding BadgeText}" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,20,0"/>--> | |
| 88 | 新增: | |
| 89 | 新增: </Grid> | |
| 90 | 新增: | |
| 91 | 新增: </Border> | |
| 92 | 新增: <ControlTemplate.Triggers> | |
| 93 | 新增: <Trigger Property="Title" Value="{x:Null}"> | |
| 94 | 新增: <Setter Property="Height" Value="15"/> | |
| 95 | 新增: | |
| 96 | 新增: <!--<Setter Property="Visibility" TargetName="Line" Value="Visible"/>--> | |
| 97 | 新增: <Setter Property="Visibility" TargetName="Content" Value="Collapsed"/> | |
| 98 | 新增: </Trigger> | |
| 99 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 100 | 新增: <!--<Setter Property="Background" Value="White"/>--> | |
| 101 | 新增: <Setter TargetName="Title" Property="Foreground" Value="{DynamicResource ThemeBrush}"/> | |
| 102 | 新增: <Setter TargetName="Title" Property="Visibility" Value="Collapsed"/> | |
| 103 | 新增: | |
| 104 | 新增: <!--<Setter Property="Visibility" TargetName="CheckMark" Value="Visible"/>--> | |
| 105 | 新增: </Trigger> | |
| 106 | 新增: | |
| 107 | 新增: <MultiTrigger> | |
| 108 | 新增: <MultiTrigger.Conditions> | |
| 109 | 新增: <Condition Property="IsSelected" Value="True"/> | |
| 110 | 新增: </MultiTrigger.Conditions> | |
| 111 | 新增: <MultiTrigger.EnterActions> | |
| 112 | 新增: <BeginStoryboard> | |
| 113 | 新增: <Storyboard> | |
| 114 | 新增: <ColorAnimation Duration="0:0:0.3" | |
| 115 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" To="#ffffff" /> | |
| 116 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 117 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[0].(TranslateTransform.Y)" Storyboard.TargetName="Icon" To="0" /> | |
| 118 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 119 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleX)" Storyboard.TargetName="Icon" To="1" /> | |
| 120 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 121 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleY)" Storyboard.TargetName="Icon" To="1" /> | |
| 122 | 新增: </Storyboard> | |
| 123 | 新增: </BeginStoryboard> | |
| 124 | 新增: </MultiTrigger.EnterActions> | |
| 125 | 新增: <MultiTrigger.ExitActions> | |
| 126 | 新增: <BeginStoryboard> | |
| 127 | 新增: <Storyboard> | |
| 128 | 新增: <ColorAnimation Duration="0:0:0.3" | |
| 129 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" To="#00ffffff" /> | |
| 130 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 131 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[0].(TranslateTransform.Y)" Storyboard.TargetName="Icon" To="-5" /> | |
| 132 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 133 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleX)" Storyboard.TargetName="Icon" To=".8" /> | |
| 134 | 新增: <DoubleAnimation Duration="0:0:0.2" | |
| 135 | 新增: Storyboard.TargetProperty="(base:Icon.RenderTransform).Children[1].(ScaleTransform.ScaleY)" Storyboard.TargetName="Icon" To=".8" /> | |
| 136 | 新增: </Storyboard> | |
| 137 | 新增: </BeginStoryboard> | |
| 138 | 新增: </MultiTrigger.ExitActions> | |
| 139 | 新增: </MultiTrigger> | |
| 140 | 新增: | |
| 141 | 新增: </ControlTemplate.Triggers> | |
| 142 | 新增: </ControlTemplate> | |
| 143 | 新增: </Setter.Value> | |
| 144 | 新增: </Setter> | |
| 145 | 新增: </Style> | |
| 146 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,22 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:PageContainer}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" Value="True"/> | |
| 7 | 新增: <Setter Property="Template"> | |
| 8 | 新增: <Setter.Value> | |
| 9 | 新增: <ControlTemplate TargetType="{x:Type local:PageContainer}"> | |
| 10 | 新增: <!--<Border Background="{TemplateBinding Background}" | |
| 11 | 新增: BorderBrush="{TemplateBinding BorderBrush}" | |
| 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>--> | |
| 18 | 新增: </ControlTemplate> | |
| 19 | 新增: </Setter.Value> | |
| 20 | 新增: </Setter> | |
| 21 | 新增: </Style> | |
| 22 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,201 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:button="clr-namespace:UI.Controls.Button" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 4 | 新增: <converter:ToStringConverter x:Key="ToStringConverter"/> | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:DateSelect}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:DateSelect}"> | |
| 15 | 新增: <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" HorizontalAlignment="Left" > | |
| 16 | 新增: <Grid> | |
| 17 | 新增: <!--当前选择项--> | |
| 18 | 新增: <Border Background="{Binding ElementName=Main,Path=Background}" Panel.ZIndex="-1" Width="{Binding ElementName=Main,Path=ActualWidth}" Height="{Binding ElementName=Main,Path=ActualHeight}" CornerRadius="{Binding ElementName=Main,Path=CornerRadius}"> | |
| 19 | 新增: <Border.Effect> | |
| 20 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 21 | 新增: </Border.Effect> | |
| 22 | 新增: </Border> | |
| 23 | 新增: <Border x:Name="Main" Margin="0,0,0,0" Background="{DynamicResource StandardBackgroundBrush}" HorizontalAlignment="Left" Padding="18,10" CornerRadius="5"> | |
| 24 | 新增: <Border.InputBindings> | |
| 25 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=ShowSelectCommand}"/> | |
| 26 | 新增: </Border.InputBindings> | |
| 27 | 新增: | |
| 28 | 新增: <StackPanel Orientation="Horizontal"> | |
| 29 | 新增: <base:Icon x:Name="Icon" IconType="DateTime" Foreground="{DynamicResource StandardTextBrush}"/> | |
| 30 | 新增: <TextBlock Foreground="{DynamicResource StandardTextBrush}" Text="{TemplateBinding DateStr}" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 31 | 新增: </StackPanel> | |
| 32 | 新增: </Border> | |
| 33 | 新增: | |
| 34 | 新增: <!--选择--> | |
| 35 | 新增: <Popup | |
| 36 | 新增: x:Name="Popup" | |
| 37 | 新增: Placement="Bottom" | |
| 38 | 新增: PlacementTarget="{Binding ElementName=Main}" | |
| 39 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" > | |
| 40 | 新增: <Border | |
| 41 | 新增: x:Name="SelectContainer" | |
| 42 | 新增: CornerRadius="10" | |
| 43 | 新增: BorderBrush="{DynamicResource WindowContentBorder}" | |
| 44 | 新增: BorderThickness="1" | |
| 45 | 新增: Background="{DynamicResource StandardBackgroundBrush2}" Padding="10" MaxHeight="300" Margin="10"> | |
| 46 | 新增: <Border.Effect> | |
| 47 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 48 | 新增: </Border.Effect> | |
| 49 | 新增: <Grid> | |
| 50 | 新增: <Grid.RowDefinitions> | |
| 51 | 新增: <RowDefinition Height="40"/> | |
| 52 | 新增: <RowDefinition Height="auto"/> | |
| 53 | 新增: <RowDefinition Height="auto"/> | |
| 54 | 新增: | |
| 55 | 新增: </Grid.RowDefinitions> | |
| 56 | 新增: <!--年份月份选择--> | |
| 57 | 新增: <Border> | |
| 58 | 新增: <Grid> | |
| 59 | 新增: <Grid.ColumnDefinitions> | |
| 60 | 新增: <ColumnDefinition Width="*"/> | |
| 61 | 新增: <ColumnDefinition Width="*"/> | |
| 62 | 新增: | |
| 63 | 新增: </Grid.ColumnDefinitions> | |
| 64 | 新增: <!--年份选择--> | |
| 65 | 新增: <StackPanel Orientation="Horizontal"> | |
| 66 | 新增: <button:IconButton Icon="Back" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetYearCommand}" CommandParameter="-1"/> | |
| 67 | 新增: <TextBlock Width="50" Foreground="{DynamicResource StandardTextBrush}" TextAlignment="Center" Margin="5,0" VerticalAlignment="Center" Text="{TemplateBinding Year ,Converter= {StaticResource ToStringConverter}}"/> | |
| 68 | 新增: <button:IconButton Icon="Forward" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetYearCommand}" CommandParameter="1"/> | |
| 69 | 新增: | |
| 70 | 新增: </StackPanel> | |
| 71 | 新增: <StackPanel Grid.Column="1" Orientation="Horizontal" x:Name="MonthSelect" Visibility="Collapsed"> | |
| 72 | 新增: <button:IconButton Icon="Back" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetMonthCommand}" CommandParameter="-1"/> | |
| 73 | 新增: <TextBlock Width="30" Foreground="{DynamicResource StandardTextBrush}" TextAlignment="Center" Margin="5,0" VerticalAlignment="Center" Text="{TemplateBinding Month ,Converter= {StaticResource ToStringConverter}}"/> | |
| 74 | 新增: <button:IconButton Icon="Forward" FontSize="12" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=SetMonthCommand}" CommandParameter="1"/> | |
| 75 | 新增: | |
| 76 | 新增: </StackPanel> | |
| 77 | 新增: </Grid> | |
| 78 | 新增: | |
| 79 | 新增: </Border> | |
| 80 | 新增: <!--日选择--> | |
| 81 | 新增: <Border Grid.Row="1" Width="250" x:Name="DaySelect" Visibility="Collapsed"> | |
| 82 | 新增: <ListView ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=Days}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=Day,Mode=TwoWay}" Margin="0,10,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > | |
| 83 | 新增: <!--<i:Interaction.Triggers> | |
| 84 | 新增: <i:EventTrigger EventName="MouseLeftButtonUp"> | |
| 85 | 新增: <i:InvokeCommandAction Command="{Binding GotoDetailCommand}" | |
| 86 | 新增: CommandParameter="{Binding SelectedItem}" /> | |
| 87 | 新增: </i:EventTrigger> | |
| 88 | 新增: </i:Interaction.Triggers>--> | |
| 89 | 新增: <ListBox.Resources> | |
| 90 | 新增: <Style TargetType="{x:Type ListView}"> | |
| 91 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 92 | 新增: | |
| 93 | 新增: <Setter Property="Template"> | |
| 94 | 新增: <Setter.Value> | |
| 95 | 新增: <ControlTemplate TargetType="{x:Type ListView}"> | |
| 96 | 新增: <Border> | |
| 97 | 新增: <ItemsPresenter /> | |
| 98 | 新增: </Border> | |
| 99 | 新增: </ControlTemplate> | |
| 100 | 新增: </Setter.Value> | |
| 101 | 新增: </Setter> | |
| 102 | 新增: </Style> | |
| 103 | 新增: <Style TargetType="{x:Type ListViewItem}"> | |
| 104 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 105 | 新增: <Setter Property="Foreground" Value="{DynamicResource StandardTextBrush}"/> | |
| 106 | 新增: | |
| 107 | 新增: <Setter Property="Template"> | |
| 108 | 新增: <Setter.Value> | |
| 109 | 新增: <ControlTemplate TargetType="{x:Type ListViewItem}"> | |
| 110 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="{DynamicResource StandardBackgroundBrush}" Margin="0,0,0,0" Padding="0" Width="35" Height="35" CornerRadius="5"> | |
| 111 | 新增: <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 112 | 新增: </Border> | |
| 113 | 新增: <ControlTemplate.Triggers> | |
| 114 | 新增: <DataTrigger Binding="{Binding IsOut}" Value="True"> | |
| 115 | 新增: <Setter Property="Foreground" Value="#ccc"/> | |
| 116 | 新增: <Setter Property="IsEnabled" Value="False"/> | |
| 117 | 新增: </DataTrigger> | |
| 118 | 新增: <DataTrigger Binding="{Binding IsToday}" Value="True"> | |
| 119 | 新增: <Setter TargetName="Border" Property="Background" Value="#FFF2F1FF"/> | |
| 120 | 新增: <Setter Property="Foreground" Value="{DynamicResource ThemeBrush}"/> | |
| 121 | 新增: | |
| 122 | 新增: </DataTrigger> | |
| 123 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 124 | 新增: <Setter TargetName="Border" Property="Background" Value="{DynamicResource HoverBackgroundBrush}"/> | |
| 125 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 126 | 新增: | |
| 127 | 新增: </Trigger> | |
| 128 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 129 | 新增: <Setter TargetName="Border" Property="Background" Value="{DynamicResource ThemeBrush}"/> | |
| 130 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 131 | 新增: | |
| 132 | 新增: <!--<Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/>--> | |
| 133 | 新增: | |
| 134 | 新增: </Trigger> | |
| 135 | 新增: </ControlTemplate.Triggers> | |
| 136 | 新增: </ControlTemplate> | |
| 137 | 新增: </Setter.Value> | |
| 138 | 新增: </Setter> | |
| 139 | 新增: | |
| 140 | 新增: </Style> | |
| 141 | 新增: </ListBox.Resources> | |
| 142 | 新增: <ListBox.ItemsPanel> | |
| 143 | 新增: <ItemsPanelTemplate> | |
| 144 | 新增: <WrapPanel/> | |
| 145 | 新增: </ItemsPanelTemplate> | |
| 146 | 新增: </ListBox.ItemsPanel> | |
| 147 | 新增: <ListView.ItemTemplate> | |
| 148 | 新增: <DataTemplate> | |
| 149 | 新增: | |
| 150 | 新增: <WrapPanel Orientation="Horizontal"> | |
| 151 | 新增: <Border > | |
| 152 | 新增: <!--<Grid> | |
| 153 | 新增: <base:View Value="{Binding IsToday}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,-5,-5,0"> | |
| 154 | 新增: <Rectangle RadiusX="10" RadiusY="10" Width="5" Height="5" Fill="Red"></Rectangle> | |
| 155 | 新增: </base:View> | |
| 156 | 新增: </Grid>--> | |
| 157 | 新增: <TextBlock Text="{Binding DayText}" /> | |
| 158 | 新增: | |
| 159 | 新增: </Border> | |
| 160 | 新增: | |
| 161 | 新增: </WrapPanel> | |
| 162 | 新增: | |
| 163 | 新增: </DataTemplate> | |
| 164 | 新增: </ListView.ItemTemplate> | |
| 165 | 新增: </ListView> | |
| 166 | 新增: </Border> | |
| 167 | 新增: <Border Grid.Row="2" HorizontalAlignment="Right"> | |
| 168 | 新增: <StackPanel Orientation="Horizontal"> | |
| 169 | 新增: <button:Button Content="确认" Width="100" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:DateSelect}}, Path=DoneCommand}"/> | |
| 170 | 新增: </StackPanel> | |
| 171 | 新增: </Border> | |
| 172 | 新增: </Grid> | |
| 173 | 新增: | |
| 174 | 新增: </Border> | |
| 175 | 新增: </Popup> | |
| 176 | 新增: </Grid> | |
| 177 | 新增: </Border> | |
| 178 | 新增: <ControlTemplate.Triggers> | |
| 179 | 新增: <Trigger Property="SelectType" Value="Day"> | |
| 180 | 新增: <Setter Property="Visibility" TargetName="DaySelect" Value="Visible"/> | |
| 181 | 新增: <Setter Property="Visibility" TargetName="MonthSelect" Value="Visible"/> | |
| 182 | 新增: </Trigger> | |
| 183 | 新增: <Trigger Property="SelectType" Value="Month"> | |
| 184 | 新增: <Setter Property="Visibility" TargetName="DaySelect" Value="Collapsed"/> | |
| 185 | 新增: <Setter Property="Visibility" TargetName="MonthSelect" Value="Visible"/> | |
| 186 | 新增: | |
| 187 | 新增: </Trigger> | |
| 188 | 新增: <Trigger Property="SelectType" Value="Year"> | |
| 189 | 新增: <Setter Property="Visibility" TargetName="DaySelect" Value="Collapsed"/> | |
| 190 | 新增: <Setter Property="Visibility" TargetName="MonthSelect" Value="Collapsed"/> | |
| 191 | 新增: </Trigger> | |
| 192 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 193 | 新增: <Setter Property="Background" TargetName="Main" Value="{DynamicResource HoverBackgroundBrush}"/> | |
| 194 | 新增: <Setter TargetName="Icon" Property="Foreground" Value="{DynamicResource ThemeBrush}"/> | |
| 195 | 新增: </Trigger> | |
| 196 | 新增: </ControlTemplate.Triggers> | |
| 197 | 新增: </ControlTemplate> | |
| 198 | 新增: </Setter.Value> | |
| 199 | 新增: </Setter> | |
| 200 | 新增: </Style> | |
| 201 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,55 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:ImageSelect}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="True" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="ToolTip" Value="选择图片"/> | |
| 12 | 新增: | |
| 13 | 新增: <Setter Property="Template"> | |
| 14 | 新增: <Setter.Value> | |
| 15 | 新增: <ControlTemplate TargetType="{x:Type local:ImageSelect}"> | |
| 16 | 新增: <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" HorizontalAlignment="Left" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"> | |
| 17 | 新增: <Border.InputBindings> | |
| 18 | 新增: <MouseBinding Gesture="LeftClick" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ImageSelect}}, Path=SelectCommand}"/> | |
| 19 | 新增: </Border.InputBindings> | |
| 20 | 新增: <Grid> | |
| 21 | 新增: <Border x:Name="Choose" Background="#f7f8fa" Padding="20" CornerRadius="10"> | |
| 22 | 新增: <Grid HorizontalAlignment="Center"> | |
| 23 | 新增: <Grid.RowDefinitions> | |
| 24 | 新增: <RowDefinition Height="*"/> | |
| 25 | 新增: <RowDefinition Height="*"/> | |
| 26 | 新增: </Grid.RowDefinitions> | |
| 27 | 新增: <base:Icon IconType="FileImage" Foreground="#2b20d9" VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 28 | 新增: | |
| 29 | 新增: <TextBlock Text="选择图片" Grid.Row="1" Margin="0,10,0,0"/> | |
| 30 | 新增: </Grid> | |
| 31 | 新增: </Border> | |
| 32 | 新增: <Border x:Name="Img" BorderBrush="#f7f8fa" BorderThickness="1" CornerRadius="10" Padding="10"> | |
| 33 | 新增: <base:Img URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ImageSelect}}, Path=URL,Mode=TwoWay}" Width="{TemplateBinding ImageWidth}" Height="{TemplateBinding ImageHeight}"/> | |
| 34 | 新增: </Border> | |
| 35 | 新增: | |
| 36 | 新增: </Grid> | |
| 37 | 新增: </Border> | |
| 38 | 新增: <ControlTemplate.Triggers> | |
| 39 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 40 | 新增: <Setter Property="Background" TargetName="Choose" Value="#FFE8E6FF"/> | |
| 41 | 新增: </Trigger> | |
| 42 | 新增: <Trigger Property="IsSelected" Value="True"> | |
| 43 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Visible"/> | |
| 44 | 新增: <Setter Property="Visibility" TargetName="Choose" Value="Collapsed"/> | |
| 45 | 新增: </Trigger> | |
| 46 | 新增: <Trigger Property="IsSelected" Value="False"> | |
| 47 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 48 | 新增: <Setter Property="Visibility" TargetName="Choose" Value="Visible"/> | |
| 49 | 新增: </Trigger> | |
| 50 | 新增: </ControlTemplate.Triggers> | |
| 51 | 新增: </ControlTemplate> | |
| 52 | 新增: </Setter.Value> | |
| 53 | 新增: </Setter> | |
| 54 | 新增: </Style> | |
| 55 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,88 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 4 | 新增: <Style TargetType="{x:Type local:Option}"> | |
| 5 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 6 | 新增: Value="true" /> | |
| 7 | 新增: | |
| 8 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 9 | 新增: <!--<Setter Property="Height" Value="15"/>--> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:Option}"> | |
| 14 | 新增: <Border CornerRadius="10" Background="{TemplateBinding Background}" Padding="10,8"> | |
| 15 | 新增: | |
| 16 | 新增: <Border> | |
| 17 | 新增: <Grid> | |
| 18 | 新增: <Grid.ColumnDefinitions> | |
| 19 | 新增: <ColumnDefinition Width="30"/> | |
| 20 | 新增: | |
| 21 | 新增: <ColumnDefinition Width="auto"/> | |
| 22 | 新增: <ColumnDefinition Width="*"/> | |
| 23 | 新增: | |
| 24 | 新增: </Grid.ColumnDefinitions> | |
| 25 | 新增: <!--标记是否选中--> | |
| 26 | 新增: <Border> | |
| 27 | 新增: <Grid> | |
| 28 | 新增: <!--选中--> | |
| 29 | 新增: <Border | |
| 30 | 新增: Width="20" | |
| 31 | 新增: Height="20" | |
| 32 | 新增: Background="#FFA9A4FD" | |
| 33 | 新增: BorderBrush="{DynamicResource ThemeBrush}" | |
| 34 | 新增: BorderThickness="2" | |
| 35 | 新增: CornerRadius="20" | |
| 36 | 新增: x:Name="CheckStyle" Visibility="Collapsed"> | |
| 37 | 新增: <Rectangle Width="10" Height="10" RadiusX="10" RadiusY="10" Fill="White" VerticalAlignment="Center" HorizontalAlignment="Center"/> | |
| 38 | 新增: </Border> | |
| 39 | 新增: | |
| 40 | 新增: <!--未选中--> | |
| 41 | 新增: <Border | |
| 42 | 新增: Width="20" | |
| 43 | 新增: Height="20" | |
| 44 | 新增: BorderBrush="#FFECECEC" | |
| 45 | 新增: BorderThickness="2" | |
| 46 | 新增: CornerRadius="20" | |
| 47 | 新增: x:Name="UnCheckStyle" Visibility="Collapsed"> | |
| 48 | 新增: | |
| 49 | 新增: </Border> | |
| 50 | 新增: </Grid> | |
| 51 | 新增: </Border> | |
| 52 | 新增: <!--图标--> | |
| 53 | 新增: <Border Grid.Column="1" Margin="5,0,0,0" x:Name="Img"> | |
| 54 | 新增: <base:Img URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Option}}, Path=Value.Img}" Width="25" Height="25" VerticalAlignment="Center"/> | |
| 55 | 新增: </Border> | |
| 56 | 新增: <!--文字--> | |
| 57 | 新增: <Border Grid.Column="2"> | |
| 58 | 新增: <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Option}}, Path=Value.Name}" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 59 | 新增: </Border> | |
| 60 | 新增: </Grid> | |
| 61 | 新增: </Border> | |
| 62 | 新增: | |
| 63 | 新增: | |
| 64 | 新增: | |
| 65 | 新增: | |
| 66 | 新增: </Border> | |
| 67 | 新增: <ControlTemplate.Triggers> | |
| 68 | 新增: <Trigger Property="IsShowIcon" Value="False"> | |
| 69 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 70 | 新增: </Trigger> | |
| 71 | 新增: <Trigger Property="IsChecked" Value="True"> | |
| 72 | 新增: <Setter TargetName="CheckStyle" Property="Visibility" Value="Visible"/> | |
| 73 | 新增: <Setter TargetName="UnCheckStyle" Property="Visibility" Value="Collapsed"/> | |
| 74 | 新增: </Trigger> | |
| 75 | 新增: <Trigger Property="IsChecked" Value="False"> | |
| 76 | 新增: <Setter TargetName="CheckStyle" Property="Visibility" Value="Collapsed"/> | |
| 77 | 新增: <Setter TargetName="UnCheckStyle" Property="Visibility" Value="Visible"/> | |
| 78 | 新增: </Trigger> | |
| 79 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 80 | 新增: <Setter Property="Background" Value="#f7f6f9"/> | |
| 81 | 新增: </Trigger> | |
| 82 | 新增: </ControlTemplate.Triggers> | |
| 83 | 新增: | |
| 84 | 新增: </ControlTemplate> | |
| 85 | 新增: </Setter.Value> | |
| 86 | 新增: </Setter> | |
| 87 | 新增: </Style> | |
| 88 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,77 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:sys="clr-namespace:System;assembly=mscorlib"> | |
| 4 | 新增: | |
| 5 | 新增: | |
| 6 | 新增: <Style TargetType="{x:Type local:Select}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 11 | 新增: | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:Select}"> | |
| 15 | 新增: <Border HorizontalAlignment="Left" > | |
| 16 | 新增: | |
| 17 | 新增: <Grid > | |
| 18 | 新增: <!--当前选择项--> | |
| 19 | 新增: <Border Background="{TemplateBinding Background}" Panel.ZIndex="-1" Width="{Binding ElementName=Main,Path=ActualWidth}" Height="{Binding ElementName=Main,Path=ActualHeight}" CornerRadius="{Binding ElementName=Main,Path=CornerRadius}"> | |
| 20 | 新增: <Border.Effect> | |
| 21 | 新增: <DropShadowEffect Color="#d8d2d2" BlurRadius="1" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> | |
| 22 | 新增: </Border.Effect> | |
| 23 | 新增: | |
| 24 | 新增: </Border> | |
| 25 | 新增: <Border x:Name="Main" Background="{TemplateBinding Background}" Padding="18,10" CornerRadius="5"> | |
| 26 | 新增: <StackPanel Orientation="Horizontal" > | |
| 27 | 新增: <!--<TextBlock x:Name="PlaceholderText" Text="请选择" Visibility="Collapsed"/>--> | |
| 28 | 新增: <base:Img x:Name="Img" URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Img}" Width="20" Height="20" VerticalAlignment="Center"/> | |
| 29 | 新增: <TextBlock TextOptions.TextFormattingMode="Display" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Name}" VerticalAlignment="Center" Margin="5,0,0,0"/> | |
| 30 | 新增: </StackPanel> | |
| 31 | 新增: </Border> | |
| 32 | 新增: | |
| 33 | 新增: <!--选择--> | |
| 34 | 新增: <Popup | |
| 35 | 新增: Placement="Bottom" | |
| 36 | 新增: PlacementTarget="{Binding ElementName=Main}" | |
| 37 | 新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" StaysOpen="False"> | |
| 38 | 新增: <Border | |
| 39 | 新增: CornerRadius="10" | |
| 40 | 新增: BorderBrush="{DynamicResource WindowContentBorder}" | |
| 41 | 新增: BorderThickness="1" | |
| 42 | 新增: Background="{DynamicResource StandardBackgroundBrush2}" Padding="10" MaxHeight="300" Margin="10"> | |
| 43 | 新增: <Border.Effect> | |
| 44 | 新增: <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> | |
| 45 | 新增: </Border.Effect> | |
| 46 | 新增: <ScrollViewer HorizontalScrollBarVisibility="Disabled"> | |
| 47 | 新增: <StackPanel x:Name="OptionsContainer"> | |
| 48 | 新增: | |
| 49 | 新增: </StackPanel> | |
| 50 | 新增: </ScrollViewer> | |
| 51 | 新增: | |
| 52 | 新增: </Border> | |
| 53 | 新增: </Popup> | |
| 54 | 新增: </Grid> | |
| 55 | 新增: </Border> | |
| 56 | 新增: <ControlTemplate.Triggers> | |
| 57 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 58 | 新增: <Setter Property="Background" TargetName="Main" Value="{DynamicResource HoverBackgroundBrush}"/> | |
| 59 | 新增: </Trigger> | |
| 60 | 新增: <Trigger Property="IsShowIcon" Value="False"> | |
| 61 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 62 | 新增: </Trigger> | |
| 63 | 新增: <!--<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Img}" Value="{x:Static sys:String.Empty}"> | |
| 64 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 65 | 新增: | |
| 66 | 新增: </DataTrigger> | |
| 67 | 新增: <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Name}" Value=""> | |
| 68 | 新增: <Setter Property="Visibility" TargetName="Img" Value="Collapsed"/> | |
| 69 | 新增: <Setter Property="Visibility" TargetName="PlaceholderText" Value="Visible"/> | |
| 70 | 新增: | |
| 71 | 新增: </DataTrigger>--> | |
| 72 | 新增: </ControlTemplate.Triggers> | |
| 73 | 新增: </ControlTemplate> | |
| 74 | 新增: </Setter.Value> | |
| 75 | 新增: </Setter> | |
| 76 | 新增: </Style> | |
| 77 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,27 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.SettingPanel" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:SettingPanel}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 10 | 新增: <Setter Property="BorderBrush" Value="#ededed"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:SettingPanel}"> | |
| 14 | 新增: <Border CornerRadius="5" x:Name="Border"> | |
| 15 | 新增: <StackPanel x:Name="Container"> | |
| 16 | 新增: | |
| 17 | 新增: </StackPanel> | |
| 18 | 新增: | |
| 19 | 新增: </Border> | |
| 20 | 新增: <ControlTemplate.Triggers> | |
| 21 | 新增: | |
| 22 | 新增: </ControlTemplate.Triggers> | |
| 23 | 新增: </ControlTemplate> | |
| 24 | 新增: </Setter.Value> | |
| 25 | 新增: </Setter> | |
| 26 | 新增: </Style> | |
| 27 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,47 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.SettingPanel" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style TargetType="{x:Type local:SettingPanelItem}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: | |
| 9 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 10 | 新增: <Setter Property="Template"> | |
| 11 | 新增: <Setter.Value> | |
| 12 | 新增: <ControlTemplate TargetType="{x:Type local:SettingPanelItem}"> | |
| 13 | 新增: <Border Background="{TemplateBinding Background}" Margin="15,16" x:Name="Border"> | |
| 14 | 新增: | |
| 15 | 新增: <Grid> | |
| 16 | 新增: <Grid.ColumnDefinitions> | |
| 17 | 新增: <ColumnDefinition Width="8*"/> | |
| 18 | 新增: <ColumnDefinition Width="2*"/> | |
| 19 | 新增: | |
| 20 | 新增: </Grid.ColumnDefinitions> | |
| 21 | 新增: | |
| 22 | 新增: <Grid> | |
| 23 | 新增: <StackPanel VerticalAlignment="Center" HorizontalAlignment="Left"> | |
| 24 | 新增: <TextBlock Text="{TemplateBinding Name}" FontSize="14" Foreground="{DynamicResource StandardTextBrush}"/> | |
| 25 | 新增: <TextBlock Text="{TemplateBinding Description}" FontSize="12" Margin="0,4,0,0" Foreground="{DynamicResource SubTextBrush}"/> | |
| 26 | 新增: </StackPanel> | |
| 27 | 新增: </Grid> | |
| 28 | 新增: <Grid Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right"> | |
| 29 | 新增: <Border HorizontalAlignment="Left"> | |
| 30 | 新增: <ContentPresenter HorizontalAlignment="Center" | |
| 31 | 新增: VerticalAlignment="Center" | |
| 32 | 新增: RecognizesAccessKey="True" | |
| 33 | 新增: SnapsToDevicePixels="False" Content="{TemplateBinding Content}" | |
| 34 | 新增: /> | |
| 35 | 新增: </Border> | |
| 36 | 新增: </Grid> | |
| 37 | 新增: </Grid> | |
| 38 | 新增: | |
| 39 | 新增: </Border> | |
| 40 | 新增: <ControlTemplate.Triggers> | |
| 41 | 新增: | |
| 42 | 新增: </ControlTemplate.Triggers> | |
| 43 | 新增: </ControlTemplate> | |
| 44 | 新增: </Setter.Value> | |
| 45 | 新增: </Setter> | |
| 46 | 新增: </Style> | |
| 47 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,53 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.SettingPanel" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" | |
| 5 | 新增: xmlns:btn="clr-namespace:UI.Controls.Button"> | |
| 6 | 新增: <Style TargetType="{x:Type local:SettingPanelMultiItem}"> | |
| 7 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 8 | 新增: Value="true" /> | |
| 9 | 新增: <Setter Property="Margin" Value="0,0,0,20"/> | |
| 10 | 新增: | |
| 11 | 新增: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:SettingPanelMultiItem}"> | |
| 15 | 新增: <Border Background="{TemplateBinding Background}" x:Name="Border" CornerRadius="6" > | |
| 16 | 新增: | |
| 17 | 新增: <Grid> | |
| 18 | 新增: <Grid.RowDefinitions> | |
| 19 | 新增: <RowDefinition Height="auto"/> | |
| 20 | 新增: <RowDefinition Height="*"/> | |
| 21 | 新增: | |
| 22 | 新增: </Grid.RowDefinitions> | |
| 23 | 新增: <Grid Margin="10,10,10,10"> | |
| 24 | 新增: <TextBlock Text="{TemplateBinding Title}" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16" FontWeight="Bold"/> | |
| 25 | 新增: | |
| 26 | 新增: <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center"> | |
| 27 | 新增: <btn:IconButton ToolTip="收起" x:Name="FoldBtn" Command="{TemplateBinding OnFoldAction}" Icon="ChevronUp" Margin="0"></btn:IconButton> | |
| 28 | 新增: <btn:IconButton Icon="Delete" Command="{TemplateBinding OnRemoveAction}" ToolTip="移除此项"></btn:IconButton> | |
| 29 | 新增: </StackPanel> | |
| 30 | 新增: | |
| 31 | 新增: </Grid> | |
| 32 | 新增: <StackPanel x:Name="Container" Grid.Row="1"> | |
| 33 | 新增: | |
| 34 | 新增: </StackPanel> | |
| 35 | 新增: | |
| 36 | 新增: </Grid> | |
| 37 | 新增: | |
| 38 | 新增: </Border> | |
| 39 | 新增: <ControlTemplate.Triggers> | |
| 40 | 新增: <Trigger Property="Fold" | |
| 41 | 新增: Value="True"> | |
| 42 | 新增: <Setter TargetName="Container" Property="Visibility" Value="Collapsed"/> | |
| 43 | 新增: </Trigger> | |
| 44 | 新增: <Trigger Property="Fold" | |
| 45 | 新增: Value="False"> | |
| 46 | 新增: <Setter TargetName="Container" Property="Visibility" Value="Visible"/> | |
| 47 | 新增: </Trigger> | |
| 48 | 新增: </ControlTemplate.Triggers> | |
| 49 | 新增: </ControlTemplate> | |
| 50 | 新增: </Setter.Value> | |
| 51 | 新增: </Setter> | |
| 52 | 新增: </Style> | |
| 53 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,46 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
| 3 | 新增: <ResourceDictionary.MergedDictionaries> | |
| 4 | 新增: <ResourceDictionary Source="Window/HideWindow.xaml" /> | |
| 5 | 新增: <ResourceDictionary Source="Window/DefaultWindow.xaml" /> | |
| 6 | 新增: <ResourceDictionary Source="Navigation/NavigationItem.xaml"/> | |
| 7 | 新增: <ResourceDictionary Source="Navigation/Navigation.xaml"/> | |
| 8 | 新增: <ResourceDictionary Source="Base/Icon.xaml"/> | |
| 9 | 新增: <ResourceDictionary Source="Base/Placeholder.xaml"/> | |
| 10 | 新增: <ResourceDictionary Source="Base/EmptyData.xaml"/> | |
| 11 | 新增: <ResourceDictionary Source="Base/Img.xaml"/> | |
| 12 | 新增: <ResourceDictionary Source="Base/CheckBox.xaml"/> | |
| 13 | 新增: <ResourceDictionary Source="Base/Text.xaml"/> | |
| 14 | 新增: <ResourceDictionary Source="Base/View.xaml"/> | |
| 15 | 新增: <ResourceDictionary Source="Base/IconSelect.xaml"/> | |
| 16 | 新增: <ResourceDictionary Source="Base/ColorSelect.xaml"/> | |
| 17 | 新增: | |
| 18 | 新增: <!--<ResourceDictionary Source="PageContainer.xaml"/>--> | |
| 19 | 新增: <ResourceDictionary Source="Charts/Charts.xaml"/> | |
| 20 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeA.xaml"/> | |
| 21 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeCard.xaml"/> | |
| 22 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeMonth.xaml"/> | |
| 23 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeColumn.xaml"/> | |
| 24 | 新增: <ResourceDictionary Source="Charts/ChartsItemTypeRadar.xaml"/> | |
| 25 | 新增: | |
| 26 | 新增: <ResourceDictionary Source="Tabbar/Tabbar.xaml"/> | |
| 27 | 新增: <ResourceDictionary Source="DatePickerBar/DatePickerBar.xaml"/> | |
| 28 | 新增: <ResourceDictionary Source="DatePickerBar/DatePickerBarItem.xaml"/> | |
| 29 | 新增: <ResourceDictionary Source="SettingPanel/SettingPanel.xaml"/> | |
| 30 | 新增: <ResourceDictionary Source="Toggle/Toggle.xaml"/> | |
| 31 | 新增: <ResourceDictionary Source="SettingPanel/SettingPanelItem.xaml"/> | |
| 32 | 新增: <ResourceDictionary Source="SettingPanel/SettingPanelMultiItem.xaml"/> | |
| 33 | 新增: <ResourceDictionary Source="Input/InputBox.xaml"/> | |
| 34 | 新增: <ResourceDictionary Source="Button/IconButton.xaml"/> | |
| 35 | 新增: <ResourceDictionary Source="Button/Button.xaml"/> | |
| 36 | 新增: <ResourceDictionary Source="List/BaseList.xaml"/> | |
| 37 | 新增: <ResourceDictionary Source="List/BaseListItem.xaml"/> | |
| 38 | 新增: | |
| 39 | 新增: <ResourceDictionary Source="Select/Select.xaml"/> | |
| 40 | 新增: <ResourceDictionary Source="Select/Option.xaml"/> | |
| 41 | 新增: <ResourceDictionary Source="Select/ImageSelect.xaml"/> | |
| 42 | 新增: <ResourceDictionary Source="Select/DateSelect.xaml"/> | |
| 43 | 新增: | |
| 44 | 新增: </ResourceDictionary.MergedDictionaries> | |
| 45 | 新增: | |
| 46 | 新增:</ResourceDictionary> | |
| @@ -0,0 +1,46 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Tabbar" | |
| 4 | 新增: > | |
| 5 | 新增: <Style TargetType="{x:Type local:Tabbar}"> | |
| 6 | 新增: <Setter Property="SnapsToDevicePixels" | |
| 7 | 新增: Value="true" /> | |
| 8 | 新增: <Setter Property="MinWidth" Value="44"/> | |
| 9 | 新增: <Setter Property="Height" Value="auto"/> | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="SelectedTextColor" Value="{DynamicResource ThemeColor}"/> | |
| 12 | 新增: <Setter Property="Template"> | |
| 13 | 新增: <Setter.Value> | |
| 14 | 新增: <ControlTemplate TargetType="{x:Type local:Tabbar}"> | |
| 15 | 新增: <!--<Border Background="{TemplateBinding Background}">--> | |
| 16 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 17 | 新增: <Border x:Name="ActiveBlock" Width="35" CornerRadius="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Panel.ZIndex="9" RenderTransformOrigin="0,0"> | |
| 18 | 新增: <Border.RenderTransform> | |
| 19 | 新增: <TransformGroup> | |
| 20 | 新增: <TranslateTransform X="0" Y="0"></TranslateTransform> | |
| 21 | 新增: <ScaleTransform CenterX="0" CenterY="0" ScaleY="1"/> | |
| 22 | 新增: </TransformGroup> | |
| 23 | 新增: </Border.RenderTransform> | |
| 24 | 新增: <Path | |
| 25 | 新增: Width="15" | |
| 26 | 新增: Height="15" | |
| 27 | 新增: SnapsToDevicePixels="False" | |
| 28 | 新增: Data="M 0 15 L 7.5 7.5 L 15 15" Fill="{DynamicResource ThemeBrush}" | |
| 29 | 新增: Stroke="{DynamicResource ThemeBrush}" | |
| 30 | 新增: StrokeThickness="1" | |
| 31 | 新增: /> | |
| 32 | 新增: </Border> | |
| 33 | 新增: <Border Height="30" Margin="0,0,0,15"> | |
| 34 | 新增: <Grid x:Name="ItemsContainer"> | |
| 35 | 新增: | |
| 36 | 新增: </Grid> | |
| 37 | 新增: <!--<StackPanel Orientation="Horizontal" x:Name="ItemsPanel" VerticalAlignment="Bottom"/>--> | |
| 38 | 新增: </Border> | |
| 39 | 新增: </Grid> | |
| 40 | 新增: <!--</Border>--> | |
| 41 | 新增: | |
| 42 | 新增: </ControlTemplate> | |
| 43 | 新增: </Setter.Value> | |
| 44 | 新增: </Setter> | |
| 45 | 新增: </Style> | |
| 46 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,89 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Toggle"> | |
| 4 | 新增: | |
| 5 | 新增: <Style TargetType="{x:Type local:Toggle}"> | |
| 6 | 新增: <Setter Property="Width" Value="auto"/> | |
| 7 | 新增: <Setter Property="Height" Value="22"/> | |
| 8 | 新增: <Setter Property="Cursor" Value="Hand"/> | |
| 9 | 新增: | |
| 10 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 11 | 新增: <Setter Property="Template"> | |
| 12 | 新增: <Setter.Value> | |
| 13 | 新增: <ControlTemplate TargetType="{x:Type local:Toggle}"> | |
| 14 | 新增: <Border x:Name="Border" Background="{TemplateBinding Background}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" CornerRadius="4" Margin="{TemplateBinding Margin}"> | |
| 15 | 新增: <Grid> | |
| 16 | 新增: <Grid.ColumnDefinitions> | |
| 17 | 新增: <ColumnDefinition Width="50"/> | |
| 18 | 新增: <ColumnDefinition Width="*"/> | |
| 19 | 新增: </Grid.ColumnDefinitions> | |
| 20 | 新增: <Border x:Name="Button" Background="#f5f5f5" CornerRadius="10" Padding="5"> | |
| 21 | 新增: <Border x:Name="Mark" Width="12" Height="12" CornerRadius="15" Background="#5d5d5d" VerticalAlignment="Center" HorizontalAlignment="Left"> | |
| 22 | 新增: <Border.RenderTransform> | |
| 23 | 新增: <TranslateTransform X="0"/> | |
| 24 | 新增: </Border.RenderTransform> | |
| 25 | 新增: </Border> | |
| 26 | 新增: </Border> | |
| 27 | 新增: <TextBlock x:Name="OnText" Grid.Column="1" VerticalAlignment="Center" Margin="10,0,0,0" Text="{TemplateBinding OnText}"/> | |
| 28 | 新增: <TextBlock x:Name="OffText" Grid.Column="1" VerticalAlignment="Center" Margin="10,0,0,0" Text="{TemplateBinding OffText}"/> | |
| 29 | 新增: | |
| 30 | 新增: </Grid> | |
| 31 | 新增: | |
| 32 | 新增: <VisualStateManager.VisualStateGroups> | |
| 33 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 34 | 新增: <VisualState x:Name="On"> | |
| 35 | 新增: <Storyboard> | |
| 36 | 新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.RenderTransform). | |
| 37 | 新增: (TranslateTransform.X)" | |
| 38 | 新增: Storyboard.TargetName="Mark"> | |
| 39 | 新增: <EasingDoubleKeyFrame KeyTime="00:00:0.2" | |
| 40 | 新增: Value="28" /> | |
| 41 | 新增: </DoubleAnimationUsingKeyFrames> | |
| 42 | 新增: <!--更改标记点颜色--> | |
| 43 | 新增: <ColorAnimationUsingKeyFrames | |
| 44 | 新增: Storyboard.TargetName="Mark" | |
| 45 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"> | |
| 46 | 新增: <EasingColorKeyFrame KeyTime="00:00:0.2" | |
| 47 | 新增: Value="White"/> | |
| 48 | 新增: </ColorAnimationUsingKeyFrames> | |
| 49 | 新增: <!--更改背景颜色--> | |
| 50 | 新增: <ColorAnimationUsingKeyFrames | |
| 51 | 新增: Storyboard.TargetName="Button" | |
| 52 | 新增: Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"> | |
| 53 | 新增: <EasingColorKeyFrame KeyTime="00:00:0.2" | |
| 54 | 新增: Value="{DynamicResource ThemeColor}"/> | |
| 55 | 新增: </ColorAnimationUsingKeyFrames> | |
| 56 | 新增: </Storyboard> | |
| 57 | 新增: </VisualState> | |
| 58 | 新增: <VisualState x:Name="Off"> | |
| 59 | 新增: <Storyboard> | |
| 60 | 新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.RenderTransform). | |
| 61 | 新增: (TranslateTransform.X)" | |
| 62 | 新增: Storyboard.TargetName="Mark"> | |
| 63 | 新增: <EasingDoubleKeyFrame KeyTime="00:00:0.2" | |
| 64 | 新增: Value="0" /> | |
| 65 | 新增: <EasingDoubleKeyFrame KeyTime="00:00:0" | |
| 66 | 新增: Value="28" /> | |
| 67 | 新增: </DoubleAnimationUsingKeyFrames> | |
| 68 | 新增: </Storyboard> | |
| 69 | 新增: </VisualState> | |
| 70 | 新增: </VisualStateGroup> | |
| 71 | 新增: </VisualStateManager.VisualStateGroups> | |
| 72 | 新增: </Border> | |
| 73 | 新增: <ControlTemplate.Triggers> | |
| 74 | 新增: <Trigger Property="IsChecked" Value="True"> | |
| 75 | 新增: <Setter TargetName="OffText" Property="Visibility" Value="Collapsed"/> | |
| 76 | 新增: <Setter TargetName="OnText" Property="Visibility" Value="Visible"/> | |
| 77 | 新增: </Trigger> | |
| 78 | 新增: <Trigger Property="IsChecked" Value="False"> | |
| 79 | 新增: <Setter TargetName="OffText" Property="Visibility" Value="Visible"/> | |
| 80 | 新增: <Setter TargetName="OnText" Property="Visibility" Value="Collapsed"/> | |
| 81 | 新增: </Trigger> | |
| 82 | 新增: </ControlTemplate.Triggers> | |
| 83 | 新增: | |
| 84 | 新增: </ControlTemplate> | |
| 85 | 新增: </Setter.Value> | |
| 86 | 新增: </Setter> | |
| 87 | 新增: | |
| 88 | 新增: </Style> | |
| 89 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,281 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:w="clr-namespace:UI.Controls.Window" xmlns:button="clr-namespace:UI.Controls.Button" | |
| 4 | 新增: xmlns:base="clr-namespace:UI.Controls.Base"> | |
| 5 | 新增: <Style x:Key="WindowSystemButton" TargetType="{x:Type Button}"> | |
| 6 | 新增: <Setter Property="Background" Value="Transparent"/> | |
| 7 | 新增: <Setter Property="OverridesDefaultStyle" Value="True"/> | |
| 8 | 新增: <Setter Property="VerticalContentAlignment" Value="Center"/> | |
| 9 | 新增: <Setter Property="HorizontalContentAlignment" Value="Center"/> | |
| 10 | 新增: <Setter Property="FontFamily" Value="/Tai;component/Resources/Fonts/#Segoe MDL2 Assets"/> | |
| 11 | 新增: <Setter Property="Foreground" Value="#000"/> | |
| 12 | 新增: <!--<Setter Property="FontWeight" Value="Bold"/>--> | |
| 13 | 新增: <Setter Property="FontSize" Value="10"/> | |
| 14 | 新增: | |
| 15 | 新增: <Setter Property="Template"> | |
| 16 | 新增: <Setter.Value> | |
| 17 | 新增: <ControlTemplate TargetType="{x:Type Button}"> | |
| 18 | 新增: <Border | |
| 19 | 新增: Background="{TemplateBinding Background}" | |
| 20 | 新增: SnapsToDevicePixels="true"> | |
| 21 | 新增: <ContentPresenter Name="Presenter" Margin="{TemplateBinding Padding}" | |
| 22 | 新增: VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
| 23 | 新增: HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" | |
| 24 | 新增: RecognizesAccessKey="True" | |
| 25 | 新增: SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> | |
| 26 | 新增: </Border> | |
| 27 | 新增: <ControlTemplate.Triggers> | |
| 28 | 新增: <Trigger Property="IsEnabled" Value="false"> | |
| 29 | 新增: <!--<Setter Property="Foreground" Value="{DynamicResource ButtonTextDisabled}"/>--> | |
| 30 | 新增: </Trigger> | |
| 31 | 新增: <Trigger Property="IsMouseOver" Value="True"> | |
| 32 | 新增: <Setter Property="Background" Value="{DynamicResource HoverBackgroundBrush}" /> | |
| 33 | 新增: <Setter Property="Foreground" Value="{DynamicResource PrimaryColorBrush}"/> | |
| 34 | 新增: </Trigger> | |
| 35 | 新增: <Trigger Property="IsPressed" Value="True"> | |
| 36 | 新增: <Setter Property="Background" Value="{DynamicResource ThemeBrush}" /> | |
| 37 | 新增: <!--<Setter Property="Background" Value="{DynamicResource ButtonBackgroundPressed}" /> | |
| 38 | 新增: <Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderPressed}"/>--> | |
| 39 | 新增: <Setter Property="Foreground" Value="White"/> | |
| 40 | 新增: </Trigger> | |
| 41 | 新增: <Trigger Property="IsFocused" Value="true"> | |
| 42 | 新增: <!--<Setter TargetName="Chrome" Property="BorderBrush" Value="{DynamicResource Accent}" />--> | |
| 43 | 新增: </Trigger> | |
| 44 | 新增: </ControlTemplate.Triggers> | |
| 45 | 新增: </ControlTemplate> | |
| 46 | 新增: </Setter.Value> | |
| 47 | 新增: </Setter> | |
| 48 | 新增: </Style> | |
| 49 | 新增: <Style x:Key="WindowStyle" TargetType="{x:Type w:DefaultWindow}"> | |
| 50 | 新增: <Setter Property="BorderThickness" Value="1" /> | |
| 51 | 新增: <Setter Property="BorderBrush" Value="{DynamicResource StandardColorBrush}" /> | |
| 52 | 新增: <Setter Property="Background" Value="Transparent" /> | |
| 53 | 新增: <!--<Setter Property="Logo" Value="{DynamicResource WindowLogo}" />--> | |
| 54 | 新增: <Setter Property="Foreground" Value="{DynamicResource StandardTextBrush}" /> | |
| 55 | 新增: | |
| 56 | 新增: <Setter Property="ResizeMode" Value="CanResizeWithGrip" /> | |
| 57 | 新增: <Setter Property="UseLayoutRounding" Value="True" /> | |
| 58 | 新增: <Setter Property="TextOptions.TextFormattingMode" Value="Display"/> | |
| 59 | 新增: <Setter Property="WindowChrome.WindowChrome"> | |
| 60 | 新增: <Setter.Value> | |
| 61 | 新增: <WindowChrome | |
| 62 | 新增: CaptionHeight="32" | |
| 63 | 新增: CornerRadius="0" GlassFrameThickness="1" UseAeroCaptionButtons="False" NonClientFrameEdges="None" /> | |
| 64 | 新增: </Setter.Value> | |
| 65 | 新增: </Setter> | |
| 66 | 新增: <Setter Property="Template"> | |
| 67 | 新增: <Setter.Value> | |
| 68 | 新增: <ControlTemplate TargetType="{x:Type w:DefaultWindow}"> | |
| 69 | 新增: <ControlTemplate.Resources> | |
| 70 | 新增: | |
| 71 | 新增: <Storyboard x:Key="Storyboardload"> | |
| 72 | 新增: <DoubleAnimation Storyboard.TargetName="WindowBorder" Storyboard.TargetProperty="Opacity" Duration="00:00:0.1" From="0" To="1" > | |
| 73 | 新增: </DoubleAnimation> | |
| 74 | 新增: </Storyboard> | |
| 75 | 新增: | |
| 76 | 新增: </ControlTemplate.Resources> | |
| 77 | 新增: <Border x:Name="WindowBorder" | |
| 78 | 新增: Margin="{Binding Source={x:Static SystemParameters.WindowNonClientFrameThickness}}"> | |
| 79 | 新增: <Border | |
| 80 | 新增: | |
| 81 | 新增: BorderThickness="{TemplateBinding BorderThickness}" | |
| 82 | 新增: BorderBrush="{TemplateBinding BorderBrush}" | |
| 83 | 新增: Background="{DynamicResource WindowBackground}" | |
| 84 | 新增: > | |
| 85 | 新增: <AdornerDecorator> | |
| 86 | 新增: <Grid x:Name="WindowContent"> | |
| 87 | 新增: | |
| 88 | 新增: <!--<Grid.RowDefinitions> | |
| 89 | 新增: <RowDefinition Height="Auto"></RowDefinition> | |
| 90 | 新增: <RowDefinition Height="*"></RowDefinition> | |
| 91 | 新增: | |
| 92 | 新增: </Grid.RowDefinitions>--> | |
| 93 | 新增: | |
| 94 | 新增: <!--标题栏--> | |
| 95 | 新增: <Grid | |
| 96 | 新增: x:Name="TitleBar" | |
| 97 | 新增: Panel.ZIndex="999" | |
| 98 | 新增: Height="{DynamicResource WindowTitleBarHeight}" | |
| 99 | 新增: VerticalAlignment="Top"> | |
| 100 | 新增: <Grid.ColumnDefinitions> | |
| 101 | 新增: <ColumnDefinition Width="Auto"></ColumnDefinition> | |
| 102 | 新增: <ColumnDefinition Width="*"></ColumnDefinition> | |
| 103 | 新增: | |
| 104 | 新增: </Grid.ColumnDefinitions> | |
| 105 | 新增: | |
| 106 | 新增: <Grid Grid.Column="0" | |
| 107 | 新增: Panel.ZIndex="3"> | |
| 108 | 新增: <!--标题区域--> | |
| 109 | 新增: <StackPanel Orientation="Horizontal" Margin="15,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Center"> | |
| 110 | 新增: | |
| 111 | 新增: <button:IconButton Width="0" VerticalAlignment="Center" ToolTip="返回" FontSize="10" x:Name="BackBtn" Icon="Back" WindowChrome.IsHitTestVisibleInChrome="True" Command="{x:Static w:DefaultWindowCommands.BackCommand}"/> | |
| 112 | 新增: | |
| 113 | 新增: <Image Source="{TemplateBinding Icon}" VerticalAlignment="Center" Stretch="Uniform" Width="18"/> | |
| 114 | 新增: <TextBlock VerticalAlignment="Center" Text="{TemplateBinding Title}" IsEnabled="{TemplateBinding IsActive}" Foreground="#5c5c5c" Margin="15,0,0,0"/> | |
| 115 | 新增: </StackPanel> | |
| 116 | 新增: | |
| 117 | 新增: | |
| 118 | 新增: </Grid> | |
| 119 | 新增: <Grid Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top" | |
| 120 | 新增: WindowChrome.IsHitTestVisibleInChrome="True" | |
| 121 | 新增: Panel.ZIndex="3"> | |
| 122 | 新增: <!--系统按钮区域--> | |
| 123 | 新增: | |
| 124 | 新增: <StackPanel Orientation="Horizontal"> | |
| 125 | 新增: <!--最小化--> | |
| 126 | 新增: <Button | |
| 127 | 新增: ToolTip="最小化" | |
| 128 | 新增: Width="46" | |
| 129 | 新增: Height="32" | |
| 130 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 131 | 新增: Content="" | |
| 132 | 新增: Command="{x:Static w:DefaultWindowCommands.MinimizeWindowCommand}" | |
| 133 | 新增: Visibility="{TemplateBinding MinimizeVisibility}"/> | |
| 134 | 新增: | |
| 135 | 新增: <!--最大化--> | |
| 136 | 新增: <Button | |
| 137 | 新增: x:Name="MaximizeButton" | |
| 138 | 新增: ToolTip="最大化" | |
| 139 | 新增: Width="46" | |
| 140 | 新增: Height="32" | |
| 141 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 142 | 新增: Content="" | |
| 143 | 新增: Command="{x:Static w:DefaultWindowCommands.MaximizeWindowCommand}" | |
| 144 | 新增: Visibility="{TemplateBinding MaximizeVisibility}"/> | |
| 145 | 新增: <!--还原--> | |
| 146 | 新增: <Button | |
| 147 | 新增: x:Name="RestoreButton" | |
| 148 | 新增: ToolTip="向下还原" | |
| 149 | 新增: Width="46" | |
| 150 | 新增: Height="32" | |
| 151 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 152 | 新增: Content="" | |
| 153 | 新增: Command="{x:Static w:DefaultWindowCommands.RestoreWindowCommand}" | |
| 154 | 新增: Visibility="Collapsed"/> | |
| 155 | 新增: <!--关闭--> | |
| 156 | 新增: <Button | |
| 157 | 新增: ToolTip="关闭" | |
| 158 | 新增: Width="46" | |
| 159 | 新增: Height="32" | |
| 160 | 新增: Style="{StaticResource WindowSystemButton}" | |
| 161 | 新增: Content="" | |
| 162 | 新增: Command="{x:Static w:DefaultWindowCommands.CloseWindowCommand}" | |
| 163 | 新增: Visibility="{TemplateBinding CloseVisibility}"/> | |
| 164 | 新增: | |
| 165 | 新增: </StackPanel> | |
| 166 | 新增: | |
| 167 | 新增: | |
| 168 | 新增: </Grid> | |
| 169 | 新增: </Grid> | |
| 170 | 新增: | |
| 171 | 新增: | |
| 172 | 新增: | |
| 173 | 新增: <!--窗体内容--> | |
| 174 | 新增: <ContentPresenter Grid.Row="1"/> | |
| 175 | 新增: <!--提醒框--> | |
| 176 | 新增: <Grid Panel.ZIndex="999" x:Name="ToastGrid" Visibility="Collapsed"> | |
| 177 | 新增: <!--内容--> | |
| 178 | 新增: <Border | |
| 179 | 新增: Padding="15,15" | |
| 180 | 新增: CornerRadius="12" | |
| 181 | 新增: MaxWidth="320" | |
| 182 | 新增: x:Name="ToastBorder" Background="White" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1000"> | |
| 183 | 新增: <Border.RenderTransform> | |
| 184 | 新增: <TransformGroup> | |
| 185 | 新增: <TranslateTransform Y="-150"/> | |
| 186 | 新增: </TransformGroup> | |
| 187 | 新增: </Border.RenderTransform> | |
| 188 | 新增: <Border.Effect> | |
| 189 | 新增: <DropShadowEffect BlurRadius="10" Color="Black" Opacity=".1"/> | |
| 190 | 新增: </Border.Effect> | |
| 191 | 新增: <Grid > | |
| 192 | 新增: <Grid.ColumnDefinitions> | |
| 193 | 新增: <ColumnDefinition Width="30"/> | |
| 194 | 新增: <ColumnDefinition Width="*"/> | |
| 195 | 新增: | |
| 196 | 新增: </Grid.ColumnDefinitions> | |
| 197 | 新增: <base:Icon IconType="{TemplateBinding ToastIcon}" VerticalAlignment="Top" Margin="0,0,10,0" x:Name="ToastIcon"/> | |
| 198 | 新增: <TextBlock x:Name="ToastText" Grid.Column="1" Text="{TemplateBinding ToastContent}" VerticalAlignment="Top" TextWrapping="WrapWithOverflow"/> | |
| 199 | 新增: </Grid> | |
| 200 | 新增: </Border> | |
| 201 | 新增: <!--遮罩层--> | |
| 202 | 新增: <Border x:Name="Masklayer" Background="Black" Opacity="0"></Border> | |
| 203 | 新增: </Grid> | |
| 204 | 新增: </Grid> | |
| 205 | 新增: </AdornerDecorator> | |
| 206 | 新增: </Border> | |
| 207 | 新增: <VisualStateManager.VisualStateGroups> | |
| 208 | 新增: <VisualStateGroup x:Name="CommonStates"> | |
| 209 | 新增: <VisualStateGroup.Transitions> | |
| 210 | 新增: <VisualTransition GeneratedDuration="0:0:.15" /> | |
| 211 | 新增: <VisualTransition GeneratedDuration="0" | |
| 212 | 新增: To="Pressed" /> | |
| 213 | 新增: </VisualStateGroup.Transitions> | |
| 214 | 新增: <VisualState x:Name="Normal" /> | |
| 215 | 新增: <VisualState x:Name="CanBackState"> | |
| 216 | 新增: <Storyboard > | |
| 217 | 新增: <DoubleAnimation Storyboard.TargetProperty="(Button.Width)" | |
| 218 | 新增: Storyboard.TargetName="BackBtn" To="35" Duration="0:0:.1"> | |
| 219 | 新增: </DoubleAnimation> | |
| 220 | 新增: </Storyboard> | |
| 221 | 新增: </VisualState> | |
| 222 | 新增: | |
| 223 | 新增: </VisualStateGroup> | |
| 224 | 新增: </VisualStateManager.VisualStateGroups> | |
| 225 | 新增: </Border> | |
| 226 | 新增: <ControlTemplate.Triggers> | |
| 227 | 新增: <Trigger Property="ToastType" Value="Success"> | |
| 228 | 新增: <Setter TargetName="ToastBorder" Property="Background" Value="#24bf5f" /> | |
| 229 | 新增: <Setter TargetName="ToastIcon" Property="Foreground" Value="#fff" /> | |
| 230 | 新增: <Setter TargetName="ToastText" Property="Foreground" Value="#fff" /> | |
| 231 | 新增: </Trigger> | |
| 232 | 新增: <Trigger Property="ToastType" Value="Error"> | |
| 233 | 新增: <Setter TargetName="ToastBorder" Property="Background" Value="#f54f4e" /> | |
| 234 | 新增: <Setter TargetName="ToastIcon" Property="Foreground" Value="#fff" /> | |
| 235 | 新增: <Setter TargetName="ToastText" Property="Foreground" Value="#fff" /> | |
| 236 | 新增: </Trigger> | |
| 237 | 新增: <MultiTrigger> | |
| 238 | 新增: <MultiTrigger.Conditions> | |
| 239 | 新增: <Condition Property="WindowState" Value="Normal" /> | |
| 240 | 新增: <Condition Property="MaximizeVisibility" Value="Visible" /> | |
| 241 | 新增: </MultiTrigger.Conditions> | |
| 242 | 新增: <Setter TargetName="MaximizeButton" Property="Visibility" Value="Visible" /> | |
| 243 | 新增: <Setter TargetName="RestoreButton" Property="Visibility" Value="Collapsed" /> | |
| 244 | 新增: </MultiTrigger> | |
| 245 | 新增: <Trigger Property="WindowState" Value="Maximized"> | |
| 246 | 新增: <!--最大化时调整外边距,否则显示不完整--> | |
| 247 | 新增: <Setter TargetName="WindowContent" Property="Margin" Value="7"/> | |
| 248 | 新增: <Setter TargetName="MaximizeButton" Property="Visibility" Value="Collapsed" /> | |
| 249 | 新增: <Setter TargetName="RestoreButton" Property="Visibility" Value="Visible" /> | |
| 250 | 新增: </Trigger> | |
| 251 | 新增: <!--<Trigger Property="IsCanBack" Value="True"> | |
| 252 | 新增: <Setter TargetName="BackBtn" Property="Visibility" Value="Visible" /> | |
| 253 | 新增: </Trigger>--> | |
| 254 | 新增: <!--<Trigger Property="WindowState" Value="Normal"> | |
| 255 | 新增: <Setter TargetName="MaximizeButton" Property="Visibility" Value="Visible" /> | |
| 256 | 新增: <Setter TargetName="RestoreButton" Property="Visibility" Value="Collapsed" /> | |
| 257 | 新增: </Trigger>--> | |
| 258 | 新增: <!--<EventTrigger RoutedEvent="Window.Loaded"> | |
| 259 | 新增: --> | |
| 260 | 新增: <!--窗口载入动画--> | |
| 261 | 新增: <!-- | |
| 262 | 新增: <BeginStoryboard Storyboard="{StaticResource Storyboardload}"> | |
| 263 | 新增: </BeginStoryboard> | |
| 264 | 新增: | |
| 265 | 新增: </EventTrigger>--> | |
| 266 | 新增: <Trigger Property="WindowStyle" Value="None"> | |
| 267 | 新增: <Setter TargetName="WindowBorder" Property="Margin" Value="0"/> | |
| 268 | 新增: <Setter Property="BorderThickness" Value="0"/> | |
| 269 | 新增: <Setter TargetName="TitleBar" Property="Visibility" Value="Collapsed" /> | |
| 270 | 新增: <Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" /> | |
| 271 | 新增: <!--<Setter Property="BorderBrush" Value="Transparent" />--> | |
| 272 | 新增: </Trigger> | |
| 273 | 新增: </ControlTemplate.Triggers> | |
| 274 | 新增: </ControlTemplate> | |
| 275 | 新增: </Setter.Value> | |
| 276 | 新增: </Setter> | |
| 277 | 新增: | |
| 278 | 新增: </Style> | |
| 279 | 新增: | |
| 280 | 新增: | |
| 281 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,17 @@ | ||
| 1 | 新增:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| 2 | 新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| 3 | 新增: xmlns:w="clr-namespace:UI.Controls.Window"> | |
| 4 | 新增: <Style TargetType="{x:Type w:HideWindow}"> | |
| 5 | 新增: <!--<Setter Property="Background" Value="Transparent" />--> | |
| 6 | 新增: <Setter Property="ResizeMode" Value="NoResize" /> | |
| 7 | 新增: <Setter Property="Width" Value="0" /> | |
| 8 | 新增: <Setter Property="Height" Value="0" /> | |
| 9 | 新增: <Setter Property="Visibility" Value="Collapsed" /> | |
| 10 | 新增: <!--<Setter Property="Template"> | |
| 11 | 新增: <Setter.Value> | |
| 12 | 新增: <ControlTemplate TargetType="{x:Type w:HideWindow}"> | |
| 13 | 新增: </ControlTemplate> | |
| 14 | 新增: </Setter.Value> | |
| 15 | 新增: </Setter>--> | |
| 16 | 新增: </Style> | |
| 17 | 新增:</ResourceDictionary> | |
| 文件末尾没有换行 | ||
| @@ -0,0 +1,17 @@ | ||
| 1 | 新增:using System; | |
| 2 | 新增:using System.Collections.Generic; | |
| 3 | 新增:using System.Linq; | |
| 4 | 新增:using System.Text; | |
| 5 | 新增:using System.Threading.Tasks; | |
| 6 | 新增: | |
| 7 | 新增:namespace UI.Servicers | |
| 8 | 新增:{ | |
| 9 | 新增: public interface IThemeServicer | |
| 10 | 新增: { | |
| 11 | 新增: void Init(); | |
| 12 | 新增: void LoadTheme(string themeName); | |
| 13 | 新增: void SetMainWindow(MainWindow mainWindow); | |
| 14 | 新增: | |
| 15 | 新增: void UpdateWindowStyle(); | |
| 16 | 新增: } | |
| 17 | 新增:} | |
| @@ -0,0 +1,119 @@ | ||
| 1 | 新增:using Core.Librarys; | |
| 2 | 新增:using Core.Servicers.Interfaces; | |
| 3 | 新增:using System; | |
| 4 | 新增:using System.Collections.Generic; | |
| 5 | 新增:using System.Collections.ObjectModel; | |
| 6 | 新增:using System.Diagnostics; | |
| 7 | 新增:using System.Linq; | |
| 8 | 新增:using System.Text; | |
| 9 | 新增:using System.Threading.Tasks; | |
| 10 | 新增:using System.Windows; | |
| 11 | 新增:using UI.ViewModels; | |
| 12 | 新增: | |
| 13 | 新增:namespace UI.Servicers | |
| 14 | 新增:{ | |
| 15 | 新增: public class ThemeServicer : IThemeServicer | |
| 16 | 新增: { | |
| 17 | 新增: /// <summary> | |
| 18 | 新增: /// 当前主题名称 | |
| 19 | 新增: /// </summary> | |
| 20 | 新增: private string themeName; | |
| 21 | 新增: private MainWindow mainWindow; | |
| 22 | 新增: private Collection<ResourceDictionary> MergedDictionaries; | |
| 23 | 新增: private readonly string[] themeOptions = { "Light", "Dark" }; | |
| 24 | 新增: private readonly IAppConfig appConfig; | |
| 25 | 新增: public ThemeServicer(IAppConfig appConfig) | |
| 26 | 新增: { | |
| 27 | 新增: this.appConfig = appConfig; | |
| 28 | 新增: | |
| 29 | 新增: appConfig.ConfigChanged += AppConfig_ConfigChanged; | |
| 30 | 新增: | |
| 31 | 新增: MergedDictionaries = Application.Current.Resources.MergedDictionaries; | |
| 32 | 新增: } | |
| 33 | 新增: | |
| 34 | 新增: private void AppConfig_ConfigChanged(Core.Models.Config.ConfigModel oldConfig, Core.Models.Config.ConfigModel newConfig) | |
| 35 | 新增: { | |
| 36 | 新增: if (oldConfig.General.Theme != newConfig.General.Theme) | |
| 37 | 新增: { | |
| 38 | 新增: LoadTheme(themeOptions[newConfig.General.Theme]); | |
| 39 | 新增: } | |
| 40 | 新增: } | |
| 41 | 新增: public void Init() | |
| 42 | 新增: { | |
| 43 | 新增: LoadTheme(themeOptions[appConfig.GetConfig().General.Theme]); | |
| 44 | 新增: } | |
| 45 | 新增: public void LoadTheme(string themeName) | |
| 46 | 新增: { | |
| 47 | 新增: if (string.IsNullOrEmpty(themeName)) | |
| 48 | 新增: { | |
| 49 | 新增: // 设置默认主题 | |
| 50 | 新增: themeName = themeOptions[0]; | |
| 51 | 新增: } | |
| 52 | 新增: | |
| 53 | 新增: if (themeName == this.themeName) | |
| 54 | 新增: { | |
| 55 | 新增: return; | |
| 56 | 新增: } | |
| 57 | 新增: | |
| 58 | 新增: var configDict = GetResourceDictionary($"pack://application:,,,/Tai;component/Resources/Themes/{themeName}/Config.xaml"); | |
| 59 | 新增: var controlDict = GetResourceDictionary($"pack://application:,,,/Tai;component/Resources/Themes/{themeName}/Style.xaml"); | |
| 60 | 新增: | |
| 61 | 新增: | |
| 62 | 新增: //清除旧主题 | |
| 63 | 新增: var oldStyles = MergedDictionaries.Where(m => m.Source.OriginalString.Contains(themeName)).ToList(); | |
| 64 | 新增: if (oldStyles != null) | |
| 65 | 新增: { | |
| 66 | 新增: foreach (var oldStyle in oldStyles) | |
| 67 | 新增: { | |
| 68 | 新增: MergedDictionaries.Remove(oldStyle); | |
| 69 | 新增: } | |
| 70 | 新增: } | |
| 71 | 新增: if (configDict != null) | |
| 72 | 新增: { | |
| 73 | 新增: MergedDictionaries.Add(configDict); | |
| 74 | 新增: } | |
| 75 | 新增: if (controlDict != null) | |
| 76 | 新增: { | |
| 77 | 新增: MergedDictionaries.Add(controlDict); | |
| 78 | 新增: } | |
| 79 | 新增: | |
| 80 | 新增: UpdateWindowStyle(); | |
| 81 | 新增: | |
| 82 | 新增: this.themeName = themeName; | |
| 83 | 新增: | |
| 84 | 新增: Debug.WriteLine("已加载主题:" + themeName); | |
| 85 | 新增: } | |
| 86 | 新增: | |
| 87 | 新增: | |
| 88 | 新增: | |
| 89 | 新增: public void SetMainWindow(MainWindow mainWindow) | |
| 90 | 新增: { | |
| 91 | 新增: this.mainWindow = mainWindow; | |
| 92 | 新增: } | |
| 93 | 新增: | |
| 94 | 新增: public void UpdateWindowStyle() | |
| 95 | 新增: { | |
| 96 | 新增: if (mainWindow != null) | |
| 97 | 新增: { | |
| 98 | 新增: var themeStyle = Application.Current.Resources["WindowStyle"] as Style; | |
| 99 | 新增: if (themeStyle != null) | |
| 100 | 新增: { | |
| 101 | 新增: mainWindow.Style = themeStyle; | |
| 102 | 新增: } | |
| 103 | 新增: } | |
| 104 | 新增: } | |
| 105 | 新增: | |
| 106 | 新增: private ResourceDictionary GetResourceDictionary(string uri) | |
| 107 | 新增: { | |
| 108 | 新增: try | |
| 109 | 新增: { | |
| 110 | 新增: return new ResourceDictionary { Source = new Uri(uri, UriKind.RelativeOrAbsolute) }; | |
| 111 | 新增: } | |
| 112 | 新增: catch (Exception e) | |
| 113 | 新增: { | |
| 114 | 新增: Logger.Error(e.ToString()); | |
| 115 | 新增: return null; | |
| 116 | 新增: } | |
| 117 | 新增: } | |
| 118 | 新增: } | |
| 119 | 新增:} | |
| @@ -191,6 +191,8 @@ | ||
| 191 | 191 | <Compile Include="Models\UINotifyPropertyChanged.cs" /> |
| 192 | 192 | <Compile Include="Servicers\AppContextMenuServicer.cs" /> |
| 193 | 193 | <Compile Include="Servicers\IAppContextMenuServicer.cs" /> |
| 194 | 新增: <Compile Include="Servicers\IThemeServicer.cs" /> | |
| 195 | 新增: <Compile Include="Servicers\ThemeServicer.cs" /> | |
| 194 | 196 | <Compile Include="ViewModels\CategoryAppListPageVM.cs" /> |
| 195 | 197 | <Compile Include="ViewModels\CategoryPageVM.cs" /> |
| 196 | 198 | <Compile Include="ViewModels\ChartPageVM.cs" /> |
| @@ -237,6 +239,310 @@ | ||
| 237 | 239 | <DependentUpon>MainWindow.xaml</DependentUpon> |
| 238 | 240 | <SubType>Code</SubType> |
| 239 | 241 | </Compile> |
| 242 | 新增: <Page Include="Resources\Themes\Light\Base\CheckBox.xaml"> | |
| 243 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 244 | 新增: <SubType>Designer</SubType> | |
| 245 | 新增: </Page> | |
| 246 | 新增: <Page Include="Resources\Themes\Light\Base\ColorSelect.xaml"> | |
| 247 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 248 | 新增: <SubType>Designer</SubType> | |
| 249 | 新增: </Page> | |
| 250 | 新增: <Page Include="Resources\Themes\Light\Base\EmptyData.xaml"> | |
| 251 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 252 | 新增: <SubType>Designer</SubType> | |
| 253 | 新增: </Page> | |
| 254 | 新增: <Page Include="Resources\Themes\Light\Base\Icon.xaml"> | |
| 255 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 256 | 新增: <SubType>Designer</SubType> | |
| 257 | 新增: </Page> | |
| 258 | 新增: <Page Include="Resources\Themes\Light\Base\IconSelect.xaml"> | |
| 259 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 260 | 新增: <SubType>Designer</SubType> | |
| 261 | 新增: </Page> | |
| 262 | 新增: <Page Include="Resources\Themes\Light\Base\Img.xaml"> | |
| 263 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 264 | 新增: <SubType>Designer</SubType> | |
| 265 | 新增: </Page> | |
| 266 | 新增: <Page Include="Resources\Themes\Light\Base\Placeholder.xaml"> | |
| 267 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 268 | 新增: <SubType>Designer</SubType> | |
| 269 | 新增: </Page> | |
| 270 | 新增: <Page Include="Resources\Themes\Light\Base\Text.xaml"> | |
| 271 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 272 | 新增: <SubType>Designer</SubType> | |
| 273 | 新增: </Page> | |
| 274 | 新增: <Page Include="Resources\Themes\Light\Base\View.xaml"> | |
| 275 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 276 | 新增: <SubType>Designer</SubType> | |
| 277 | 新增: </Page> | |
| 278 | 新增: <Page Include="Resources\Themes\Light\Button\Button.xaml"> | |
| 279 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 280 | 新增: <SubType>Designer</SubType> | |
| 281 | 新增: </Page> | |
| 282 | 新增: <Page Include="Resources\Themes\Light\Button\IconButton.xaml"> | |
| 283 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 284 | 新增: <SubType>Designer</SubType> | |
| 285 | 新增: </Page> | |
| 286 | 新增: <Page Include="Resources\Themes\Light\Charts\Charts.xaml"> | |
| 287 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 288 | 新增: <SubType>Designer</SubType> | |
| 289 | 新增: </Page> | |
| 290 | 新增: <Page Include="Resources\Themes\Light\Charts\ChartsItemTypeA.xaml"> | |
| 291 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 292 | 新增: <SubType>Designer</SubType> | |
| 293 | 新增: </Page> | |
| 294 | 新增: <Page Include="Resources\Themes\Light\Charts\ChartsItemTypeCard.xaml"> | |
| 295 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 296 | 新增: <SubType>Designer</SubType> | |
| 297 | 新增: </Page> | |
| 298 | 新增: <Page Include="Resources\Themes\Light\Charts\ChartsItemTypeColumn.xaml"> | |
| 299 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 300 | 新增: <SubType>Designer</SubType> | |
| 301 | 新增: </Page> | |
| 302 | 新增: <Page Include="Resources\Themes\Light\Charts\ChartsItemTypeMonth.xaml"> | |
| 303 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 304 | 新增: <SubType>Designer</SubType> | |
| 305 | 新增: </Page> | |
| 306 | 新增: <Page Include="Resources\Themes\Light\Charts\ChartsItemTypeRadar.xaml"> | |
| 307 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 308 | 新增: <SubType>Designer</SubType> | |
| 309 | 新增: </Page> | |
| 310 | 新增: <Page Include="Resources\Themes\Light\Config.xaml"> | |
| 311 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 312 | 新增: <SubType>Designer</SubType> | |
| 313 | 新增: </Page> | |
| 314 | 新增: <Page Include="Resources\Themes\Light\DatePickerBar\DatePickerBar.xaml"> | |
| 315 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 316 | 新增: <SubType>Designer</SubType> | |
| 317 | 新增: </Page> | |
| 318 | 新增: <Page Include="Resources\Themes\Light\DatePickerBar\DatePickerBarItem.xaml"> | |
| 319 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 320 | 新增: <SubType>Designer</SubType> | |
| 321 | 新增: </Page> | |
| 322 | 新增: <Page Include="Resources\Themes\Light\Input\InputBox.xaml"> | |
| 323 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 324 | 新增: <SubType>Designer</SubType> | |
| 325 | 新增: </Page> | |
| 326 | 新增: <Page Include="Resources\Themes\Light\List\BaseList.xaml"> | |
| 327 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 328 | 新增: <SubType>Designer</SubType> | |
| 329 | 新增: </Page> | |
| 330 | 新增: <Page Include="Resources\Themes\Light\List\BaseListItem.xaml"> | |
| 331 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 332 | 新增: <SubType>Designer</SubType> | |
| 333 | 新增: </Page> | |
| 334 | 新增: <Page Include="Resources\Themes\Light\Navigation\Navigation.xaml"> | |
| 335 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 336 | 新增: <SubType>Designer</SubType> | |
| 337 | 新增: </Page> | |
| 338 | 新增: <Page Include="Resources\Themes\Light\Navigation\NavigationItem.xaml"> | |
| 339 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 340 | 新增: <SubType>Designer</SubType> | |
| 341 | 新增: </Page> | |
| 342 | 新增: <Page Include="Resources\Themes\Light\PageContainer.xaml"> | |
| 343 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 344 | 新增: <SubType>Designer</SubType> | |
| 345 | 新增: </Page> | |
| 346 | 新增: <Page Include="Resources\Themes\Light\Select\DateSelect.xaml"> | |
| 347 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 348 | 新增: <SubType>Designer</SubType> | |
| 349 | 新增: </Page> | |
| 350 | 新增: <Page Include="Resources\Themes\Light\Select\ImageSelect.xaml"> | |
| 351 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 352 | 新增: <SubType>Designer</SubType> | |
| 353 | 新增: </Page> | |
| 354 | 新增: <Page Include="Resources\Themes\Light\Select\Option.xaml"> | |
| 355 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 356 | 新增: <SubType>Designer</SubType> | |
| 357 | 新增: </Page> | |
| 358 | 新增: <Page Include="Resources\Themes\Light\Select\Select.xaml"> | |
| 359 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 360 | 新增: <SubType>Designer</SubType> | |
| 361 | 新增: </Page> | |
| 362 | 新增: <Page Include="Resources\Themes\Light\SettingPanel\SettingPanel.xaml"> | |
| 363 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 364 | 新增: <SubType>Designer</SubType> | |
| 365 | 新增: </Page> | |
| 366 | 新增: <Page Include="Resources\Themes\Light\SettingPanel\SettingPanelItem.xaml"> | |
| 367 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 368 | 新增: <SubType>Designer</SubType> | |
| 369 | 新增: </Page> | |
| 370 | 新增: <Page Include="Resources\Themes\Light\SettingPanel\SettingPanelMultiItem.xaml"> | |
| 371 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 372 | 新增: <SubType>Designer</SubType> | |
| 373 | 新增: </Page> | |
| 374 | 新增: <Page Include="Resources\Themes\Light\Style.xaml"> | |
| 375 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 376 | 新增: <SubType>Designer</SubType> | |
| 377 | 新增: </Page> | |
| 378 | 新增: <Page Include="Resources\Themes\Light\Tabbar\Tabbar.xaml"> | |
| 379 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 380 | 新增: <SubType>Designer</SubType> | |
| 381 | 新增: </Page> | |
| 382 | 新增: <Page Include="Resources\Themes\Light\Toggle\Toggle.xaml"> | |
| 383 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 384 | 新增: <SubType>Designer</SubType> | |
| 385 | 新增: </Page> | |
| 386 | 新增: <Page Include="Resources\Themes\Light\Window\DefaultWindow.xaml"> | |
| 387 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 388 | 新增: <SubType>Designer</SubType> | |
| 389 | 新增: </Page> | |
| 390 | 新增: <Page Include="Resources\Themes\Light\Window\HideWindow.xaml"> | |
| 391 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 392 | 新增: <SubType>Designer</SubType> | |
| 393 | 新增: </Page> | |
| 394 | 新增: <Page Include="Resources\Themes\Dark\Base\CheckBox.xaml"> | |
| 395 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 396 | 新增: <SubType>Designer</SubType> | |
| 397 | 新增: </Page> | |
| 398 | 新增: <Page Include="Resources\Themes\Dark\Base\ColorSelect.xaml"> | |
| 399 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 400 | 新增: <SubType>Designer</SubType> | |
| 401 | 新增: </Page> | |
| 402 | 新增: <Page Include="Resources\Themes\Dark\Base\EmptyData.xaml"> | |
| 403 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 404 | 新增: <SubType>Designer</SubType> | |
| 405 | 新增: </Page> | |
| 406 | 新增: <Page Include="Resources\Themes\Dark\Base\Icon.xaml"> | |
| 407 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 408 | 新增: <SubType>Designer</SubType> | |
| 409 | 新增: </Page> | |
| 410 | 新增: <Page Include="Resources\Themes\Dark\Base\IconSelect.xaml"> | |
| 411 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 412 | 新增: <SubType>Designer</SubType> | |
| 413 | 新增: </Page> | |
| 414 | 新增: <Page Include="Resources\Themes\Dark\Base\Img.xaml"> | |
| 415 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 416 | 新增: <SubType>Designer</SubType> | |
| 417 | 新增: </Page> | |
| 418 | 新增: <Page Include="Resources\Themes\Dark\Base\Placeholder.xaml"> | |
| 419 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 420 | 新增: <SubType>Designer</SubType> | |
| 421 | 新增: </Page> | |
| 422 | 新增: <Page Include="Resources\Themes\Dark\Base\Text.xaml"> | |
| 423 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 424 | 新增: <SubType>Designer</SubType> | |
| 425 | 新增: </Page> | |
| 426 | 新增: <Page Include="Resources\Themes\Dark\Base\View.xaml"> | |
| 427 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 428 | 新增: <SubType>Designer</SubType> | |
| 429 | 新增: </Page> | |
| 430 | 新增: <Page Include="Resources\Themes\Dark\Button\Button.xaml"> | |
| 431 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 432 | 新增: <SubType>Designer</SubType> | |
| 433 | 新增: </Page> | |
| 434 | 新增: <Page Include="Resources\Themes\Dark\Button\IconButton.xaml"> | |
| 435 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 436 | 新增: <SubType>Designer</SubType> | |
| 437 | 新增: </Page> | |
| 438 | 新增: <Page Include="Resources\Themes\Dark\Charts\Charts.xaml"> | |
| 439 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 440 | 新增: <SubType>Designer</SubType> | |
| 441 | 新增: </Page> | |
| 442 | 新增: <Page Include="Resources\Themes\Dark\Charts\ChartsItemTypeA.xaml"> | |
| 443 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 444 | 新增: <SubType>Designer</SubType> | |
| 445 | 新增: </Page> | |
| 446 | 新增: <Page Include="Resources\Themes\Dark\Charts\ChartsItemTypeCard.xaml"> | |
| 447 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 448 | 新增: <SubType>Designer</SubType> | |
| 449 | 新增: </Page> | |
| 450 | 新增: <Page Include="Resources\Themes\Dark\Charts\ChartsItemTypeColumn.xaml"> | |
| 451 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 452 | 新增: <SubType>Designer</SubType> | |
| 453 | 新增: </Page> | |
| 454 | 新增: <Page Include="Resources\Themes\Dark\Charts\ChartsItemTypeMonth.xaml"> | |
| 455 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 456 | 新增: <SubType>Designer</SubType> | |
| 457 | 新增: </Page> | |
| 458 | 新增: <Page Include="Resources\Themes\Dark\Charts\ChartsItemTypeRadar.xaml"> | |
| 459 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 460 | 新增: <SubType>Designer</SubType> | |
| 461 | 新增: </Page> | |
| 462 | 新增: <Page Include="Resources\Themes\Dark\Config.xaml"> | |
| 463 | 新增: <SubType>Designer</SubType> | |
| 464 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 465 | 新增: </Page> | |
| 466 | 新增: <Page Include="Resources\Themes\Dark\DatePickerBar\DatePickerBar.xaml"> | |
| 467 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 468 | 新增: <SubType>Designer</SubType> | |
| 469 | 新增: </Page> | |
| 470 | 新增: <Page Include="Resources\Themes\Dark\DatePickerBar\DatePickerBarItem.xaml"> | |
| 471 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 472 | 新增: <SubType>Designer</SubType> | |
| 473 | 新增: </Page> | |
| 474 | 新增: <Page Include="Resources\Themes\Dark\Style.xaml"> | |
| 475 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 476 | 新增: <SubType>Designer</SubType> | |
| 477 | 新增: </Page> | |
| 478 | 新增: <Page Include="Resources\Themes\Dark\Input\InputBox.xaml"> | |
| 479 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 480 | 新增: <SubType>Designer</SubType> | |
| 481 | 新增: </Page> | |
| 482 | 新增: <Page Include="Resources\Themes\Dark\List\BaseList.xaml"> | |
| 483 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 484 | 新增: <SubType>Designer</SubType> | |
| 485 | 新增: </Page> | |
| 486 | 新增: <Page Include="Resources\Themes\Dark\List\BaseListItem.xaml"> | |
| 487 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 488 | 新增: <SubType>Designer</SubType> | |
| 489 | 新增: </Page> | |
| 490 | 新增: <Page Include="Resources\Themes\Dark\Navigation\Navigation.xaml"> | |
| 491 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 492 | 新增: <SubType>Designer</SubType> | |
| 493 | 新增: </Page> | |
| 494 | 新增: <Page Include="Resources\Themes\Dark\Navigation\NavigationItem.xaml"> | |
| 495 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 496 | 新增: <SubType>Designer</SubType> | |
| 497 | 新增: </Page> | |
| 498 | 新增: <Page Include="Resources\Themes\Dark\PageContainer.xaml"> | |
| 499 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 500 | 新增: <SubType>Designer</SubType> | |
| 501 | 新增: </Page> | |
| 502 | 新增: <Page Include="Resources\Themes\Dark\Select\DateSelect.xaml"> | |
| 503 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 504 | 新增: <SubType>Designer</SubType> | |
| 505 | 新增: </Page> | |
| 506 | 新增: <Page Include="Resources\Themes\Dark\Select\ImageSelect.xaml"> | |
| 507 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 508 | 新增: <SubType>Designer</SubType> | |
| 509 | 新增: </Page> | |
| 510 | 新增: <Page Include="Resources\Themes\Dark\Select\Option.xaml"> | |
| 511 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 512 | 新增: <SubType>Designer</SubType> | |
| 513 | 新增: </Page> | |
| 514 | 新增: <Page Include="Resources\Themes\Dark\Select\Select.xaml"> | |
| 515 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 516 | 新增: <SubType>Designer</SubType> | |
| 517 | 新增: </Page> | |
| 518 | 新增: <Page Include="Resources\Themes\Dark\SettingPanel\SettingPanel.xaml"> | |
| 519 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 520 | 新增: <SubType>Designer</SubType> | |
| 521 | 新增: </Page> | |
| 522 | 新增: <Page Include="Resources\Themes\Dark\SettingPanel\SettingPanelItem.xaml"> | |
| 523 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 524 | 新增: <SubType>Designer</SubType> | |
| 525 | 新增: </Page> | |
| 526 | 新增: <Page Include="Resources\Themes\Dark\SettingPanel\SettingPanelMultiItem.xaml"> | |
| 527 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 528 | 新增: <SubType>Designer</SubType> | |
| 529 | 新增: </Page> | |
| 530 | 新增: <Page Include="Resources\Themes\Dark\Tabbar\Tabbar.xaml"> | |
| 531 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 532 | 新增: <SubType>Designer</SubType> | |
| 533 | 新增: </Page> | |
| 534 | 新增: <Page Include="Resources\Themes\Dark\Toggle\Toggle.xaml"> | |
| 535 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 536 | 新增: <SubType>Designer</SubType> | |
| 537 | 新增: </Page> | |
| 538 | 新增: <Page Include="Resources\Themes\Dark\Window\DefaultWindow.xaml"> | |
| 539 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 540 | 新增: <SubType>Designer</SubType> | |
| 541 | 新增: </Page> | |
| 542 | 新增: <Page Include="Resources\Themes\Dark\Window\HideWindow.xaml"> | |
| 543 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 544 | 新增: <SubType>Designer</SubType> | |
| 545 | 新增: </Page> | |
| 240 | 546 | <Page Include="Themes\Base\EmptyData.xaml"> |
| 241 | 547 | <Generator>MSBuild:Compile</Generator> |
| 242 | 548 | <SubType>Designer</SubType> |
| @@ -521,6 +827,7 @@ | ||
| 521 | 827 | <Resource Include="Resources\Emoji\%288%29.png" /> |
| 522 | 828 | <Resource Include="Resources\Emoji\%289%29.png" /> |
| 523 | 829 | </ItemGroup> |
| 830 | 新增: <ItemGroup /> | |
| 524 | 831 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| 525 | 832 | <PropertyGroup> |
| 526 | 833 | <PathMap>$(MSBuildProjectDirectory)=Tai</PathMap> |
| @@ -6,13 +6,13 @@ | ||
| 6 | 6 | xmlns:local="clr-namespace:UI.Views" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:select="clr-namespace:UI.Controls.Select" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:input="clr-namespace:UI.Controls.Input" |
| 7 | 7 | mc:Ignorable="d" |
| 8 | 8 | d:DesignHeight="450" d:DesignWidth="800" |
| 9 | 删除: Title="CategoryAppListPage"> | |
| 9 | 新增: Title="CategoryAppListPage" Foreground="{DynamicResource StandardTextBrush}"> | |
| 10 | 10 | |
| 11 | 11 | <Grid> |
| 12 | 12 | <!--选择应用--> |
| 13 | 13 | <Grid Visibility="{Binding ChooseVisibility}" Panel.ZIndex="2" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| 14 | 14 | <Border Background="Black" Opacity=".7"/> |
| 15 | 删除: <Border Height="460" Background="White" CornerRadius="10" BorderBrush="#ccc" BorderThickness="1" Margin="50" VerticalAlignment="Top"> | |
| 15 | 新增: <Border Height="460" Background="{DynamicResource StandardBackgroundBrush2}" CornerRadius="10" BorderBrush="{DynamicResource WindowContentBorder}" BorderThickness="1" Margin="50" VerticalAlignment="Top"> | |
| 16 | 16 | <Grid> |
| 17 | 17 | <Grid.RowDefinitions> |
| 18 | 18 | <RowDefinition Height="40"/> |
| @@ -141,7 +141,7 @@ | ||
| 141 | 141 | <ContentPresenter/> |
| 142 | 142 | </Border> |
| 143 | 143 | |
| 144 | 删除: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="0,0,0,10" Padding="15" CornerRadius="10"> | |
| 144 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="{DynamicResource StandardBackgroundBrush2}" Margin="0,0,0,10" Padding="15" CornerRadius="10"> | |
| 145 | 145 | |
| 146 | 146 | <ContentPresenter/> |
| 147 | 147 | </Border> |
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | mc:Ignorable="d" |
| 8 | 8 | xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:converter="clr-namespace:UI.Controls.Converters" |
| 9 | 9 | d:DesignHeight="450" d:DesignWidth="800" |
| 10 | 删除: Title="CategoryPage"> | |
| 10 | 新增: Title="CategoryPage" Foreground="{DynamicResource StandardTextBrush}"> | |
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | <Grid> |
| @@ -15,7 +15,7 @@ | ||
| 15 | 15 | <!--编辑--> |
| 16 | 16 | <Grid Visibility="{Binding EditVisibility}" Panel.ZIndex="2" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| 17 | 17 | <Border Background="Black" Opacity=".7"/> |
| 18 | 删除: <Border Height="460" Background="White" CornerRadius="10" BorderBrush="#ccc" BorderThickness="1" Margin="50" VerticalAlignment="Top"> | |
| 18 | 新增: <Border Height="460" Background="{DynamicResource StandardBackgroundBrush2}" CornerRadius="10" BorderBrush="{DynamicResource WindowContentBorder}" BorderThickness="1" Margin="50" VerticalAlignment="Top"> | |
| 19 | 19 | <Grid> |
| 20 | 20 | <Grid.RowDefinitions> |
| 21 | 21 | <RowDefinition Height="40"/> |
| @@ -65,9 +65,9 @@ | ||
| 65 | 65 | <MenuItem Header="新建分类" Command="{Binding EditCommand}" /> |
| 66 | 66 | </ContextMenu> |
| 67 | 67 | </StackPanel.ContextMenu> |
| 68 | 删除: <TextBlock Text="分类" FontSize="18" Margin="0,0,0,20"/> | |
| 68 | 新增: <TextBlock Text="分类" FontSize="18" Margin="0,5,0,20"/> | |
| 69 | 69 | <!--<TextBlock Text="管理所有应用分类"/>--> |
| 70 | 删除: <Button:Button Content="新建分类" HorizontalAlignment="Right" Margin="0,0,20,0" Width="150" Command="{Binding EditCommand}"/> | |
| 70 | 新增: <Button:Button Icon="CalculatorAddition" Content="新建分类" HorizontalAlignment="Right" Margin="0,0,20,0" Width="150" Command="{Binding EditCommand}"/> | |
| 71 | 71 | |
| 72 | 72 | <base:View Condition="empty" Value="{Binding Data}"> |
| 73 | 73 | <base:EmptyData/> |
| @@ -114,12 +114,12 @@ | ||
| 114 | 114 | <Setter.Value> |
| 115 | 115 | <ControlTemplate TargetType="{x:Type ListViewItem}"> |
| 116 | 116 | <Grid> |
| 117 | 删除: <Border BorderBrush="{Binding ElementName=Border,Path=BorderBrush}" BorderThickness="{Binding ElementName=Border,Path=BorderThickness}" Background="{Binding ElementName=Border,Path=Background}" Margin="{Binding ElementName=Border,Path=Margin}" CornerRadius="{Binding ElementName=Border,Path=CornerRadius}"> | |
| 117 | 新增: <Border BorderBrush="{Binding ElementName=Border,Path=BorderBrush}" BorderThickness="{Binding ElementName=Border,Path=BorderThickness}" Margin="{Binding ElementName=Border,Path=Margin}" CornerRadius="{Binding ElementName=Border,Path=CornerRadius}"> | |
| 118 | 118 | <Border.Effect> |
| 119 | 119 | <DropShadowEffect Color="#d8d2d2" BlurRadius="10" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> |
| 120 | 120 | </Border.Effect> |
| 121 | 121 | </Border> |
| 122 | 删除: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="White" Margin="5" CornerRadius="20"> | |
| 122 | 新增: <Border BorderBrush="Transparent" BorderThickness="2" x:Name="Border" Background="{DynamicResource StandardBackgroundBrush}" Margin="5" CornerRadius="20"> | |
| 123 | 123 | <ContentPresenter/> |
| 124 | 124 | </Border> |
| 125 | 125 | </Grid> |
| @@ -127,7 +127,7 @@ | ||
| 127 | 127 | <ControlTemplate.Triggers> |
| 128 | 128 | <Trigger Property="IsMouseOver" Value="True"> |
| 129 | 129 | <!--<Setter TargetName="Border" Property="Background" Value="#FFE8E6FF"/>--> |
| 130 | 删除: <Setter TargetName="Border" Property="BorderBrush" Value="#2b20d9"/> | |
| 130 | 新增: <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ThemeBrush}"/> | |
| 131 | 131 | |
| 132 | 132 | </Trigger> |
| 133 | 133 | </ControlTemplate.Triggers> |
| @@ -163,7 +163,7 @@ | ||
| 163 | 163 | |
| 164 | 164 | <base:Img Radius="8" Width="40" Height="40" URL="{Binding Data.IconFile}"/> |
| 165 | 165 | </Grid> |
| 166 | 删除: <TextBlock Foreground="#202020" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="2" Text="{Binding Data.Name}" FontSize="14"/> | |
| 166 | 新增: <TextBlock Foreground="{DynamicResource StandardTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="2" Text="{Binding Data.Name}" FontSize="14"/> | |
| 167 | 167 | |
| 168 | 168 | <Border Grid.Row="3" > |
| 169 | 169 | <Border Margin="10,0,10,0" CornerRadius="10" Background="#f9f9f9" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="10,5"> |
| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | xmlns:local="clr-namespace:UI.Views" xmlns:charts="clr-namespace:UI.Controls.Charts" xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar" xmlns:select="clr-namespace:UI.Controls.Select" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:DatePickerBar="clr-namespace:UI.Controls.DatePickerBar" |
| 7 | 7 | mc:Ignorable="d" |
| 8 | 8 | d:DesignHeight="450" d:DesignWidth="800" |
| 9 | 删除: Title="ChartPage"> | |
| 9 | 新增: Title="ChartPage" Foreground="{DynamicResource StandardTextBrush}"> | |
| 10 | 10 | |
| 11 | 11 | <StackPanel Margin="20"> |
| 12 | 12 | <TextBlock Text="统计" FontSize="18" Margin="0,5,0,20"/> |
| @@ -43,14 +43,19 @@ | ||
| 43 | 43 | <ColumnDefinition Width="*"/> |
| 44 | 44 | <ColumnDefinition Width="*"/> |
| 45 | 45 | </Grid.ColumnDefinitions> |
| 46 | 删除: <Border Margin="0,5,0,0" Background="White" Padding="10" CornerRadius="10"> | |
| 46 | 新增: <Border Margin="0,5,0,0" Background="{DynamicResource StandardBackgroundBrush}" Padding="10" CornerRadius="10"> | |
| 47 | 47 | <Grid> |
| 48 | 48 | <Grid.ColumnDefinitions> |
| 49 | 49 | <ColumnDefinition Width="auto"/> |
| 50 | 50 | <ColumnDefinition Width="*"/> |
| 51 | 51 | </Grid.ColumnDefinitions> |
| 52 | 删除: <Border Background="#6c47ff" Width="40" Height="40" CornerRadius="6"> | |
| 53 | 删除: | |
| 52 | 新增: <Border Width="40" Height="40" CornerRadius="6"> | |
| 53 | 新增: <Border.Background> | |
| 54 | 新增: <LinearGradientBrush> | |
| 55 | 新增: <GradientStop Offset="0" Color="#6c47ff"/> | |
| 56 | 新增: <GradientStop Color="#F4A7B9" Offset="1"/> | |
| 57 | 新增: </LinearGradientBrush> | |
| 58 | 新增: </Border.Background> | |
| 54 | 59 | <base:Icon IconType="SkypeCircleClock" Foreground="White"/> |
| 55 | 60 | </Border> |
| 56 | 61 | <Grid Grid.Column="1" Margin="10,0,0,0" VerticalAlignment="Center"> |
| @@ -60,21 +65,26 @@ | ||
| 60 | 65 | </Grid.RowDefinitions> |
| 61 | 66 | <TextBlock > |
| 62 | 67 | <Run Text="{Binding TotalHours}" FontSize="20"/> |
| 63 | 删除: <Run Text="小时" FontSize="12" Foreground="#5c5c5c"/> | |
| 68 | 新增: <Run Text="小时" FontSize="12" Foreground="{DynamicResource SubTextBrush}"/> | |
| 64 | 69 | </TextBlock> |
| 65 | 删除: <TextBlock Grid.Row="1" Margin="0,3,0,0" Text="总计" Foreground="#5c5c5c"/> | |
| 70 | 新增: <TextBlock Grid.Row="1" Margin="0,3,0,0" Text="总计" Foreground="{DynamicResource SubTextBrush}"/> | |
| 66 | 71 | |
| 67 | 72 | </Grid> |
| 68 | 73 | </Grid> |
| 69 | 74 | </Border> |
| 70 | 删除: <Border Grid.Column="1" Margin="20,5,0,0" Background="White" Padding="10" CornerRadius="10"> | |
| 75 | 新增: <Border Grid.Column="1" Margin="20,5,0,0" Background="{DynamicResource StandardBackgroundBrush}" Padding="10" CornerRadius="10"> | |
| 71 | 76 | <Grid> |
| 72 | 77 | <Grid.ColumnDefinitions> |
| 73 | 78 | <ColumnDefinition Width="auto"/> |
| 74 | 79 | <ColumnDefinition Width="*"/> |
| 75 | 80 | </Grid.ColumnDefinitions> |
| 76 | 删除: <Border Background="#00ffab" Width="40" Height="40" CornerRadius="6"> | |
| 77 | 删除: | |
| 81 | 新增: <Border Width="40" Height="40" CornerRadius="6"> | |
| 82 | 新增: <Border.Background> | |
| 83 | 新增: <LinearGradientBrush> | |
| 84 | 新增: <GradientStop Offset="0" Color="#00ffab"/> | |
| 85 | 新增: <GradientStop Color="#2b20d9" Offset="1"/> | |
| 86 | 新增: </LinearGradientBrush> | |
| 87 | 新增: </Border.Background> | |
| 78 | 88 | <base:Icon IconType="MSNVideosSolid" Foreground="White"/> |
| 79 | 89 | </Border> |
| 80 | 90 | <Grid Grid.Column="1" Margin="10,0,0,0" VerticalAlignment="Center"> |
| @@ -84,22 +94,27 @@ | ||
| 84 | 94 | </Grid.RowDefinitions> |
| 85 | 95 | <TextBlock > |
| 86 | 96 | <Run Text="{Binding AppCount}" FontSize="20"/> |
| 87 | 删除: <Run Text="个" FontSize="12" Foreground="#5c5c5c"/> | |
| 97 | 新增: <Run Text="个" FontSize="12" Foreground="{DynamicResource SubTextBrush}"/> | |
| 88 | 98 | </TextBlock> |
| 89 | 删除: <TextBlock Grid.Row="1" Margin="0,3,0,0" Text="应用量" Foreground="#5c5c5c"/> | |
| 99 | 新增: <TextBlock Grid.Row="1" Margin="0,3,0,0" Text="应用量" Foreground="{DynamicResource SubTextBrush}"/> | |
| 90 | 100 | |
| 91 | 101 | |
| 92 | 102 | </Grid> |
| 93 | 103 | </Grid> |
| 94 | 104 | </Border> |
| 95 | 删除: <Border Grid.Column="2" Margin="20,5,0,0" Background="White" Padding="10" CornerRadius="10"> | |
| 105 | 新增: <Border Grid.Column="2" Margin="20,5,0,0" Background="{DynamicResource StandardBackgroundBrush}" Padding="10" CornerRadius="10"> | |
| 96 | 106 | <Grid> |
| 97 | 107 | <Grid.ColumnDefinitions> |
| 98 | 108 | <ColumnDefinition Width="auto"/> |
| 99 | 109 | <ColumnDefinition Width="*"/> |
| 100 | 110 | </Grid.ColumnDefinitions> |
| 101 | 删除: <Border Background="#ff305b" Width="40" Height="40" CornerRadius="6"> | |
| 102 | 删除: | |
| 111 | 新增: <Border Width="40" Height="40" CornerRadius="6"> | |
| 112 | 新增: <Border.Background> | |
| 113 | 新增: <LinearGradientBrush> | |
| 114 | 新增: <GradientStop Offset="0" Color="red"/> | |
| 115 | 新增: <GradientStop Color="#E03C8A" Offset="1"/> | |
| 116 | 新增: </LinearGradientBrush> | |
| 117 | 新增: </Border.Background> | |
| 103 | 118 | <base:Icon IconType="FlameSolid" Foreground="White"/> |
| 104 | 119 | </Border> |
| 105 | 120 | <Grid Grid.Column="1" Margin="10,0,0,0" VerticalAlignment="Center"> |
| @@ -110,9 +125,9 @@ | ||
| 110 | 125 | |
| 111 | 126 | <TextBlock > |
| 112 | 127 | <Run Text="{Binding TopHours}" FontSize="20"/> |
| 113 | 删除: <Run Text="小时" FontSize="12" Foreground="#5c5c5c"/> | |
| 128 | 新增: <Run Text="小时" FontSize="12" Foreground="{DynamicResource SubTextBrush}"/> | |
| 114 | 129 | </TextBlock> |
| 115 | 删除: <TextBlock Grid.Row="1" Margin="0,3,0,0" Text="最长使用" Foreground="#5c5c5c"/> | |
| 130 | 新增: <TextBlock Grid.Row="1" Margin="0,3,0,0" Text="最长使用" Foreground="{DynamicResource SubTextBrush}"/> | |
| 116 | 131 | </Grid> |
| 117 | 132 | </Grid> |
| 118 | 133 | </Border> |
| @@ -120,7 +135,7 @@ | ||
| 120 | 135 | |
| 121 | 136 | <TextBlock Text="时段" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> |
| 122 | 137 | |
| 123 | 删除: <Border Margin="0,5,0,0" Height="360" Width="680" HorizontalAlignment="Left" Background="White" Padding="20" CornerRadius="10"> | |
| 138 | 新增: <Border Margin="0,5,0,0" Height="360" Width="680" HorizontalAlignment="Left" Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="10"> | |
| 124 | 139 | <charts:Charts IsShowTotal="False" DataMaximum="{Binding DataMaximum}" NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding Data}"/> |
| 125 | 140 | |
| 126 | 141 | </Border> |
| @@ -136,7 +151,7 @@ | ||
| 136 | 151 | <RowDefinition Height="*"/> |
| 137 | 152 | </Grid.RowDefinitions> |
| 138 | 153 | <TextBlock Text="分类" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> |
| 139 | 删除: <Border Margin="0,5,0,0" Grid.Row="1" Background="White" Padding="20" CornerRadius="10"> | |
| 154 | 新增: <Border Margin="0,5,0,0" Grid.Row="1" Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="10"> | |
| 140 | 155 | <charts:Charts Margin="10,20,10,10" Height="230" Width="230" ChartsType="Radar" Data="{Binding Data}"/> |
| 141 | 156 | |
| 142 | 157 | </Border> |
| @@ -147,7 +162,7 @@ | ||
| 147 | 162 | <RowDefinition Height="auto"/> |
| 148 | 163 | </Grid.RowDefinitions> |
| 149 | 164 | <TextBlock Text="最为频繁" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> |
| 150 | 删除: <Border Grid.Row="1" Margin="0,5,0,0" Background="White" Padding="20" CornerRadius="10"> | |
| 165 | 新增: <Border Grid.Row="1" Margin="0,5,0,0" Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="10"> | |
| 151 | 166 | <charts:Charts ItemMenu="{Binding AppContextMenu}" Data="{Binding TopData}" ChartsType="HorizontalA" ClickCommand="{Binding ToDetailCommand}" IsCanScroll="False"/> |
| 152 | 167 | </Border> |
| 153 | 168 | </Grid> |
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | xmlns:Charts="clr-namespace:UI.Controls.Charts" xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar" xmlns:DatePickerBar="clr-namespace:UI.Controls.DatePickerBar" xmlns:select="clr-namespace:UI.Controls.Select" x:Class="UI.Views.DataPage" |
| 8 | 8 | mc:Ignorable="d" |
| 9 | 9 | d:DesignHeight="450" d:DesignWidth="800" |
| 10 | 删除: Title="IndexPage"> | |
| 10 | 新增: Title="IndexPage" Foreground="{DynamicResource StandardTextBrush}"> | |
| 11 | 11 | <Grid Margin="20"> |
| 12 | 12 | <Grid.RowDefinitions> |
| 13 | 13 | <RowDefinition Height="auto"/> |
| @@ -24,7 +24,7 @@ | ||
| 24 | 24 | Grid.Row="2" |
| 25 | 25 | SelectedIndex="{Binding TabbarSelectedIndex}" |
| 26 | 26 | BorderThickness="0" |
| 27 | 删除: Margin="0,15,0,0" | |
| 27 | 新增: Margin="0,13,0,0" | |
| 28 | 28 | Padding="0" |
| 29 | 29 | Background="Transparent" |
| 30 | 30 | > |
| @@ -9,13 +9,13 @@ | ||
| 9 | 9 | d:DesignHeight="450" d:DesignWidth="800" |
| 10 | 10 | Title="DetailPage" |
| 11 | 11 | xmlns:btn="clr-namespace:UI.Controls.Button" |
| 12 | 删除: xmlns:base="clr-namespace:UI.Controls.Base" xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar"> | |
| 12 | 新增: xmlns:base="clr-namespace:UI.Controls.Base" xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar" Foreground="{DynamicResource StandardTextBrush}"> | |
| 13 | 13 | |
| 14 | 14 | <StackPanel Margin="20"> |
| 15 | 15 | <TextBlock Text="查看" FontSize="18" Margin="0,0,0,20"/> |
| 16 | 16 | |
| 17 | 17 | <Border |
| 18 | 删除: Background="White" | |
| 18 | 新增: Background="{DynamicResource StandardBackgroundBrush}" | |
| 19 | 19 | CornerRadius="12" |
| 20 | 20 | Padding="0,20"> |
| 21 | 21 | <Border.ContextMenu> |
| @@ -125,7 +125,7 @@ | ||
| 125 | 125 | </Border>--> |
| 126 | 126 | <TextBlock Text="时段" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> |
| 127 | 127 | <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/> |
| 128 | 删除: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="White" Padding="20,10" CornerRadius="10"> | |
| 128 | 新增: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="{DynamicResource StandardBackgroundBrush}" Padding="20,10" CornerRadius="10"> | |
| 129 | 129 | <StackPanel> |
| 130 | 130 | |
| 131 | 131 | |
| @@ -161,7 +161,7 @@ | ||
| 161 | 161 | <TextBlock Text="每月" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/> |
| 162 | 162 | |
| 163 | 163 | <Border |
| 164 | 删除: Background="White" | |
| 164 | 新增: Background="{DynamicResource StandardBackgroundBrush}" | |
| 165 | 165 | CornerRadius="12" |
| 166 | 166 | Padding="20,20" |
| 167 | 167 | Margin="0,10,0,0"> |
| @@ -7,7 +7,8 @@ | ||
| 7 | 7 | xmlns:Charts="clr-namespace:UI.Controls.Charts" xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar" x:Class="UI.Views.IndexPage" |
| 8 | 8 | mc:Ignorable="d" |
| 9 | 9 | d:DesignHeight="450" d:DesignWidth="800" |
| 10 | 删除: Title="IndexPage"> | |
| 10 | 新增: Title="IndexPage" | |
| 11 | 新增: Foreground="{DynamicResource StandardTextBrush}"> | |
| 11 | 12 | |
| 12 | 13 | <StackPanel Margin="20"> |
| 13 | 14 | <!--<Border Width="60" Height="60" HorizontalAlignment="Left" RenderTransformOrigin="1,0.5"> |
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | d:DesignHeight="450" d:DesignWidth="800" |
| 10 | 10 | Title="SettingPage" |
| 11 | 11 | xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar" |
| 12 | 删除: xmlns:Btn="clr-namespace:UI.Controls.Button" xmlns:select="clr-namespace:UI.Controls.Select"> | |
| 12 | 新增: xmlns:Btn="clr-namespace:UI.Controls.Button" xmlns:select="clr-namespace:UI.Controls.Select" Foreground="{DynamicResource StandardTextBrush}"> | |
| 13 | 13 | <StackPanel Margin="20"> |
| 14 | 14 | |
| 15 | 15 | <TextBlock Text="设置" FontSize="18" Margin="0,5,0,20"/> |
| @@ -21,6 +21,7 @@ | ||
| 21 | 21 | Margin="0,15,0,0" |
| 22 | 22 | Padding="0" |
| 23 | 23 | Background="Transparent" |
| 24 | 新增: | |
| 24 | 25 | > |
| 25 | 26 | <TabControl.Resources> |
| 26 | 27 | <Style TargetType="TabItem"> |
| @@ -33,21 +34,21 @@ | ||
| 33 | 34 | </Style> |
| 34 | 35 | |
| 35 | 36 | </TabControl.Resources> |
| 36 | 删除: <TabItem> | |
| 37 | 新增: <TabItem Foreground="{DynamicResource StandardTextBrush}"> | |
| 37 | 38 | <SettingPanel:SettingPanel Data="{Binding Data,Mode=TwoWay}" /> |
| 38 | 39 | </TabItem> |
| 39 | 删除: <TabItem> | |
| 40 | 新增: <TabItem Foreground="{DynamicResource StandardTextBrush}"> | |
| 40 | 41 | <SettingPanel:SettingPanel Data="{Binding Data,Mode=TwoWay}" Margin="0,0,0,10"/> |
| 41 | 42 | </TabItem> |
| 42 | 删除: <TabItem> | |
| 43 | 新增: <TabItem Foreground="{DynamicResource StandardTextBrush}"> | |
| 43 | 44 | <SettingPanel:SettingPanel Data="{Binding Data,Mode=TwoWay}" Margin="0,0,0,0"/> |
| 44 | 45 | </TabItem> |
| 45 | 删除: <TabItem> | |
| 46 | 新增: <TabItem Foreground="{DynamicResource StandardTextBrush}"> | |
| 46 | 47 | <!--数据--> |
| 47 | 48 | |
| 48 | 49 | <StackPanel Margin="0,10,0,0"> |
| 49 | 50 | <TextBlock Text="删除数据" Foreground="#f54f4e" FontSize="14"/> |
| 50 | 删除: <Border Background="White" Padding="20" CornerRadius="6" Margin="0,10,0,0" BorderBrush="#ededed" BorderThickness="1"> | |
| 51 | 新增: <Border Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="6" Margin="0,10,0,0" BorderBrush="{DynamicResource CardBorder}" BorderThickness="1"> | |
| 51 | 52 | <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> |
| 52 | 53 | <TextBlock Text="从" VerticalAlignment="Center"/> |
| 53 | 54 | <select:DateSelect Date="{Binding DelDataStartMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/> |
| @@ -57,7 +58,7 @@ | ||
| 57 | 58 | </StackPanel> |
| 58 | 59 | </Border> |
| 59 | 60 | <TextBlock Text="导出数据" FontSize="14" Margin="0,15,0,0"/> |
| 60 | 删除: <Border Background="White" Padding="20" CornerRadius="6" Margin="0,10,0,0" BorderBrush="#ededed" BorderThickness="1"> | |
| 61 | 新增: <Border Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="6" Margin="0,10,0,0" BorderBrush="{DynamicResource CardBorder}" BorderThickness="1"> | |
| 61 | 62 | <StackPanel> |
| 62 | 63 | <TextBlock Text="导出为xlsx和csv格式,需要注意:没有设置分类的应用数据不会导出。" Foreground="#989CA1" FontSize="12"/> |
| 63 | 64 | <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> |
| @@ -71,9 +72,9 @@ | ||
| 71 | 72 | </Border> |
| 72 | 73 | </StackPanel> |
| 73 | 74 | </TabItem> |
| 74 | 删除: <TabItem> | |
| 75 | 新增: <TabItem Foreground="{DynamicResource StandardTextBrush}"> | |
| 75 | 76 | <!--关于--> |
| 76 | 删除: <Border Background="White" Padding="20" CornerRadius="6"> | |
| 77 | 新增: <Border Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="6"> | |
| 77 | 78 | <StackPanel HorizontalAlignment="Left"> |
| 78 | 79 | <Image Width="25" Source="/Resources/Icons/tai.ico" HorizontalAlignment="Left"/> |
| 79 | 80 | <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> |

