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.
161 lines
9.6 KiB
161 lines
9.6 KiB
<Border x:Class="SparkClient.Views.Configuration.SettingPages.CustomSettingPage" |
|
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" |
|
xmlns:hc="https://handyorg.github.io/handycontrol" |
|
mc:Ignorable="d" |
|
d:DesignHeight="500" d:DesignWidth="500"> |
|
<Border.Resources> |
|
<Style x:Key="BorderRowStyle" TargetType="Border"> |
|
<Setter Property="CornerRadius" Value="15" /> |
|
<Setter Property="Background" Value="#f0f1f6" /> |
|
<Setter Property="Padding" Value="5 20" /> |
|
<Setter Property="Margin" Value="2 3" /> |
|
|
|
</Style> |
|
<Style x:Key="TextBlockStyle" TargetType="TextBlock"> |
|
<Setter Property="TextAlignment" Value="Right" /> |
|
<Setter Property="VerticalAlignment" Value="Center" /> |
|
<Setter Property="FontSize" Value="16" /> |
|
<Setter Property="Foreground" Value="Black" /> |
|
<Setter Property="Padding" Value="0 0 10 0" /> |
|
</Style> |
|
<!-- <Style x:Key="CheckBoxStyle" TargetType="CheckBox"> --> |
|
<!-- <Setter Property="VerticalAlignment" Value="Center" /> --> |
|
<!-- <Setter Property="FontSize" Value="16" /> --> |
|
<!-- <Setter Property="Foreground" Value="Black" /> --> |
|
<!-- <Setter Property="Padding" Value="0 0 10 0" /> --> |
|
<!-- <Setter Property="Margin" Value="0 5" /> --> |
|
<!-- </Style> --> |
|
|
|
</Border.Resources> |
|
<Grid Background="Transparent" Opacity="0.8"> |
|
<!-- <Grid.ColumnDefinitions> --> |
|
<!-- <ColumnDefinition Width="2*"/> --> |
|
<!-- <ColumnDefinition Width="*"/> --> |
|
<!-- </Grid.ColumnDefinitions> --> |
|
<!-- <Grid.RowDefinitions> --> |
|
<!-- <RowDefinition Height="40"/> --> |
|
<!-- <RowDefinition Height="auto"/> --> |
|
<!-- <RowDefinition Height="30"/> --> |
|
<!-- <RowDefinition Height="auto"/> --> |
|
<!-- <RowDefinition Height="120"/> --> |
|
<!-- <RowDefinition Height="auto"/> --> |
|
<!-- <RowDefinition Height="30"/> --> |
|
<!-- <RowDefinition Height="auto"/> --> |
|
<!-- <RowDefinition Height="30"/> --> |
|
<!-- <RowDefinition Height="auto"/> --> |
|
<!-- <RowDefinition Height="auto"/> --> |
|
<!-- <RowDefinition/> --> |
|
<!-- </Grid.RowDefinitions> --> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
</Grid.RowDefinitions> |
|
|
|
<Border Grid.Row="0" Style="{DynamicResource BorderRowStyle}"> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
<TextBlock Grid.Column="0" Text="{StaticResource SystemSettingCustomSetLanguageSet}" Style="{DynamicResource TextBlockStyle}" /> |
|
<ComboBox Grid.Column="1" Background="White" Width="150" HorizontalAlignment="Left" |
|
ItemsSource="{Binding Languages}" Margin="10 0" DisplayMemberPath="Key" SelectedValuePath="Value" |
|
SelectedValue="{Binding LanguageId, Mode=TwoWay}" /> |
|
</Grid> |
|
</Border> |
|
<Border Grid.Row="1" Style="{DynamicResource BorderRowStyle}"> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
<TextBlock Grid.Column="0" Text="{StaticResource SystemSettingCustomSetUploadFileSet}" Style="{DynamicResource TextBlockStyle}" /> |
|
<Grid Grid.Column="1"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition /> |
|
<RowDefinition /> |
|
<RowDefinition /> |
|
<RowDefinition /> |
|
</Grid.RowDefinitions> |
|
<CheckBox Grid.Row="0" FontSize="16" Margin="0 5" Content="{DynamicResource SystemSettingCustomSetUploadFileText}" IsChecked="{Binding TxtFileChecked}" IsEnabled="False"/> |
|
<CheckBox Grid.Row="1" FontSize="16" Margin="0 5" Content="{DynamicResource SystemSettingCustomSetUploadFileExcel}" IsChecked="{Binding ExcelFileChecked}" /> |
|
<CheckBox Grid.Row="2" FontSize="16" Margin="0 5" Content="{DynamicResource SystemSettingCustomSetUploadFileStl}" IsChecked="{Binding StlFileChecked}"/> |
|
<CheckBox Grid.Row="3" FontSize="16" Margin="0 5" Content="{DynamicResource SystemSettingCustomSetUploadFileDat}" IsChecked="{Binding DatFileChecked}"/> |
|
</Grid> |
|
</Grid> |
|
</Border> |
|
<Border Grid.Row="2" Style="{DynamicResource BorderRowStyle}"> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
<TextBlock Grid.Column="0" Text="{StaticResource SystemSettingCustomSetLanguageSet}" Style="{DynamicResource TextBlockStyle}" /> |
|
<ComboBox Grid.Column="1" Background="White" Width="150" HorizontalAlignment="Left" |
|
ItemsSource="{Binding Languages}" Margin="10 0" DisplayMemberPath="Key" SelectedValuePath="Value" |
|
SelectedValue="{Binding LanguageId, Mode=TwoWay}" /> |
|
</Grid> |
|
</Border> |
|
<Border Grid.Row="2" Style="{DynamicResource BorderRowStyle}"> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
<TextBlock Grid.Column="0" Text="{StaticResource SystemSettingCustomSetSavePath}" Style="{DynamicResource TextBlockStyle}" /> |
|
<Grid Grid.Column="1"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="300"/> |
|
<ColumnDefinition/> |
|
</Grid.ColumnDefinitions> |
|
<TextBox TextWrapping="Wrap" Name ="filePath" Grid.Column="0" Text="{Binding FilePath}" Background="White" Width="300" HorizontalAlignment="Left"/> |
|
<TextBlock Text="{StaticResource SystemSettingCustomSelectPathTip}" Grid.Column="0" Foreground="#BBBBBB" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" IsEnabled="False"> |
|
<TextBlock.Style> |
|
<Style TargetType="TextBlock"> |
|
<Setter Property="Visibility" Value="Collapsed"/> |
|
<Style.Triggers> |
|
<DataTrigger Binding="{Binding Path=Text, ElementName=filePath}" Value=""> |
|
<Setter Property="Visibility" Value="Visible"/> |
|
</DataTrigger> |
|
</Style.Triggers> |
|
</Style> |
|
</TextBlock.Style> |
|
</TextBlock> |
|
<Button Grid.Column="1" Background="#8da3cc" Content="{StaticResource SystemSettingCustomSelectPath}" FontSize="16" Foreground="White" HorizontalAlignment="Left" Width="80" Command="{Binding SelectFileCommand}" Padding="10 0"/> |
|
</Grid> |
|
</Grid> |
|
</Border> |
|
<Border Grid.Row="3" Style="{DynamicResource BorderRowStyle}"> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
<TextBlock Grid.Column="0" Text="{StaticResource SystemSettingCustomSetLevel}" Style="{DynamicResource TextBlockStyle}" /> |
|
<ComboBox Grid.Column="1" Background="White" Width="150" HorizontalAlignment="Left" ItemsSource="{Binding Rules}" |
|
DisplayMemberPath="Key" SelectedValuePath="Value" SelectedValue="{Binding RuleId, Mode=TwoWay}"/> |
|
</Grid> |
|
</Border> |
|
<Border Grid.Row="4" Style="{DynamicResource BorderRowStyle}"> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
<TextBlock Grid.Column="0" Text="{StaticResource CustomSettingPageRunModeSet}" Style="{DynamicResource TextBlockStyle}" /> |
|
<ComboBox Grid.Column="1" Background="White" Width="150" HorizontalAlignment="Left" ItemsSource="{Binding RunMode}" |
|
DisplayMemberPath="Key" SelectedValuePath="Value" SelectedValue="{Binding NowRunMode, Mode=TwoWay}"/> |
|
</Grid> |
|
</Border> |
|
</Grid> |
|
</Border>
|
|
|