MainAnimalPage.xaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Page x:Class="TamagochiProject.Pages.MainAnimalPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:TamagochiProject.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="MainAnimalPage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="70"/>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Left">
  16. <Button Name="btnExite" Content="Выход" Margin="20 0 0 0" Width="100" Click="btnExite_Click"/>
  17. </StackPanel>
  18. <StackPanel Grid.Row="1" Orientation="Horizontal">
  19. <StackPanel Margin="20 0 0 0" Width="200" VerticalAlignment="Center">
  20. <Button Name="btnFeed" Margin="0 30 0 0" Content="Покормить" Click="btnFeed_Click"/>
  21. <Button Name="btnHeal" Margin="0 30 0 0" Content="Полечить" Click="btnHeal_Click"/>
  22. <Button Name="btnPlay" Margin="0 30 0 0" Content="Поиграть" Click="btnPlay_Click"/>
  23. </StackPanel>
  24. <StackPanel Name="Content" Width="400" VerticalAlignment="Center" HorizontalAlignment="Center">
  25. <TextBlock Name="tbNameAnimal" Text="{Binding Name}" TextAlignment="Center"/>
  26. <Image Margin="0 20 0 0" Name="ImageAnimal" Source="{Binding Image}" Width="200" Height="200"/>
  27. </StackPanel>
  28. <StackPanel Margin="0 0 20 0" Width="150" VerticalAlignment="Center" HorizontalAlignment="Center">
  29. <StackPanel Orientation="Horizontal">
  30. <TextBlock Text="Сытость: "/>
  31. <TextBlock Name="tbSatiety" Text="{Binding Satiety}"/>
  32. </StackPanel>
  33. <StackPanel Orientation="Horizontal">
  34. <TextBlock Text="Здоровье: "/>
  35. <TextBlock Name="tbHealth" Text="{Binding Health}"/>
  36. </StackPanel>
  37. <StackPanel Orientation="Horizontal">
  38. <TextBlock Text="Счастье: "/>
  39. <TextBlock Name="tbHappy" Text="{Binding Happy}"/>
  40. </StackPanel>
  41. </StackPanel>
  42. </StackPanel>
  43. </Grid>
  44. </Page>