提交记录修改UI/Themes/Button/Button.xaml+11 −3看文件
| @@ -10,13 +10,13 @@ | ||
| 10 | 10 | |
| 11 | 11 | <!--<Setter Property="MinWidth" Value="150"/>--> |
| 12 | 12 | <Setter Property="Height" Value="35"/> |
| 13 | 删除: <Setter Property="Background" Value="Transparent"/> | |
| 13 | 新增: <Setter Property="Background" Value="White"/> | |
| 14 | 14 | <Setter Property="Template"> |
| 15 | 15 | <Setter.Value> |
| 16 | 16 | <ControlTemplate TargetType="{x:Type local:Button}"> |
| 17 | 删除: <Border Background="{TemplateBinding Background}" x:Name="Border"> | |
| 17 | 新增: <Border x:Name="Border"> | |
| 18 | 18 | |
| 19 | 删除: <Border BorderBrush="#f3f3f3" BorderThickness="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="White"> | |
| 19 | 新增: <Border BorderBrush="#f3f3f3" BorderThickness="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="{TemplateBinding Background}"> | |
| 20 | 20 | <Border.Effect> |
| 21 | 21 | <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="Gray" Opacity=".1"/> |
| 22 | 22 | </Border.Effect> |
| @@ -70,7 +70,15 @@ | ||
| 70 | 70 | </Storyboard> |
| 71 | 71 | </VisualState> |
| 72 | 72 | <VisualState x:Name="Pressed"> |
| 73 | 新增: <Storyboard> | |
| 74 | 新增: | |
| 73 | 75 | |
| 76 | 新增: <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" | |
| 77 | 新增: Storyboard.TargetName="BoxBorder"> | |
| 78 | 新增: <EasingColorKeyFrame KeyTime="0" | |
| 79 | 新增: Value="#eaeaea" /> | |
| 80 | 新增: </ColorAnimationUsingKeyFrames> | |
| 81 | 新增: </Storyboard> | |
| 74 | 82 | </VisualState> |
| 75 | 83 | </VisualStateGroup> |
| 76 | 84 | </VisualStateManager.VisualStateGroups> |

