123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <Page x:Class="TamagochiProject.Pages.MainAnimalPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:TamagochiProject.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="MainAnimalPage">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="70"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel VerticalAlignment="Center" HorizontalAlignment="Left">
- <Button Name="btnExite" Content="Выход" Margin="20 0 0 0" Width="100" Click="btnExite_Click"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <StackPanel Margin="20 0 0 0" Width="200" VerticalAlignment="Center">
- <Button Name="btnFeed" Margin="0 30 0 0" Content="Покормить" Click="btnFeed_Click"/>
- <Button Name="btnHeal" Margin="0 30 0 0" Content="Полечить" Click="btnHeal_Click"/>
- <Button Name="btnPlay" Margin="0 30 0 0" Content="Поиграть" Click="btnPlay_Click"/>
- </StackPanel>
- <StackPanel Name="Content" Width="400" VerticalAlignment="Center" HorizontalAlignment="Center">
- <TextBlock Name="tbNameAnimal" Text="{Binding Name}" TextAlignment="Center"/>
- <Image Margin="0 20 0 0" Name="ImageAnimal" Source="{Binding Image}" Width="200" Height="200"/>
- </StackPanel>
- <StackPanel Margin="0 0 20 0" Width="150" VerticalAlignment="Center" HorizontalAlignment="Center">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Сытость: "/>
- <TextBlock Name="tbSatiety" Text="{Binding Satiety}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Здоровье: "/>
- <TextBlock Name="tbHealth" Text="{Binding Health}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Счастье: "/>
- <TextBlock Name="tbHappy" Text="{Binding Happy}"/>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Page>
|