PlayAnimalPage.xaml 1.4 KB

123456789101112131415161718192021222324252627
  1. <Page x:Class="TamagochiProject.Pages.PlayAnimalPage"
  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="PlayAnimalPage">
  10. <Grid>
  11. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical" Width="200">
  12. <ListBox Name="lbHappy">
  13. <ListBox.ItemTemplate>
  14. <DataTemplate>
  15. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  16. <TextBlock Name="tbActivity" Width="150" Text="{Binding Activity}"/>
  17. <TextBlock Name="tbCountHappy" Text="{Binding CountHappy}"/>
  18. </StackPanel>
  19. </DataTemplate>
  20. </ListBox.ItemTemplate>
  21. </ListBox>
  22. <Button Margin="0 10 0 0" Name="btnPlay" Content="Выполнить" Click="btnPlay_Click"/>
  23. <Button Margin="0 10 0 0" Name="btnReturn" Content="Назад" Click="btnReturn_Click"/>
  24. </StackPanel>
  25. </Grid>
  26. </Page>