12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <Page x:Class="school.pageEditServiseImage"
- 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:school"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="pageEditServiseImage">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="5">
- <StackPanel Orientation="Horizontal">
- <Button Name="BtnBack" Click="BtnBackClick" Style="{StaticResource usuallyButtonNoFill}" FontSize="15" Width="80">Назад</Button>
- <TextBlock Name="TBHeader" Style="{StaticResource usuallyTextBlockHeader}" FontSize="20" Margin="25 2">Дополнительные изображения</TextBlock>
- </StackPanel>
- <Button Name="BtnAdd" Click="BtnAddClick" HorizontalAlignment="Right" Style="{StaticResource usuallyButtonFill}">Добавить фото</Button>
- </Grid>
- <Grid Grid.Row="1" Margin="7">
- <ListView Name="LVImageService" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Padding="5" BorderThickness="0">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel HorizontalAlignment="Left"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border CornerRadius="5" BorderBrush="{StaticResource attentionColor}" BorderThickness="2">
- <StackPanel Margin="5">
- <Image Name="ImgService" Source="{Binding Img}" Width="150" Height="150" Margin="5"/>
- <Button Name="BtnDelete" Click="BtnDeleteClick" Style="{StaticResource usuallyButtonFill}" Uid="{Binding ID}">Удалить</Button>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <TextBlock Name="TBNoPhoto" Style="{StaticResource usuallyTextBlockHeader}" FontSize="35">Нет дополнительных фото</TextBlock>
- </Grid>
- </Grid>
- </Page>
|