<Window x:Class="WPF_LibrosFamosos.vtnAgregarLibro"
        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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WPF_LibrosFamosos"
        mc:Ignorable="d"
        Title="Agregar Libro" Height="400" Width="400" Icon="bookshelf.png">
    <Window.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="FontSize" Value="14"></Setter>
            <Setter Property="Margin" Value="0,2,0,1"></Setter>
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="FontSize" Value="14"></Setter>
            <Setter Property="Margin" Value="0,1,0,1"></Setter>
        </Style>
    </Window.Resources>
    <DockPanel Margin="4" Background="LightBlue">
        <StackPanel DockPanel.Dock="Top">
            <TextBlock Margin="8" FontSize="20" FontWeight="Bold">Agregar Libro</TextBlock>
            <Separator BorderThickness="3" BorderBrush="Black" Margin="4,2"></Separator>
        </StackPanel>
        <WrapPanel HorizontalAlignment="Right" DockPanel.Dock="Bottom" Margin="4">
            <Button Padding="6,4" FontSize="14" Margin="5" Name="btnAgregarLibro" Click="btnAgregarLibro_Click">Agregar</Button>
            <Button Padding="6,4" FontSize="14" Margin="5" Name="btnCancelar" Click="btnCancelar_Click">Cancelar</Button>
        </WrapPanel>
        <StackPanel Margin="8">
            <TextBlock>Nombre del libro:</TextBlock>
            <TextBox Name="txtNombre" Text="{Binding Titulo}"></TextBox>
            <TextBlock>Nombre Original del Libro:</TextBlock>
            <TextBox Name="txtNombreOriginal" Text="{Binding TituloOriginal}"></TextBox>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <TextBlock>Autor:</TextBlock>
                <ComboBox Grid.Row="1" FontSize="12" Name="cmbAutores" SelectedItem="{Binding Autor}" Margin="0,2,4,2"></ComboBox>
                <TextBlock Grid.Column="1" Margin="4,0">Genero:</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="1" Name="txtGenero" Text="{Binding Genero}" Margin="4,2,0,2"></TextBox>
            </Grid>
            <TextBlock>Reseña:</TextBlock>
            <TextBox Name="txtReseña" TextWrapping="Wrap" Text="{Binding Resenha}"></TextBox>
        </StackPanel>
    </DockPanel>
</Window>
