|
|
@ -18,6 +18,11 @@ |
|
|
|
<GradientStop Color="#1c8ccc" Offset="1"/> |
|
|
|
<GradientStop Color="#1c8ccc" Offset="1"/> |
|
|
|
</LinearGradientBrush> |
|
|
|
</LinearGradientBrush> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearGradientBrush x:Key="NotEnableColor" StartPoint="0,0" EndPoint="0,1"> |
|
|
|
|
|
|
|
<GradientStop Color="#40b1ff" Offset="0"/> |
|
|
|
|
|
|
|
<GradientStop Color="#FF8096A4" Offset="1"/> |
|
|
|
|
|
|
|
</LinearGradientBrush> |
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="InstallButton" TargetType="Button"> |
|
|
|
<Style x:Key="InstallButton" TargetType="Button"> |
|
|
|
<Setter Property="Cursor" Value="Hand"/> |
|
|
|
<Setter Property="Cursor" Value="Hand"/> |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter Property="Template"> |
|
|
@ -58,6 +63,10 @@ |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource PrimaryBlueColorHover}"/> |
|
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource PrimaryBlueColorHover}"/> |
|
|
|
</Trigger> |
|
|
|
</Trigger> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Trigger Property="IsEnabled" Value="False"> |
|
|
|
|
|
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource NotEnableColor}"/> |
|
|
|
|
|
|
|
</Trigger> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate> |
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter.Value> |
|
|
@ -210,9 +219,9 @@ |
|
|
|
<Button Grid.Row="0" Grid.Column="1" Style="{StaticResource InstallButton}" Content="开始部署" x:Name="Install" Click="ButtonBase_OnClick"/> |
|
|
|
<Button Grid.Row="0" Grid.Column="1" Style="{StaticResource InstallButton}" Content="开始部署" x:Name="Install" Click="ButtonBase_OnClick"/> |
|
|
|
<CheckBox Grid.Row="1" Grid.Column="1" Content="部署成功后,在桌面创建快捷方式。" Height="20" IsChecked="True" Margin="0 5 0 0" x:Name="CheckBox"/> |
|
|
|
<CheckBox Grid.Row="1" Grid.Column="1" Content="部署成功后,在桌面创建快捷方式。" Height="20" IsChecked="True" Margin="0 5 0 0" x:Name="CheckBox"/> |
|
|
|
<!-- 进度条 --> |
|
|
|
<!-- 进度条 --> |
|
|
|
<ProgressBar Grid.Row="2" Grid.Column="1" x:Name="InstallProgressBar" Height="20" Margin="0,10,0,0" Visibility="Hidden"/> |
|
|
|
<ProgressBar Grid.Row="2" Grid.Column="1" x:Name="InstallProgressBar" Height="20" Margin="0,10,0,0" Visibility="Visible"/> |
|
|
|
<!-- 当前文件信息 --> |
|
|
|
<!-- 当前文件信息 --> |
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" x:Name="StatusTextBlock" Height="20" Text="等待开始..." Visibility="Hidden"/> |
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" x:Name="StatusTextBlock" Height="20" Text="等待开始..." Visibility="Visible"/> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</Window> |
|
|
|
</Window> |
|
|
|