提交记录修改UI/Controls/Charts/ChartsItemTypeCard.cs+12 −2看文件
修改UI/Themes/Charts/ChartsItemTypeCard.xaml+19 −17看文件
| @@ -12,6 +12,7 @@ using System.Windows.Data; | ||
| 12 | 12 | using System.Windows.Documents; |
| 13 | 13 | using System.Windows.Input; |
| 14 | 14 | using System.Windows.Media; |
| 15 | 新增:using System.Windows.Media.Effects; | |
| 15 | 16 | using System.Windows.Media.Imaging; |
| 16 | 17 | using System.Windows.Navigation; |
| 17 | 18 | using System.Windows.Shapes; |
| @@ -111,7 +112,7 @@ namespace UI.Controls.Charts | ||
| 111 | 112 | if (Data.Name.Trim() == "" && Data.PopupText.Trim() != "") |
| 112 | 113 | { |
| 113 | 114 | FileInfo fi = new FileInfo(Data.PopupText); |
| 114 | 删除: NameTextObj.Text = fi.Name.Replace(fi.Extension,""); | |
| 115 | 新增: NameTextObj.Text = fi.Name.Replace(fi.Extension, ""); | |
| 115 | 116 | } |
| 116 | 117 | |
| 117 | 118 | NameTextObj.SizeChanged += (e, c) => |
| @@ -131,8 +132,17 @@ namespace UI.Controls.Charts | ||
| 131 | 132 | //{ |
| 132 | 133 | // return; |
| 133 | 134 | //} |
| 134 | 删除: ValueBlockObj.Width = ValueBlockObj.Height = (Data.Value / MaxValue) * ActualWidth; | |
| 135 | 新增: double size = (Data.Value / MaxValue) * ActualWidth/3; | |
| 136 | 新增: ValueBlockObj.Width = ValueBlockObj.Height = size; | |
| 137 | 新增: | |
| 138 | 新增: ValueBlockObj.Effect = new BlurEffect() | |
| 139 | 新增: { | |
| 140 | 新增: Radius = size, | |
| 141 | 新增: RenderingBias = RenderingBias.Performance | |
| 142 | 新增: }; | |
| 143 | 新增: | |
| 135 | 144 | }; |
| 145 | 新增: | |
| 136 | 146 | } |
| 137 | 147 | |
| 138 | 148 | protected override void OnMouseEnter(MouseEventArgs e) |
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | <Grid x:Name="Normal"> |
| 17 | 17 | <Border x:Name="ShadowBorder" CornerRadius="12"> |
| 18 | 18 | <Border.Effect> |
| 19 | 删除: <DropShadowEffect Color="#2b20d9" BlurRadius="17" Direction="0" ShadowDepth="0" Opacity="0"/> | |
| 19 | 新增: <DropShadowEffect RenderingBias="Performance" Color="#2b20d9" BlurRadius="17" Direction="0" ShadowDepth="0" Opacity="0"/> | |
| 20 | 20 | </Border.Effect> |
| 21 | 21 | <Border x:Name="Border" BorderBrush="Transparent" BorderThickness="2" Margin="0" Background="White" CornerRadius="12" Width="150" Height="150" > |
| 22 | 22 | |
| @@ -31,22 +31,29 @@ | ||
| 31 | 31 | x:Name="ValueBlockObj" |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 删除: HorizontalAlignment="Stretch" | |
| 34 | 新增: HorizontalAlignment="Center" | |
| 35 | 35 | VerticalAlignment="Center" |
| 36 | 新增: Margin="0" | |
| 37 | 新增: RenderTransformOrigin="0.5,0.5" | |
| 38 | 新增: Fill="#ff305b" | |
| 39 | 新增: | |
| 36 | 40 | > |
| 37 | 删除: <Rectangle.Effect> | |
| 38 | 删除: <BlurEffect KernelType="Gaussian" Radius="100"/> | |
| 39 | 删除: </Rectangle.Effect> | |
| 40 | 删除: <Rectangle.Fill> | |
| 41 | 删除: <LinearGradientBrush EndPoint="2,1" StartPoint="-2,0"> | |
| 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"> | |
| 42 | 46 | <GradientStop Color="White"/> |
| 43 | 47 | <GradientStop Color="#ff305b" Offset="1"/> |
| 44 | 48 | </LinearGradientBrush> |
| 45 | 删除: </Rectangle.Fill> | |
| 49 | 新增: </Rectangle.Fill>--> | |
| 50 | 新增: <Rectangle.RenderTransform> | |
| 51 | 新增: <ScaleTransform ScaleX="3" ScaleY="3" CenterX="0" CenterY="0"/> | |
| 52 | 新增: </Rectangle.RenderTransform> | |
| 46 | 53 | </Rectangle> |
| 47 | 删除: <Border VerticalAlignment="Center" HorizontalAlignment="Center"> | |
| 48 | 删除: <Image x:Name="IconObj" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
| 49 | 删除: </Border> | |
| 54 | 新增: <!--<Border VerticalAlignment="Center" HorizontalAlignment="Center">--> | |
| 55 | 新增: <Image x:Name="IconObj" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="LowQuality"/> | |
| 56 | 新增: <!--</Border>--> | |
| 50 | 57 | |
| 51 | 58 | <TextBlock x:Name="NameTextObj" Foreground="#5c5c5c" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="10"/> |
| 52 | 59 | |
| @@ -92,12 +99,7 @@ | ||
| 92 | 99 | <CubicEase EasingMode="EaseInOut"/> |
| 93 | 100 | </DoubleAnimation.EasingFunction> |
| 94 | 101 | </DoubleAnimation> |
| 95 | 删除: <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 96 | 删除: Storyboard.TargetName="Bg" > | |
| 97 | 删除: <EasingColorKeyFrame KeyTime="0" | |
| 98 | 删除: Value="#192B20D9"/> | |
| 99 | 删除: | |
| 100 | 删除: </ColorAnimationUsingKeyFrames>--> | |
| 102 | 新增: | |
| 101 | 103 | |
| 102 | 104 | </Storyboard> |
| 103 | 105 | </VisualState> |

