<flyctrllib:WindowBigClose  x:Class="MultiLayout.MainEdit.WdLoadFile"
                            xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        Title="Window_FixSave"  mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" Margin="5,20">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition/>
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <StackPanel Margin="{StaticResource ControlMargin}">
            <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="{StaticResource str.MainEdit.WdLoadFile.LayoutList}" VerticalAlignment="Center" FontSize="44" />
        </StackPanel>
        <ListBox Name="listview_profile" Margin="{StaticResource ControlMargin}" MinWidth="400" Height="400" Grid.Row="1" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding .}" FontSize="{StaticResource FontSize.FieldContent.Middle}" FontFamily="{StaticResource FontFamily.Field}" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Button Style="{StaticResource Styles.Button2}" Content="{StaticResource str.MainEdit.WdLoadFile.Save}"  Width="200" Click="button_save_Click"  />
            <Button Grid.Column="1" Style="{StaticResource Styles.Button2}" Content="{StaticResource str.MainEdit.WdLoadFile.Load}"  Width="200" Click="button_read_Click" Background="{StaticResource Brushes.Pass}" />
            <Button Grid.Column="2" Style="{StaticResource Styles.Button2}" Content="{StaticResource str.MainEdit.WdLoadFile.Delete}"  Width="200" Click="button_del_Click" Background="{StaticResource Brushes.Fault}" />
        </Grid>
    </Grid>

</flyctrllib:WindowBigClose >