<dhcc:TradePage x:Class="TellerSystem.Contract.Function.OpenImageFilesViewer"
                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:dhcc="http://www.dhcc.com.cn"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                Name="this"
                Width="450"
                Height="350"
                dhcc:FocusManager.EnableFocusControl="True"
                mc:Ignorable="d">
    <dhcc:TradePage.Resources>
        <DataTemplate x:Key="DataTemplate1">
            <Grid Width="400" Height="90">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="100" />
                </Grid.ColumnDefinitions>
                <Rectangle Grid.Column="0"
                           Width="120"
                           Height="90"
                           HorizontalAlignment="Left">
                    <Rectangle.Fill>
                        <ImageBrush ImageSource="{Binding ImagePath}" />
                    </Rectangle.Fill>
                </Rectangle>
                <Button Grid.Column="1"
                        Height="30"
                        VerticalAlignment="Center"
                        Click="DeleteButton_Click"
                        Content="删除"
                        Tag="{Binding}" />
            </Grid>
        </DataTemplate>
    </dhcc:TradePage.Resources>
    <Grid>
        <ListBox Name="listBox1"
                 Height="268"
                 Margin="12,41,12,0"
                 VerticalAlignment="Top"
                 ItemsSource="{Binding ImageCollection,
                                       ElementName=this}"
                 ItemTemplate="{DynamicResource DataTemplate1}" />
        <Button Width="91"
                Height="23"
                Margin="12,12,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="AddButton_Click"
                Content="浏览图片附件" />
        <Button Width="75"
                Height="23"
                Margin="0,315,98,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Click="CancelButton_Click"
                Content="取消" />
        <Button Width="75"
                Height="23"
                Margin="0,315,12,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Click="SubmitButton_Click"
                Content="确定" />
    </Grid>
</dhcc:TradePage>
