<UserControl x:Class="FileAttachments.EditAttachmentForm"
    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"
    mc:Ignorable="d">

    <Grid>
        <Grid Background="DarkGray" Opacity="0.4"/>

        <Grid Height="130" Width="500" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Border Background="#FAFAFA" BorderBrush="Black" BorderThickness="2">
                <Border.Effect>
                    <DropShadowEffect Color="Black" Opacity="0.6" Direction="315" ShadowDepth="5"/>
                </Border.Effect>
            </Border>

            <Grid Background="#FAFAFA" Margin="7">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>

                <TextBlock Text="File:" VerticalAlignment="Center"/>
                <TextBox Grid.Column="1" Margin="2" IsEnabled="False" Text="{Binding FileName, Mode=TwoWay}"/>
                <Button Grid.Column="2" Margin="2" Width="30" Content="..." Name="BrowseButton" Click="Browse_Click"/>

                <TextBlock Grid.Row="1" Text="Description:" VerticalAlignment="Center"/>
                <TextBox Grid.Row="1" Grid.Column="1" Margin="2" Text="{Binding Description, Mode=TwoWay}"/>

                <StackPanel Grid.Row="2" Grid.ColumnSpan="3" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
                    <Button Margin="4" Height="24" Width="50" Content="OK" Click="Ok_Click"/>
                    <Button Margin="4" Height="24" Width="50" Content="Cancel" Click="Cancel_Click"/>
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>
</UserControl>

