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.
98 lines
4.8 KiB
98 lines
4.8 KiB
<Border x:Class="SparkClient.Views.Configuration.AlgorithmConfigPage" |
|
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:hc="https://handyorg.github.io/handycontrol" |
|
xmlns:local="clr-namespace:SparkClient.Views" |
|
xmlns:configuration="clr-namespace:SparkClient.Views.Configuration" |
|
mc:Ignorable="d" |
|
> |
|
<Grid Background="Transparent"> |
|
|
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="Auto"/> |
|
<ColumnDefinition Width="Auto"/> |
|
<ColumnDefinition Width="Auto"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="Auto" /> |
|
<RowDefinition Height="*" /> |
|
</Grid.RowDefinitions> |
|
|
|
<Button Grid.Column="0" Grid.Row="0" Width="100" Margin="0 5 " Padding="0" Height="50" |
|
BorderThickness="0" Background="Transparent" FocusVisualStyle="{x:Null}" Command="{Binding SaveAlgorithmDataCommand}" IsEnabled="{Binding IsEnabled}"> |
|
<Border HorizontalAlignment="Center" |
|
VerticalAlignment="Center" |
|
Margin="0 0 0 0" |
|
Padding="10, 10" |
|
Width="100" |
|
BorderThickness="0" |
|
CornerRadius="20"> |
|
<Border.Background> |
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> |
|
<GradientStop Color="#61bde2" Offset="0"/> |
|
<GradientStop Color="#53abd9" Offset="1"/> |
|
</LinearGradientBrush> |
|
</Border.Background> |
|
<TextBlock Text="{ DynamicResource Save}" TextAlignment="Center" Foreground="#ffffff" FontSize="16"></TextBlock> |
|
</Border> |
|
</Button> |
|
<Button Grid.Column="1" Grid.Row="0" Width="100" Margin="10 5 " Padding="0" Height="50" |
|
BorderThickness="0" Background="Transparent" FocusVisualStyle="{x:Null}" Command="{Binding BeautifyJsonCommand}"> |
|
<Border HorizontalAlignment="Center" |
|
VerticalAlignment="Center" |
|
Margin="0 0 0 0" |
|
Padding="10, 10" |
|
Width="100" |
|
BorderThickness="0" |
|
CornerRadius="20"> |
|
<Border.Background> |
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> |
|
<GradientStop Color="#61bde2" Offset="0"/> |
|
<GradientStop Color="#53abd9" Offset="1"/> |
|
</LinearGradientBrush> |
|
</Border.Background> |
|
<TextBlock Text="{ DynamicResource BeautifyJson}" TextAlignment="Center" Foreground="#ffffff" FontSize="16"></TextBlock> |
|
</Border> |
|
</Button> |
|
<Button Grid.Column="2" Grid.Row="0" Width="100" Margin="0 5 " Padding="0" Height="50" |
|
BorderThickness="0" Background="Transparent" FocusVisualStyle="{x:Null}" Command="{Binding UglifyJsonCommand}"> |
|
<Border HorizontalAlignment="Center" |
|
VerticalAlignment="Center" |
|
Margin="0 0 0 0" |
|
Padding="10, 10" |
|
Width="100" |
|
BorderThickness="0" |
|
CornerRadius="20"> |
|
<Border.Background> |
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> |
|
<GradientStop Color="#61bde2" Offset="0"/> |
|
<GradientStop Color="#53abd9" Offset="1"/> |
|
</LinearGradientBrush> |
|
</Border.Background> |
|
<TextBlock Text="{ DynamicResource UglifyJson}" TextAlignment="Center" Foreground="#ffffff" FontSize="16"></TextBlock> |
|
</Border> |
|
</Button> |
|
|
|
<!-- <TextBox Grid.Column="3" Grid.Row="0" Text="{Binding AlgorithmConfigJson}"></TextBox> --> |
|
|
|
<avalonEdit:TextEditor Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="1" |
|
xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit" |
|
Name="TextEditor" |
|
SyntaxHighlighting="JSON" |
|
FontFamily="Consolas" |
|
FontSize="16pt" |
|
LineNumbersForeground="Black" |
|
TextChanged="TextEditor_OnTextChanged" |
|
ShowLineNumbers="True" > |
|
<avalonEdit:TextEditor.Options> |
|
<avalonEdit:TextEditorOptions ShowSpaces="True" /> |
|
</avalonEdit:TextEditor.Options> |
|
</avalonEdit:TextEditor> |
|
|
|
|
|
</Grid> |
|
</Border>
|
|
|