pageEditServiseImage.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Page x:Class="school.pageEditServiseImage"
  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:school"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="pageEditServiseImage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"></RowDefinition>
  13. <RowDefinition></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <Grid Grid.Row="0" Margin="5">
  16. <StackPanel Orientation="Horizontal">
  17. <Button Name="BtnBack" Click="BtnBackClick" Style="{StaticResource usuallyButtonNoFill}" FontSize="15" Width="80">Назад</Button>
  18. <TextBlock Name="TBHeader" Style="{StaticResource usuallyTextBlockHeader}" FontSize="20" Margin="25 2">Дополнительные изображения</TextBlock>
  19. </StackPanel>
  20. <Button Name="BtnAdd" Click="BtnAddClick" HorizontalAlignment="Right" Style="{StaticResource usuallyButtonFill}">Добавить фото</Button>
  21. </Grid>
  22. <Grid Grid.Row="1" Margin="7">
  23. <ListView Name="LVImageService" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Padding="5" BorderThickness="0">
  24. <ListView.ItemsPanel>
  25. <ItemsPanelTemplate>
  26. <WrapPanel HorizontalAlignment="Left"></WrapPanel>
  27. </ItemsPanelTemplate>
  28. </ListView.ItemsPanel>
  29. <ListView.ItemTemplate>
  30. <DataTemplate>
  31. <Border CornerRadius="5" BorderBrush="{StaticResource attentionColor}" BorderThickness="2">
  32. <StackPanel Margin="5">
  33. <Image Name="ImgService" Source="{Binding Img}" Width="150" Height="150" Margin="5"/>
  34. <Button Name="BtnDelete" Click="BtnDeleteClick" Style="{StaticResource usuallyButtonFill}" Uid="{Binding ID}">Удалить</Button>
  35. </StackPanel>
  36. </Border>
  37. </DataTemplate>
  38. </ListView.ItemTemplate>
  39. </ListView>
  40. <TextBlock Name="TBNoPhoto" Style="{StaticResource usuallyTextBlockHeader}" FontSize="35">Нет дополнительных фото</TextBlock>
  41. </Grid>
  42. </Grid>
  43. </Page>