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.
195 lines
13 KiB
195 lines
13 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"/> |
|
</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> |
|
<!-- <Label Grid.Row="2" Content="{DynamicResource LanguageSettings}" VerticalAlignment="Center" HorizontalAlignment="Center" Width="150" /> --> |
|
<!-- <ComboBox Grid.Row="2" Grid.Column="1" Background="White" Width="150" HorizontalAlignment="Left" --> |
|
<!-- ItemsSource="{Binding Languages}" Margin="10 0" DisplayMemberPath="Key" SelectedValuePath="Value" --> |
|
<!-- SelectedValue="{Binding LanguageId, Mode=TwoWay}" > --> |
|
<!-- </ComboBox> --> |
|
<!-- <GridSplitter Grid.Row="3" Grid.ColumnSpan="2" Height="1" HorizontalAlignment="Stretch" Background="#BBBBBB"></GridSplitter> --> |
|
<!-- <Label Content="{DynamicResource UpdateFile}" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="5" Grid.Row="4" Grid.Column="0" Width="150"/> --> |
|
<!-- <Grid Grid.Row="4" Grid.Column="1" Width="88" HorizontalAlignment="Left"> --> |
|
<!-- <Grid.RowDefinitions> --> |
|
<!-- <RowDefinition /> --> |
|
<!-- <RowDefinition /> --> |
|
<!-- <RowDefinition /> --> |
|
<!-- <RowDefinition /> --> |
|
<!-- </Grid.RowDefinitions> --> |
|
<!-- <CheckBox Grid.Row="0" Content="{DynamicResource TxtFile}" IsChecked="{Binding TxtFileChecked}"/> --> |
|
<!-- <CheckBox Grid.Row="1" Content="{DynamicResource StlFile}" IsChecked="{Binding StlFileChecked}"/> --> |
|
<!-- <CheckBox Grid.Row="2" Content="{DynamicResource ExcelFile}" IsChecked="{Binding ExcelFileChecked}"/> --> |
|
<!-- <CheckBox Grid.Row="3" Content="{DynamicResource DatFile}" IsChecked="{Binding DatFileChecked}"/> --> |
|
<!-- </Grid> --> |
|
<!-- --> |
|
<!-- <GridSplitter Grid.Row="5" Grid.ColumnSpan="2" Height="1" HorizontalAlignment="Stretch" Background="#BBBBBB"></GridSplitter> --> |
|
<!-- <Label Grid.Row="6" Content="{DynamicResource SavePath}" VerticalAlignment="Center" HorizontalAlignment="Center" Width="150"/> --> |
|
<!-- <Grid Grid.Row="6" 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="{DynamicResource Please enter}" Grid.Column="0" Foreground="#BBBBBB" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5"> --> |
|
<!-- <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="#A7896F" Content="{DynamicResource Select}" Foreground="White" HorizontalAlignment="Left" Width="80" Command="{Binding SelectFileCommand}"/> --> |
|
<!-- </Grid> --> |
|
<!-- <GridSplitter Grid.Row="7" Grid.ColumnSpan="2" Height="1" HorizontalAlignment="Stretch" Background="#BBBBBB"></GridSplitter> --> |
|
<!-- <Label Grid.Row="8" Grid.Column="0" Content="{DynamicResource GradeStandard}" VerticalAlignment="Center" HorizontalAlignment="Center" Width="150"/> --> |
|
<!-- <ComboBox Grid.Row="8" Grid.Column="1" Background="White" Width="150" HorizontalAlignment="Left" ItemsSource="{Binding Rules}" --> |
|
<!-- DisplayMemberPath="Key" SelectedValuePath="Value" SelectedValue="{Binding RuleId, Mode=TwoWay}"/> --> |
|
<!-- <GridSplitter Grid.Row="9" Grid.ColumnSpan="2" Height="1" HorizontalAlignment="Stretch" Background="#BBBBBB"></GridSplitter> --> |
|
</Grid> |
|
</Border>
|
|
|