<dx:ThemedWindow
    x:Class="VIZ.Package.Module.ManagerLayoutView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    ResizeMode="NoResize"  WindowStartupLocation="CenterScreen" 
    Title="管理窗口布局" Height="300" Width="400" >

    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="100"/>
        </Grid.ColumnDefinitions>

        <TextBlock Text="已保存的布局：" VerticalAlignment="Center" Margin="5"/>

        <ListBox Name="saveLayoutBox" Grid.Row="1" Margin="5,0,0,0" ItemsSource="{Binding Path=ItemsSource}" SelectedItem="{Binding SelectItem}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Header}"/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="5,0,0,0">

            <Button Content="重命名" Width="60" Command="{Binding ReNameCommand}" Margin="0,0,5,0"/>
            
            <Button Content="删除" Width="60" Command="{Binding DeleteCommand}"/>

        </StackPanel>


        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal"  HorizontalAlignment="Right" >

            <Button Content="关闭" Width="60" Command="{Binding CloseCommand}"/>

        </StackPanel>

    </Grid>
</dx:ThemedWindow>
