<Window x:Class="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:local="clr-namespace:RndPiCalc"
        mc:Ignorable="d"
        Title="MainWindow" SizeToContent="WidthAndHeight" Closing="Window_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <Button Margin="10" Name="BtnStart" Width="80" Click="BtnStart_Click">START</Button>
            <Label Margin="10">Total points:</Label>
            <TextBox Margin="10" Width="80" Name="TxtNumber">0</TextBox>
            <Label Margin="10">Pi Estimate:</Label>
            <TextBox Margin="10" Width="120" Name="TxtPiEstimate"></TextBox>
        </StackPanel>
        <Border Grid.Row="1" Margin="10" BorderBrush="Blue" BorderThickness="1">
            <Canvas Name="MyCanvas" Width="600" Height="600">
                <Image Name="Image1" Stretch="Fill"></Image>
            </Canvas>
        </Border>
    </Grid>
</Window>
