<Window x:Class="WPF_24_Controls.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"
        xmlns:wpf24Controls="clr-namespace:WPF_24_Controls"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="20" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="20" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Column="1" Grid.Row="1" FontSize="36" Text="WPF Super Demo" Grid.ColumnSpan="3"
                   Margin="0 0 0 10" />
        <TextBlock Grid.Column="1" Grid.Row="2" FontWeight="SemiBold" Text="First Name" FontFamily="Segoe UI" />
        <TextBlock Grid.Column="2" Grid.Row="2" Name="FirstNameTextBlock" Width="150" />

        <Button Name="SubmitButton" Content="Run Me" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" Margin="10"
                Click="SubmitButton_OnClick" />

        <ComboBox Grid.Column="1" Grid.Row="4" Name="ComboBox">
            <ComboBox.ItemTemplate>
                <DataTemplate DataType="wpf24Controls:Person">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="Assets/java-big.png" />
                        <TextBlock Text="{Binding FirstName}" />
                        <TextBlock Text=" " />
                        <TextBlock Text="{Binding LastName}" />
                    </StackPanel>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <!-- <Image Grid.Row="1" Grid.Column="4" Grid.RowSpan="6" Source="Assets/java-big.png" /> -->
        <!-- <MediaElement Grid.Row="1" Grid.Column="4" Source="F:\媒体\电影\2025\编号17-免费在线观看-爱壹帆国际版.ts" /> -->

        <StackPanel Grid.Row="1" Grid.Column="4" Grid.RowSpan="6" Orientation="Horizontal">
            <Image MaxWidth="200" MaxHeight="200" Source="Assets/java-big.png" />
            <Image MaxWidth="200" MaxHeight="200" Source="Assets/java-big.png" />
            <Image MaxWidth="200" MaxHeight="200" Source="Assets/java-big.png" />
            <Image MaxWidth="200" MaxHeight="200" Source="Assets/java-big.png" />
        </StackPanel>
    </Grid>
</Window>