ListServices.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <Page x:Class="Услуги_школы_иностранных_языков.ListServices"
  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:Услуги_школы_иностранных_языков"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="ListServices">
  10. <Page.Resources>
  11. <DataTemplate x:Key="TemplateMainList">
  12. <Border BorderBrush="Black" BorderThickness="1" Width="800" Height="200">
  13. <StackPanel Orientation="Horizontal">
  14. <Image Source="{Binding MainImagePath}"></Image>
  15. <StackPanel Orientation="Vertical">
  16. <TextBlock Text="{Binding Title}"></TextBlock>
  17. <StackPanel Orientation="Horizontal">
  18. <TextBlock Text="{Binding Cost}"></TextBlock>
  19. <TextBlock Text=" рублей за "></TextBlock>
  20. <TextBlock Text="{Binding DurationInMinutes}"></TextBlock>
  21. <TextBlock Text=" минут"></TextBlock>
  22. </StackPanel>
  23. <StackPanel Orientation="Horizontal">
  24. <TextBlock Text="{Binding MyStringDiscount}"></TextBlock>
  25. </StackPanel>
  26. </StackPanel>
  27. </StackPanel>
  28. </Border>
  29. </DataTemplate>
  30. </Page.Resources>
  31. <Grid>
  32. <Grid.RowDefinitions>
  33. <RowDefinition/>
  34. <RowDefinition Height="4*"/>
  35. </Grid.RowDefinitions>
  36. <ListBox x:Name="ListBoxServices" ItemTemplate="{StaticResource TemplateMainList}" Grid.Row="1"></ListBox>
  37. </Grid>
  38. </Page>