<Window x:Class="TMC_Tool.GetMaterialWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:TMC_Tool"
        xmlns:custom="clr-namespace:CustomControls"
        Title="GetMaterialWindow" Width="450" SnapsToDevicePixels="True" Background="#FF333333" WindowStartupLocation="CenterOwner" SizeToContent="Height" AllowsTransparency="True" WindowStyle="None" Closing="Window_Closing" x:Name="getMatWindow" Activated="Window_Activated" MinWidth="400" MinHeight="442" AllowDrop="True" Drop="Window_DragDrop" DragOver="Window_DragOver" MaxHeight="600">
  <Window.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Themes/MetroDark/MetroDark.MSControls.Core.Implicit.xaml"/>
        <ResourceDictionary Source="Common/CommonStyles.xaml"/>
        <ResourceDictionary Source="Common/CustomControls.xaml"/>
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Window.Resources>
  <WindowChrome.WindowChrome>
    <WindowChrome CaptionHeight="{x:Static SystemParameters.CaptionHeight}" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" UseAeroCaptionButtons="False"/>
  </WindowChrome.WindowChrome>
  <Border BorderThickness="1" BorderBrush="#FF666666" Margin="0,0,0,0">
    <Grid>
      <Grid.RowDefinitions>
        <RowDefinition Height="400*"/>
        <RowDefinition Height="45"/>
      </Grid.RowDefinitions>
      <TextBlock x:Name="title" Margin="7,8,7,0" Text="マテリアル情報を取得" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14" Foreground="{DynamicResource DisabledForegroundBrush}"/>
      <Label x:Name="labelTmcFile" Content="マテリアル情報を取得するTMCファイル" HorizontalAlignment="Left" Margin="2,34,0,0" VerticalAlignment="Top"/>
      <Border BorderBrush="{DynamicResource TextBoxBorderBrush}" BorderThickness="1" Height="30" Margin="5,59,37,0" VerticalAlignment="Top" Background="{DynamicResource TextBoxBackgroundBrush}">
        <custom:PathTrimTextBlock x:Name="textFilePath" Margin="5" Path="" VerticalAlignment="Bottom"/>
      </Border>
      <Button x:Name="btnOpen" Content="..." HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnOpen_Click" Margin="0,59,5,0" HorizontalContentAlignment="Center" MinWidth="33"/>
      <Label x:Name="labelGetObj" Content="取得するオブジェクト" HorizontalAlignment="Left" Margin="2,99,0,0" VerticalAlignment="Top" Height="30"/>
      <ComboBox x:Name="cmbObject" Margin="137,99,100,0" VerticalAlignment="Top" IsEnabled="False" SelectionChanged="cmbObject_SelectionChanged"/>
      <Label x:Name="labelTexCount" Content="TexCount :" HorizontalAlignment="Left" Margin="358,101,0,0" VerticalAlignment="Top"/>
      <TextBlock x:Name="textTexCount" HorizontalAlignment="Left" Margin="432,106,0,0" TextWrapping="Wrap" Text="-" VerticalAlignment="Top"/>
      <StackPanel HorizontalAlignment="Left" Margin="0,149,0,0" VerticalAlignment="Top" Width="233">
        <Label x:Name="labelMatData" Content="取得するマテリアル情報" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3,0,0,0"/>
        <Grid x:Name="gridMtrCol" Margin="0,10,0,0" IsEnabled="False">
          <CheckBox x:Name="cbMtrCol" Content="MtrCol" HorizontalAlignment="Left" Margin="7,0,0,0" VerticalAlignment="Top" Checked="cbMtrCol_Checked" Unchecked="cbMtrCol_Unchecked"/>
          <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal" Margin="9,24,0,0">
            <RadioButton x:Name="rbMtrColAdd" Content="追加" HorizontalAlignment="Left" VerticalAlignment="Top" IsChecked="True" IsEnabled="False" GroupName="mtrCol" Checked="rbMtrColAdd_Checked"/>
            <RadioButton x:Name="rbMtrColReplace" Content="置換" HorizontalAlignment="Left" VerticalAlignment="Top" IsEnabled="False" GroupName="mtrCol" Margin="20,0,0,0" Checked="rbMtrColReplace_Checked" Unchecked="rbMtrColReplace_Unchecked" IsEnabledChanged="rbMtrColReplace_IsEnabledChanged"/>
            <ComboBox x:Name="cmbMtrCol" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="70" Margin="10,0,0,0" SelectionChanged="cmbMat_SelectionChanged"/>
          </StackPanel>
        </Grid>
        <Grid x:Name="gridMateCp" Margin="0,10,0,0" IsEnabled="False">
          <CheckBox x:Name="cbMateCp" Content="matecp" HorizontalAlignment="Left" Margin="7,0,0,0" VerticalAlignment="Top" Checked="cbMateCp_Checked" Unchecked="cbMateCp_Unchecked"/>
          <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal" Margin="9,24,0,0">
            <RadioButton x:Name="rbMateCpAdd" Content="追加" HorizontalAlignment="Left" VerticalAlignment="Top" IsChecked="True" IsEnabled="False" GroupName="mateCp" Checked="rbMateCpAdd_Checked"/>
            <RadioButton x:Name="rbMateCpReplace" Content="置換" HorizontalAlignment="Left" VerticalAlignment="Top" IsEnabled="False" GroupName="mateCp" Margin="20,0,0,0" Unchecked="rbMateCpReplace_Unchecked" Checked="rbMateCpReplace_Checked" IsEnabledChanged="rbMateCpReplace_IsEnabledChanged"/>
            <ComboBox x:Name="cmbMateCp" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="70" Margin="10,0,0,0" SelectionChanged="cmbMat_SelectionChanged"/>
          </StackPanel>
        </Grid>
        <Grid x:Name="gridMCAMTRL" Margin="0,10,0,0" IsEnabled="False">
          <CheckBox x:Name="cbMcaMtrl" Content="MCAMTRL" HorizontalAlignment="Left" Margin="7,0,0,0" VerticalAlignment="Top" Checked="cbMcaMtrl_Checked" Unchecked="cbMcaMtrl_Unchecked"/>
          <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal" Margin="9,24,0,0">
            <RadioButton x:Name="rbMcaMtrlAdd" Content="追加" HorizontalAlignment="Left" VerticalAlignment="Top" IsEnabled="False" GroupName="mcaMtrl" Checked="rbMcaMtrlAdd_Checked" IsChecked="True"/>
            <RadioButton x:Name="rbMcaMtrlReplace" Content="置換" HorizontalAlignment="Left" VerticalAlignment="Top" IsEnabled="False" GroupName="mcaMtrl" Margin="20,0,0,0" Unchecked="rbMcaMtrlReplace_Unchecked" Checked="rbMcaMtrlReplace_Checked" IsEnabledChanged="rbMcaMtrlReplace_IsEnabledChanged"/>
            <ComboBox x:Name="cmbMcaMtrl" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="70" Margin="10,0,0,0" SelectionChanged="cmbMat_SelectionChanged"/>
          </StackPanel>
        </Grid>
        <CheckBox x:Name="cbTexParam" Content="テクスチャパラメータ" HorizontalAlignment="Left" Margin="7,12,0,0" VerticalAlignment="Top" IsEnabled="False" Checked="cbTexParam_Checked" Unchecked="cbTexParam_Unchecked"/>
        <TextBlock x:Name="textAlert" HorizontalAlignment="Left" TextWrapping="Wrap" Text="追加時には選択しているオブジェクトのインデックスが変更されます" VerticalAlignment="Top" Width="213" Margin="10,15,0,0"/>
      </StackPanel>
      <Label x:Name="labelInfluenceObj" Content="影響を受けるオブジェクト" HorizontalAlignment="Left" Margin="230,149,0,0" VerticalAlignment="Top"/>
      <TextBox x:Name="listInfluenceObj" Margin="233,175,5,0" MinHeight="180" IsReadOnly="True" VerticalScrollBarVisibility="Auto" PreviewDragOver="Window_DragOver" IsTabStop="False" IsEnabled="False"/>
      <StackPanel Margin="0" VerticalAlignment="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="1" Height="40" Width="189">
        <Button x:Name="btnOk" Content="OK" HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnOk_Click" Margin="5" HorizontalContentAlignment="Center" MinWidth="87" IsEnabled="False"/>
        <Button x:Name="btnCancel" Content="キャンセル" VerticalAlignment="Top" Click="btnCancel_Click" Margin="0,5,5,5" IsCancel="True" IsDefault="True" MinWidth="87" HorizontalAlignment="Right"/>
      </StackPanel>
    </Grid>
  </Border>
</Window>
