C#C
C#14mo ago
Merineth

Troubleshooting xaml - initialize window

<Window x:Class="Othello.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Othello Game" Height="75" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" Margin="10" HorizontalAlignment="Center">
            <Button Content="Human vs Human" Width="150" Margin="5" Click="HumanVsHuman_Click"/>
            <Button Content="Human vs Computer" Width="150" Margin="5" Click="HumanVsComputer_Click"/>
            <Button Content="Computer vs Computer" Width="150" Margin="5" Click="ComputerVsComputer_Click"/>
        </StackPanel>

        <Grid Name="GameBoard" Grid.Row="1" Margin="10"
              HorizontalAlignment="Center" VerticalAlignment="Center">
        </Grid>
    </Grid>
</Window>
image.png
Was this page helpful?
Troubleshooting xaml - initialize window - C#