|
@@ -11,6 +11,31 @@
|
11
|
11
|
<Window.Effect>
|
12
|
12
|
<DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
|
13
|
13
|
</Window.Effect>
|
|
14
|
+ <Window.Resources>
|
|
15
|
+ <Style x:Key="Button_Menu" TargetType="{x:Type Button}">
|
|
16
|
+ <Setter Property="Width" Value="auto" />
|
|
17
|
+ <Setter Property="Height" Value="auto" />
|
|
18
|
+ <Setter Property="BorderThickness" Value="0" />
|
|
19
|
+ <Setter Property="Foreground" Value="Black"/>
|
|
20
|
+ <Setter Property="Template">
|
|
21
|
+ <Setter.Value>
|
|
22
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
23
|
+ <Border Background="#c3c3c3">
|
|
24
|
+ <Border x:Name="MyBackgroundElement" Background="#F7F7F7" BorderBrush="{DynamicResource ForgroundBrush}" BorderThickness="1">
|
|
25
|
+ <ContentPresenter x:Name="ButtonContentPresenter" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
26
|
+ </Border>
|
|
27
|
+ </Border>
|
|
28
|
+ <ControlTemplate.Triggers>
|
|
29
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
30
|
+ <Setter TargetName="MyBackgroundElement" Property="Background" Value="#EDF5FF"/>
|
|
31
|
+ <Setter TargetName="MyBackgroundElement" Property="Opacity" Value="1"/>
|
|
32
|
+ </Trigger>
|
|
33
|
+ </ControlTemplate.Triggers>
|
|
34
|
+ </ControlTemplate>
|
|
35
|
+ </Setter.Value>
|
|
36
|
+ </Setter>
|
|
37
|
+ </Style>
|
|
38
|
+ </Window.Resources>
|
14
|
39
|
<Grid>
|
15
|
40
|
<!--分4行-->
|
16
|
41
|
<Grid.RowDefinitions>
|
|
@@ -44,22 +69,8 @@
|
44
|
69
|
<TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
|
45
|
70
|
</Border>
|
46
|
71
|
<!--浏览按钮-->
|
47
|
|
- <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="11,0,0,0" Click="BtnBrowse_Click">
|
48
|
|
- <Button.Template>
|
49
|
|
- <ControlTemplate TargetType="{x:Type Button}">
|
50
|
|
- <Border
|
51
|
|
- BorderBrush="{TemplateBinding Control.BorderBrush}"
|
52
|
|
- BorderThickness="1"
|
53
|
|
- CornerRadius="2">
|
54
|
|
- <Border.Background>#CDD6E0</Border.Background>
|
55
|
|
- <ContentPresenter
|
56
|
|
- HorizontalAlignment="Center"
|
57
|
|
- VerticalAlignment="Center"
|
58
|
|
- Content="{TemplateBinding ContentControl.Content}" />
|
59
|
|
- </Border>
|
60
|
|
- </ControlTemplate>
|
61
|
|
- </Button.Template>
|
62
|
|
- </Button>
|
|
72
|
+ <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
|
|
73
|
+ Background="#F7F7F7" Margin="11,0,0,0"/>
|
63
|
74
|
</StackPanel>
|
64
|
75
|
<!--第四行 开始按钮-->
|
65
|
76
|
<Button Cursor="Hand" Grid.Row="3" x:Name="btnStart" IsDefault="True" Content="开始" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="386" Height="48" Margin="30,0,30,0" Click="BtnStart_Click" Grid.ColumnSpan="2">
|