You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
7.7 KiB
128 lines
7.7 KiB
<Border x:Class="SparkClient.Views.Configuration.ConfigMenuPage" |
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
xmlns:local="clr-namespace:SparkClient.Views" |
|
mc:Ignorable="d" > |
|
<Grid> |
|
<Grid.Background> |
|
<ImageBrush ImageSource="pack://application:,,,/Resource/Images/homebg.png" Stretch="UniformToFill" /> |
|
</Grid.Background> |
|
|
|
<Border Width="1000" Height="400" BorderBrush="Silver" BorderThickness="1" CornerRadius="20"> |
|
<Border.Background> |
|
<RadialGradientBrush GradientOrigin="0.5,0.5" Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5"> |
|
<!-- 内部颜色 --> |
|
<GradientStop Color="#754C4D4F" Offset="0.0" /> |
|
<!-- 外部颜色 --> |
|
<GradientStop Color="#75944703" Offset="2.0" /> |
|
</RadialGradientBrush> |
|
</Border.Background> |
|
|
|
<Grid> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="Auto"/> |
|
<RowDefinition Height="*"/> |
|
</Grid.RowDefinitions> |
|
<Button Background="Transparent" BorderBrush="Transparent" HorizontalAlignment="Right" Command="{Binding CloseCommand}"> |
|
<Viewbox Stretch="Uniform"> |
|
<Path Data="{StaticResource CloseGeometry}" |
|
Fill="Azure" |
|
Stroke="Azure" |
|
StrokeThickness="1" |
|
HorizontalAlignment="Center" |
|
VerticalAlignment="Center" |
|
Margin="20 0 0 0" |
|
Width="30" /> |
|
</Viewbox> |
|
</Button> |
|
|
|
<Grid Grid.Row="1"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
<Button Grid.Column="1" Width="200" Height="400" Background="Transparent" BorderBrush="Transparent" |
|
VerticalAlignment="Center" HorizontalAlignment="Center" |
|
MouseEnter="LevelButton_OnMouseEnter" MouseLeave="LevelButton_OnMouseLeave" |
|
Command="{Binding LevelConfigCommand}"> |
|
<Viewbox> |
|
<Grid Margin="0 " Width="200" Height="400"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="*"/> |
|
<RowDefinition Height="Auto"/> |
|
<RowDefinition Height="Auto"/> |
|
</Grid.RowDefinitions> |
|
<Image Grid.Row="0" x:Name="imgLevel" Source="../../Resource/Images/Level_Def@3x.png" Width="180" Height="180"></Image> |
|
<TextBlock Grid.Row="1" x:Name="tbLevel" Text="{DynamicResource LevelConfig}" TextWrapping="Wrap" Width="180" Height="100" FontSize="24" |
|
TextAlignment="Center" Foreground="Azure"/> |
|
</Grid> |
|
</Viewbox> |
|
</Button> |
|
<Button Grid.Column="2" Width="230" Height="400" Background="Transparent" BorderBrush="Transparent" |
|
VerticalAlignment="Center" HorizontalAlignment="Center" |
|
MouseEnter="AlgorButton_OnMouseEnter" MouseLeave="AlgorButton_OnMouseLeave" |
|
Command="{Binding AlgorithmConfigCommand}"> |
|
<Viewbox> |
|
<Grid Margin="0 " Width="200" Height="400"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="*"/> |
|
<RowDefinition Height="Auto"/> |
|
<RowDefinition Height="Auto"/> |
|
|
|
</Grid.RowDefinitions> |
|
<Image Grid.Row="0" x:Name="imgAlgor" Source="../../Resource/Images/Algor_Def@3x.png" Width="180" Height="180"></Image> |
|
<TextBlock Grid.Row="1" x:Name="tbAlgor" Text="{DynamicResource AlgorithmConfig}" TextWrapping="Wrap" Width="180" Height="100" FontSize="24" |
|
TextAlignment="Center" Foreground="Azure"/> |
|
</Grid> |
|
</Viewbox> |
|
</Button> |
|
|
|
<Button Grid.Column="3" Width="230" Height="400" Background="Transparent" BorderBrush="Transparent" |
|
VerticalAlignment="Center" HorizontalAlignment="Center" |
|
MouseEnter="CutButton_OnMouseEnter" MouseLeave="CutButton_OnMouseLeave" |
|
Command="{Binding CutConfigCommand}"> |
|
<Viewbox> |
|
<Grid Margin="0 " Width="200" Height="400"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="*"/> |
|
<RowDefinition Height="Auto"/> |
|
<RowDefinition Height="Auto"/> |
|
</Grid.RowDefinitions> |
|
<Image Grid.Row="0" x:Name="imgCut" Source="../../Resource/Images/Cut_Def@3x.png" Width="180" Height="180" ></Image> |
|
<TextBlock Grid.Row="1" x:Name="tbCut" Text="{DynamicResource CutConfig}" TextWrapping="Wrap" Width="180" Height="100" FontSize="24" |
|
TextAlignment="Center" Foreground="Azure"/> |
|
</Grid> |
|
</Viewbox> |
|
</Button> |
|
<Button Grid.Column="4" Width="230" Height="400" Background="Transparent" BorderBrush="Transparent" |
|
VerticalAlignment="Center" HorizontalAlignment="Center" |
|
MouseEnter="SettingButton_OnMouseEnter" MouseLeave="SettingButton_OnMouseLeave" |
|
Command="{Binding SettingConfigCommand}"> |
|
<Viewbox> |
|
<Grid Margin="0 " Width="200" Height="400"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="*"/> |
|
<RowDefinition Height="Auto"/> |
|
<RowDefinition Height="Auto"/> |
|
</Grid.RowDefinitions> |
|
<Image Grid.Row="0" x:Name="imgSet" Source="../../Resource/Images/Setting_Def@3x.png" Width="180" Height="180" ></Image> |
|
<TextBlock Grid.Row="1" x:Name="tbSet" Text="{DynamicResource System Settings}" TextWrapping="Wrap" Width="180" Height="100" FontSize="24" |
|
TextAlignment="Center" Foreground="Azure"/> |
|
</Grid> |
|
</Viewbox> |
|
</Button> |
|
</Grid> |
|
</Grid> |
|
|
|
|
|
</Border> |
|
</Grid> |
|
</Border> |