MainWindow.xaml 2.76 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 9 10 11
        Title="Lottokone" Height="450" Width="950">
    <Window.Background>
        <ImageBrush ImageSource="Resources/lotto.png" />
    </Window.Background>
M1888's avatar
M1888 committed
12
    <Grid>
M1888's avatar
M1888 committed
13
        <StackPanel Orientation="Horizontal">
M1888's avatar
M1888 committed
14 15 16 17 18
            <StackPanel Margin="0,10,0,0">
                <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
19
            </StackPanel>
M1888's avatar
M1888 committed
20
            <StackPanel x:Name="spLotto" Width="250">
M1888's avatar
M1888 committed
21 22 23 24 25 26
                <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}"/>
                <Label Style="{StaticResource Isompi}" Content="{Binding Potti}" ContentStringFormat="Potti: {0:C0}"/>
                <Label Style="{StaticResource Isompi}">Voittorivi:</Label>
                <Label Style="{StaticResource Isompi}" Content="{Binding Voittorivi}" />
M1888's avatar
M1888 committed
27 28
            </StackPanel>
            <StackPanel>
M1888's avatar
M1888 committed
29 30 31 32 33 34 35 36 37 38
                <Label Style="{StaticResource Isompi}" Content="Status:"/>
                <ListView Height="350" Width="300" x:Name="lstStatus" ItemsSource="{Binding Value, UpdateSourceTrigger=PropertyChanged}" Opacity="0.7"/>
            </StackPanel>
            <StackPanel x:Name="spPlayer" Width="300" Margin="5,0,0,0">
                <Label Style="{StaticResource Isompi}" Content="{Binding Nimi}" ContentStringFormat="Nimi: {0}" />
                <Label Style="{StaticResource Isompi}" Content="{Binding Saldo}" ContentStringFormat="Tilin saldo: {0:C0}" />
                <Label Style="{StaticResource Isompi}" Content="{Binding Riveja}" ContentStringFormat="Rivejä: {0:N0}" />
                <Label Style="{StaticResource Isompi}" 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
39 40
            </StackPanel>
        </StackPanel>
M1888's avatar
M1888 committed
41 42
    </Grid>
</Window>