<Window x:Class="CtrEditor.PopUps.RenameImageWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        Title="Editar Información de Imagen" Height="400" Width="500"
        WindowStartupLocation="CenterOwner" ResizeMode="CanResize">
    <Grid Margin="20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Text="Archivo original:" FontWeight="Bold" Margin="0,0,0,5"/>
        <TextBlock Grid.Row="1" x:Name="OriginalNameTextBlock" Margin="0,0,0,15" Foreground="Gray"/>
        
        <GroupBox Grid.Row="2" Header="Propiedades de la Imagen" Margin="0,0,0,15">
            <xctk:PropertyGrid x:Name="PropertyGridControl" 
                             ShowSortOptions="False" 
                             ShowSearchBox="False"
                             ShowSummary="True"
                             ShowAdvancedOptions="False"
                             ShowTitle="False"
                             Margin="5">
                <xctk:PropertyGrid.EditorDefinitions>
                    <xctk:EditorTemplateDefinition TargetProperties="Etiquetas">
                        <xctk:EditorTemplateDefinition.EditingTemplate>
                            <DataTemplate>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <TextBox Grid.Column="0" 
                                           Text="{Binding Value, UpdateSourceTrigger=PropertyChanged}" 
                                           VerticalAlignment="Stretch"/>
                                    <Button Grid.Column="1" 
                                          Content="..." 
                                          Width="25" 
                                          Margin="2,0,0,0"
                                          ToolTip="Abrir editor de etiquetas"
                                          Click="TagEditorButton_Click"/>
                                </Grid>
                            </DataTemplate>
                        </xctk:EditorTemplateDefinition.EditingTemplate>
                    </xctk:EditorTemplateDefinition>
                </xctk:PropertyGrid.EditorDefinitions>
            </xctk:PropertyGrid>
        </GroupBox>

        <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button x:Name="OkButton" Content="Aceptar" Width="80" Margin="0,0,10,0" IsDefault="True" Click="OkButton_Click"/>
            <Button x:Name="CancelButton" Content="Cancelar" Width="80" IsCancel="True" Click="CancelButton_Click"/>
        </StackPanel>
    </Grid>
</Window> 