提交记录修改UI/Controls/Charts/Charts.cs+14 −17看文件
修改UI/Resources/Themes/Dark.xaml+7 −0看文件
修改UI/Resources/Themes/Light.xaml+5 −0看文件
修改UI/Themes/Base/Placeholder.xaml+2 −2看文件
修改UI/Themes/Charts/ChartsItemTypeA.xaml+1 −1看文件
| @@ -465,14 +465,7 @@ namespace UI.Controls.Charts | ||
| 465 | 465 | } |
| 466 | 466 | if (e.Property == IsLoadingProperty) |
| 467 | 467 | { |
| 468 | 删除: if (!charts.IsLoading || e.Property == IsCanScrollProperty) | |
| 469 | 删除: { | |
| 470 | 删除: charts.Render(); | |
| 471 | 删除: } | |
| 472 | 删除: else | |
| 473 | 删除: { | |
| 474 | 删除: charts.RenderLoadingPlaceholder(); | |
| 475 | 删除: } | |
| 468 | 新增: charts.Render(); | |
| 476 | 469 | } |
| 477 | 470 | if (e.Property == ColumnSelectedIndexProperty && e.OldValue != e.NewValue) |
| 478 | 471 | { |
| @@ -562,14 +555,7 @@ namespace UI.Controls.Charts | ||
| 562 | 555 | |
| 563 | 556 | UpdateListViewHeight(); |
| 564 | 557 | |
| 565 | 删除: if (IsLoading) | |
| 566 | 删除: { | |
| 567 | 删除: RenderLoadingPlaceholder(); | |
| 568 | 删除: } | |
| 569 | 删除: else | |
| 570 | 删除: { | |
| 571 | 删除: Render(); | |
| 572 | 删除: } | |
| 558 | 新增: Render(); | |
| 573 | 559 | |
| 574 | 560 | if (ChartsType == ChartsType.HorizontalA && IsSearch) |
| 575 | 561 | { |
| @@ -596,6 +582,17 @@ namespace UI.Controls.Charts | ||
| 596 | 582 | } |
| 597 | 583 | } |
| 598 | 584 | |
| 585 | 新增: private void Render() | |
| 586 | 新增: { | |
| 587 | 新增: if (IsLoading) | |
| 588 | 新增: { | |
| 589 | 新增: RenderLoadingPlaceholder(); | |
| 590 | 新增: } | |
| 591 | 新增: else | |
| 592 | 新增: { | |
| 593 | 新增: RenderData(); | |
| 594 | 新增: } | |
| 595 | 新增: } | |
| 599 | 596 | private void RenderLoadingPlaceholder() |
| 600 | 597 | { |
| 601 | 598 | if (LoadingPlaceholderCount > 0 && CardContainer != null) |
| @@ -654,7 +651,7 @@ namespace UI.Controls.Charts | ||
| 654 | 651 | |
| 655 | 652 | } |
| 656 | 653 | |
| 657 | 删除: private void Render() | |
| 654 | 新增: private void RenderData() | |
| 658 | 655 | { |
| 659 | 656 | if (isRendering || CardContainer == null) |
| 660 | 657 | { |
| @@ -111,4 +111,11 @@ | ||
| 111 | 111 | <SolidColorBrush x:Key="ExpanderBgBrush" Color="{StaticResource ExpanderBgColor}" /> |
| 112 | 112 | <Color x:Key="ExpanderContentBgColor">#2e2e2e</Color> |
| 113 | 113 | <SolidColorBrush x:Key="ExpanderContentBgBrush" Color="{StaticResource ExpanderContentBgColor}" /> |
| 114 | 新增: | |
| 115 | 新增: <!--占位框--> | |
| 116 | 新增: <Color x:Key="PlaceholderRectBgColor">#323232</Color> | |
| 117 | 新增: <SolidColorBrush x:Key="PlaceholderRectBgBrush" Color="{StaticResource PlaceholderRectBgColor}" /> | |
| 118 | 新增: <Color x:Key="PlaceholderRectBgFlashColor">#4d4d4d</Color> | |
| 119 | 新增: <SolidColorBrush x:Key="PlaceholderRectBgFlashBrush" Color="{StaticResource PlaceholderRectBgFlashColor}" /> | |
| 120 | 新增: | |
| 114 | 121 | </ResourceDictionary> |
| 文件末尾没有换行 | ||
| @@ -111,4 +111,9 @@ | ||
| 111 | 111 | <Color x:Key="ExpanderContentBgColor">#f7f7f7</Color> |
| 112 | 112 | <SolidColorBrush x:Key="ExpanderContentBgBrush" Color="{StaticResource ExpanderContentBgColor}" /> |
| 113 | 113 | |
| 114 | 新增: <!--占位框--> | |
| 115 | 新增: <Color x:Key="PlaceholderRectBgColor">#e0e0e0</Color> | |
| 116 | 新增: <SolidColorBrush x:Key="PlaceholderRectBgBrush" Color="{StaticResource PlaceholderRectBgColor}" /> | |
| 117 | 新增: <Color x:Key="PlaceholderRectBgFlashColor">#ffffff</Color> | |
| 118 | 新增: <SolidColorBrush x:Key="PlaceholderRectBgFlashBrush" Color="{StaticResource PlaceholderRectBgFlashColor}" /> | |
| 114 | 119 | </ResourceDictionary> |
| 文件末尾没有换行 | ||
| @@ -10,8 +10,8 @@ | ||
| 10 | 10 | <Setter Property="Template"> |
| 11 | 11 | <Setter.Value> |
| 12 | 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"> | |
| 13 | 新增: <Border CornerRadius="{TemplateBinding CornerRadius}" Background="{DynamicResource PlaceholderRectBgBrush}" ClipToBounds="True"> | |
| 14 | 新增: <Border x:Name="Flash" Background="{DynamicResource PlaceholderRectBgFlashBrush}" Width="10" Height="{TemplateBinding Height}" Opacity=".5" RenderTransformOrigin="0,0.5"> | |
| 15 | 15 | <Border.Effect> |
| 16 | 16 | <BlurEffect Radius="30" ></BlurEffect> |
| 17 | 17 | </Border.Effect> |
| @@ -116,7 +116,7 @@ | ||
| 116 | 116 | <Rectangle |
| 117 | 117 | RadiusX="0" |
| 118 | 118 | RadiusY="0" |
| 119 | 删除: Fill="#e0e0e0" | |
| 119 | 新增: Fill="{DynamicResource PlaceholderRectBgBrush}" | |
| 120 | 120 | Height="8" |
| 121 | 121 | VerticalAlignment="Center" |
| 122 | 122 | HorizontalAlignment="Stretch" |

