MainWindow.xaml 1.74 KB
Newer Older
M1888's avatar
M1888 committed
1 2 3 4 5 6 7 8 9
<Window x:Class="Lottokone.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:Lottokone"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
M1888's avatar
M1888 committed
10
        <StackPanel Orientation="Horizontal">
M1888's avatar
M1888 committed
11 12 13 14 15 16
            <StackPanel>
                <Button x:Name="btnNext" Content="Seuraava viikko" Click="btnNext_Click"/>
                <Button x:Name="btnStart" Content="Käynnistä" Click="btnStart_Click"/>
                <Button x:Name="btnStop" Content="Pysäytä" Click="btnStop_Click"/>
                <Button x:Name="btnSettings" Content="Asetukset" Click="btnSettings_Click" Margin="0,50,0,0"/>
            </StackPanel>
M1888's avatar
M1888 committed
17 18 19 20 21 22
            <StackPanel x:Name="spLotto" Width="250">
                <Label Content="Vuosi:"/>
                <Label Content="{Binding Vuosi}" />
                <Label Content="Viikko:"/>
                <Label Content="{Binding Viikko}" />
                <Label Content="Pelaajia:"/>
M1888's avatar
M1888 committed
23
                <Label Content="{Binding Pelaajamaara}"/>
M1888's avatar
M1888 committed
24 25 26 27 28 29 30
                <Label Content="Potti:"/>
                <Label Content="{Binding Potti}"/>
                <Label Content="Voittorivi:"/>
                <Label Content="{Binding Voittorivi}"/>
            </StackPanel>
            <StackPanel>
                <Label Content="Status:"/>
M1888's avatar
M1888 committed
31
                <ListView Height="350" Width="300" x:Name="lstStatus" ItemsSource="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
M1888's avatar
M1888 committed
32 33
            </StackPanel>
        </StackPanel>
M1888's avatar
M1888 committed
34 35
    </Grid>
</Window>