pageEditService.xaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <Page x:Class="school.pageEditService"
  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="pageEditService">
  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="BtnEdit" Click="BtnEditClick" Width="150" Style="{StaticResource usuallyButtonFill}" HorizontalAlignment="Right">Создать</Button>
  21. </Grid>
  22. <Grid Grid.Row="1" Margin="5">
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="200"></ColumnDefinition>
  25. <ColumnDefinition></ColumnDefinition>
  26. </Grid.ColumnDefinitions>
  27. <Grid Grid.Column="0" Margin="5 0">
  28. <StackPanel>
  29. <Image Name="ImgService" Source="\Resource\noPhoto.png" Width="150" Height="150" Stretch="Uniform" VerticalAlignment="Top" Margin="10"/>
  30. <Button Name="BtnAddImage" Click="BtnAddImageClick" Style="{StaticResource usuallyButton}" Margin="10" >Выбрать главное фото</Button>
  31. <Button Name="BtnAddOtherImage" Click="BtnAddOtherImageClick" Style="{StaticResource usuallyButton}" Margin="10 -5">Дополнительное фото</Button>
  32. </StackPanel>
  33. </Grid>
  34. <Grid Grid.Column="1" Margin="15 0">
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="60"></RowDefinition>
  37. <RowDefinition Height="60"></RowDefinition>
  38. <RowDefinition Height="50"></RowDefinition>
  39. <RowDefinition Height="50"></RowDefinition>
  40. <RowDefinition Height="50"></RowDefinition>
  41. </Grid.RowDefinitions>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="Auto"></ColumnDefinition>
  44. <ColumnDefinition Width="Auto"></ColumnDefinition>
  45. <ColumnDefinition Width="Auto"></ColumnDefinition>
  46. </Grid.ColumnDefinitions>
  47. <TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource usuallyTextBlock}" HorizontalAlignment="Right">Название</TextBlock>
  48. <TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource usuallyTextBlock}" HorizontalAlignment="Right">Описание</TextBlock>
  49. <TextBlock Grid.Row="2" Grid.Column="0" Style="{StaticResource usuallyTextBlock}" HorizontalAlignment="Right" VerticalAlignment="Center" >Стоимость</TextBlock>
  50. <TextBlock Grid.Row="3" Grid.Column="0" Style="{StaticResource usuallyTextBlock}" HorizontalAlignment="Right" VerticalAlignment="Center" >Скидка</TextBlock>
  51. <TextBlock Grid.Row="4" Grid.Column="0" Style="{StaticResource usuallyTextBlock}" HorizontalAlignment="Right" VerticalAlignment="Center" >Длительность</TextBlock>
  52. <TextBox Name="TBNameService" Tag="Введите название" Grid.Row="0" Grid.Column="1" Style="{StaticResource usuallyTextBlox}" HorizontalAlignment="Left" Margin="10 5 0 5"/>
  53. <TextBox Name="TBDescriptionService" Tag="Введите описание" Grid.Row="1" Grid.Column="1" Style="{StaticResource usuallyTextBlox}" HorizontalAlignment="Left" Margin="10 5"/>
  54. <TextBox Name="TBPriceService" Tag="Введите стоимость" Grid.Row="2" Grid.Column="1" Style="{StaticResource usuallyTextBlox}" Height="25" HorizontalAlignment="Left" Margin="10 0"/>
  55. <TextBox Name="TBDiscountService" Tag="Введите скидку" Grid.Row="3" Grid.Column="1" Style="{StaticResource usuallyTextBlox}" Height="25" HorizontalAlignment="Left" Margin="10 0"/>
  56. <TextBox Name="TBTimeServise" Tag="Введите длительность в мин." Grid.Row="4" Grid.Column="1" Style="{StaticResource usuallyTextBlox}" Height="25" HorizontalAlignment="Left" Margin="10 0"/>
  57. <TextBlock Grid.Row="2" Grid.Column="2" Style="{StaticResource usuallyTextBlock}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0 10">₽</TextBlock>
  58. <TextBlock Grid.Row="3" Grid.Column="2" Style="{StaticResource usuallyTextBlock}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0 10">%</TextBlock>
  59. <TextBlock Grid.Row="4" Grid.Column="2" Style="{StaticResource usuallyTextBlock}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0 10">минут</TextBlock>
  60. </Grid>
  61. </Grid>
  62. </Grid>
  63. </Page>