MainWindow.xaml 3.29 KB
Newer Older
M1888's avatar
M1888 committed
1 2 3 4 5 6 7
<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"
M1888's avatar
M1888 committed
8
        Title="Lottokone" Height="450" Width="960" Background="Black">
M1888's avatar
M1888 committed
9
    <StackPanel Orientation="Horizontal">
M1888's avatar
M1888 committed
10
        <StackPanel Margin="5,10,5,0">
M1888's avatar
M1888 committed
11 12 13 14
            <Button x:Name="btnNext" Margin="0,5,0,0" Content="Seuraava viikko" Click="btnNext_Click"/>
            <Button x:Name="btnStart" Margin="0,5,0,0" Content="Käynnistä" Click="btnStart_Click"/>
            <Button x:Name="btnStop" Margin="0,5,0,0" Content="Pysäytä" Click="btnStop_Click"/>
            <Button x:Name="btnSettings" Margin="0,50,0,0" Content="Asetukset" Click="btnSettings_Click" />
M1888's avatar
M1888 committed
15
            <Button x:Name="btnRikkaimmat" Margin="0,10,0,0" Content="Rikkaimmat" Click="BtnRikkaimmat_Click" />
M1888's avatar
M1888 committed
16 17
        </StackPanel>
        <StackPanel Height="400">
M1888's avatar
M1888 committed
18
            <StackPanel x:Name="spLotto" Width="250" Background="White" Opacity="0.7" VerticalAlignment="Top">
M1888's avatar
M1888 committed
19 20 21
                <Label Style="{StaticResource Isompi}" Content="{Binding Vuosi}" ContentStringFormat="Vuosi: {0}"/>
                <Label Style="{StaticResource Isompi}" Content="{Binding Viikko}" ContentStringFormat="Viikko: {0}"/>
                <Label Style="{StaticResource Isompi}" Content="{Binding Rivimaara}" ContentStringFormat="Rivejä: {0:N0}"/>
M1888's avatar
M1888 committed
22
                <Label Style="{StaticResource Isompi}" Content="{Binding Voitot[0]}" ContentStringFormat="Päävoitto: {0:C0}"/>
M1888's avatar
M1888 committed
23 24
                <Label Style="{StaticResource Isompi}">Voittorivi:</Label>
                <Label Style="{StaticResource Isompi}" Content="{Binding Voittorivi}" />
M1888's avatar
M1888 committed
25
            </StackPanel>
M1888's avatar
M1888 committed
26 27 28 29 30 31 32
            <Image x:Name="imgLotto" Width="250" Height="300" HorizontalAlignment="Left" VerticalAlignment="Bottom" Source="Resources/lotto0.png"/>
        </StackPanel>
        <StackPanel>
            <Label Style="{StaticResource Isompi}" Foreground="White" Content="Status:"/>
            <ListView Height="350" Width="300" x:Name="lstStatus" ItemsSource="{Binding Value, UpdateSourceTrigger=PropertyChanged}" Opacity="0.7"/>
        </StackPanel>
        <StackPanel>
M1888's avatar
M1888 committed
33
            <StackPanel x:Name="spPlayer" Width="300" Margin="5,0,0,0" Background="White" Opacity="0.7">
M1888's avatar
M1888 committed
34 35
                <Label Style="{StaticResource Isompi}" Content="{Binding Nimi}" ContentStringFormat="Nimi: {0}" />
                <Label Style="{StaticResource Isompi}" Content="{Binding Riveja}" ContentStringFormat="Rivejä: {0:N0}" />
M1888's avatar
M1888 committed
36 37
                <Label Style="{StaticResource Isompi}" Content="{Binding Saldo}" ContentStringFormat="Tilin saldo: {0:C0}" />
                <Label Style="{StaticResource Isompi}" Content="{Binding Voitot}" ContentStringFormat="Voitot yhteensä: {0:C0}" />
M1888's avatar
M1888 committed
38
            </StackPanel>
M1888's avatar
M1888 committed
39 40 41 42
            <StackPanel Width="300">
                <Label Style="{StaticResource Isompi}" Foreground="White" Content="Omat voitot:" Margin="0,100,0,0"/>
                <ListView x:Name="lstVoitot" Height="180" Width="300" Opacity="0.7">
                </ListView>
M1888's avatar
M1888 committed
43 44
            </StackPanel>
        </StackPanel>
M1888's avatar
M1888 committed
45
    </StackPanel>
M1888's avatar
M1888 committed
46
</Window>