<pu:WindowX
  x:Class="VPet.ModMaker.Views.ModEdit.I18nEdit.I18nEditWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
  xmlns:local="clr-namespace:VPet.ModMaker.Views.ModEdit.I18nEdit"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:pu="https://opensource.panuon.com/wpf-ui"
  xmlns:vm="clr-namespace:VPet.ModMaker.ViewModels.ModEdit.I18nEdit"
  Title="I18nEditWindow"
  Width="800"
  Height="450"
  d:DataContext="{d:DesignInstance Type=vm:I18nEditWindowVM}"
  WindowStartupLocation="CenterScreen"
  mc:Ignorable="d">
  <Window.Resources />
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <TextBox
      pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}"
      Style="{DynamicResource StandardTextBoxStyle}"
      Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
    <DataGrid
      x:Name="DataGrid_Datas"
      Grid.Row="1"
      d:ItemsSource="{d:SampleData ItemCount=5}"
      AutoGenerateColumns="False"
      CanUserAddRows="False"
      CanUserDeleteRows="False"
      CanUserReorderColumns="False"
      ItemsSource="{Binding ShowI18nDatas.Value}"
      ScrollViewer.IsDeferredScrollingEnabled="True"
      VirtualizingStackPanel.VirtualizationMode="Recycling">
      <DataGrid.Columns>
        <DataGridTextColumn
          MaxWidth="300"
          Binding="{Binding Id.Value}"
          CanUserSort="True"
          ElementStyle="{StaticResource TextBlock_Wrap}"
          Header="Id"
          IsReadOnly="True"
          SortMemberPath="Id.Value" />
      </DataGrid.Columns>
    </DataGrid>
  </Grid>
</pu:WindowX>
