<Window x:Class="WPF控件_15_ListBox.MainWindow"
        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"
        Icon="public/003540AH4M72.jpg"
        Title="WPF控件_15_ListBox" Height="450" Width="800">
    <Grid>
        <ListBox>
            <ListBoxItem>绿色1</ListBoxItem>

            <ListBoxItem>绿色2</ListBoxItem>

            <ListBoxItem BorderBrush="OrangeRed">绿色</ListBoxItem>
            <ListBoxItem BorderBrush="Red" BorderThickness="5">
                <Image Source="public/003540AH4M72.jpg" Width="50" />
            </ListBoxItem>

            <ListBoxItem BorderBrush="Aqua" BorderThickness="5">
                <StackPanel>
                    <Label>是个图片</Label>
                    <Image Width="50" Source="public/003540AH4M72.jpg" />
                </StackPanel>
            </ListBoxItem>

            <ListBoxItem BorderBrush="Green" BorderThickness="5">
                <StackPanel Orientation="Horizontal">
                    <Image Width="50" Source="public/003540AH4M72.jpg" />
                    <Label VerticalAlignment="Center">好看的图片</Label>
                </StackPanel>
            </ListBoxItem>
        </ListBox>
    </Grid>
</Window>