Files
egtstone3d/OptionsWindow/OptionWindowV.xaml
2025-02-04 16:47:20 +01:00

163 lines
8.3 KiB
XML

<EgtWPFLib5:EgtMainWindow x:Class="OptionWindowV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
xmlns:EgtStone3D="clr-namespace:EgtStone3D"
Title="{Binding Title}"
Icon="/Resources/EgalwareLogo.ico"
WindowStartupLocation="CenterOwner"
Style="{StaticResource OptionWindowV_Window}">
<Grid>
<Grid.Resources>
<EgtStone3D:SelectedComboConverter x:Key="SelectedComboConverter"/>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TabControl Style="{StaticResource OprtionWindow_TC}">
<TabItem Header="{Binding GenericMsg}">
<Grid Style="{StaticResource TopPanel_Grid}">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<GroupBox Style="{StaticResource OptionWindow_GrBx}">
<GroupBox.Header>
<TextBlock Text="{Binding CurrentLanguageMsg}"
Style="{StaticResource OptionWindow_TxBl}"/>
</GroupBox.Header>
<UniformGrid Rows="2"
Style="{StaticResource OptionWindow_UniformGrid}">
<ComboBox DisplayMemberPath="Name"
ItemsSource="{Binding LanguageList}"
SelectedItem="{Binding SelectedLanguage, UpdateSourceTrigger=PropertyChanged}"
Style="{StaticResource OptionWindow_CmBx}"/>
<TextBlock Text="{Binding LanguageAdvertMsg}"
Style="{StaticResource OptionWindow_TxBl}"/>
</UniformGrid>
</GroupBox>
<GroupBox Grid.Column="1"
Style="{StaticResource OptionWindow_GrBx}">
<GroupBox.Header>
<TextBlock Text="{Binding TemaMsg}"
Style="{StaticResource OptionWindow_TxBl}"/>
</GroupBox.Header>
<UniformGrid Rows="2"
Style="{StaticResource OptionWindow_UniformGrid}">
<ComboBox DisplayMemberPath="Name"
ItemsSource="{Binding Themes, Mode=OneWay}"
SelectedItem="{Binding SelectedTheme}"
Style="{StaticResource OptionWindow_CmBx}"/>
<TextBlock Text="{Binding TemaAdvertMsg}"
Style="{StaticResource OptionWindow_TxBl}"/>
</UniformGrid>
</GroupBox>
<GroupBox Grid.Column="2"
Style="{StaticResource OptionWindow_GrBx}">
<GroupBox.Header>
<TextBlock Text="{Binding TemaTopPanelMsg}"
Style="{StaticResource OptionWindow_TxBl}"/>
</GroupBox.Header>
<UniformGrid Rows="2"
Style="{StaticResource OptionWindow_UniformGrid}">
<ComboBox ItemsSource="{Binding ListTopPanel, Mode=OneWay}"
SelectedItem="{Binding SelectedTopPanel}"
Style="{StaticResource OptionWindow_CmBx}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource SelectedComboConverter}}"
Style="{StaticResource Background_TxBl}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Text="{Binding TemaTopPanelAdvertMsg}"
Style="{StaticResource OptionWindow_TxBl}"/>
</UniformGrid>
</GroupBox>
<UniformGrid Grid.Row="1"
Grid.ColumnSpan="3"
Columns="2"
Style="{StaticResource Background_UniformGrid}">
<TextBlock Text="{Binding TopSceneBackgroundMsg}"
Style="{StaticResource Background_TxBl}"/>
<Button Background="{Binding TopSceneBackground}"
Command="{Binding TopSceneBackground_Command}"
Style="{StaticResource EgtWPFLib5_InputButton}"/>
</UniformGrid>
<UniformGrid Grid.Row="2"
Grid.ColumnSpan="3"
Columns="2"
Style="{StaticResource SceneBackground_UniformGrid}">
<TextBlock Text="{Binding BotSceneBackgroundMsg}"
Style="{StaticResource Background_TxBl}"/>
<Button Background="{Binding BotSceneBackground}"
Command="{Binding BotSceneBackground_Command}"
Style="{StaticResource EgtWPFLib5_InputButton}"/>
</UniformGrid>
<UniformGrid Grid.Row="3"
Grid.ColumnSpan="3"
Columns="2"
Style="{StaticResource SceneBackground_UniformGrid}">
<TextBlock Text="{Binding GridColorMsg}"
Style="{StaticResource Background_TxBl}"/>
<Button Background="{Binding GridColor}"
Command="{Binding GridColor_Command}"
Style="{StaticResource EgtWPFLib5_InputButton}"/>
</UniformGrid>
<Grid Grid.Row="4"
Grid.RowSpan="2"
Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ThickLineMsg}"
Style="{StaticResource ColorLine_TxBl}"/>
<CheckBox Grid.Column="1"
IsChecked="{Binding ThickLine}"
Style="{StaticResource ColorLine_ChBx}"/>
<TextBlock Grid.Row="1"
Text="{Binding SmoothTriMeshMsg}"
Style="{StaticResource ColorLine_TxBl}"/>
<CheckBox Grid.Row="1"
Grid.Column="1"
IsChecked="{Binding SmoothTriMesh}"
Style="{StaticResource ColorLine_ChBx}"/>
</Grid>
<Grid Grid.Row="6"
Grid.ColumnSpan="3"
Style="{StaticResource Licence_Grid}">
<Button Content="{Binding UpdateLicenceMsg}"
Command="{Binding UpdateLicence_Command}"
Style="{StaticResource Licence_Btn}"/>
</Grid>
</Grid>
</TabItem>
</TabControl>
<Button Grid.Row="1"
Command="{Binding Ok_Command}"
Style="{StaticResource RightPanel_Button}">
<Image Source="\Resources\Common\Ok.png"
Style="{StaticResource Button_Image}"/>
</Button>
</Grid>
</EgtWPFLib5:EgtMainWindow>