提交记录修改UI/Themes/List/BaseListItem.xaml+8 −6看文件
| @@ -16,12 +16,9 @@ | ||
| 16 | 16 | <Setter Property="Template"> |
| 17 | 17 | <Setter.Value> |
| 18 | 18 | <ControlTemplate TargetType="{x:Type local:BaseListItem}"> |
| 19 | 删除: <Border Background="{TemplateBinding Background}" x:Name="Border"> | |
| 19 | 新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> | |
| 20 | 20 | |
| 21 | 21 | <Border BorderBrush="#f3f3f3" BorderThickness="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="White" > |
| 22 | 删除: <Border.Effect> | |
| 23 | 删除: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="#ccc" Opacity=".05"/> | |
| 24 | 删除: </Border.Effect> | |
| 25 | 22 | <Grid VerticalAlignment="Center" Margin="10,0"> |
| 26 | 23 | <Grid.ColumnDefinitions> |
| 27 | 24 | <ColumnDefinition Width="9*"/> |
| @@ -31,6 +28,11 @@ | ||
| 31 | 28 | </Grid> |
| 32 | 29 | |
| 33 | 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> | |
| 34 | 36 | |
| 35 | 37 | <VisualStateManager.VisualStateGroups> |
| 36 | 38 | <VisualStateGroup x:Name="CommonStates"> |
| @@ -43,7 +45,7 @@ | ||
| 43 | 45 | <VisualState x:Name="MouseOver"> |
| 44 | 46 | <Storyboard> |
| 45 | 47 | <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Color)" |
| 46 | 删除: Storyboard.TargetName="BoxBorder"> | |
| 48 | 新增: Storyboard.TargetName="Shadow"> | |
| 47 | 49 | <EasingColorKeyFrame KeyTime="0" |
| 48 | 50 | Value="#2b20d9"/> |
| 49 | 51 | </ColorAnimationUsingKeyFrames> |
| @@ -65,7 +67,7 @@ | ||
| 65 | 67 | </VisualStateGroup> |
| 66 | 68 | </VisualStateManager.VisualStateGroups> |
| 67 | 69 | |
| 68 | 删除: </Border> | |
| 70 | 新增: </Grid> | |
| 69 | 71 | <ControlTemplate.Triggers> |
| 70 | 72 | <Trigger Property="IsSelected" Value="True"> |
| 71 | 73 | <Setter TargetName="BoxBorder" Property="Background" Value="#2b20d9"/> |

