AddPage.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <Page x:Class="School.AddPage"
  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:MinHeight="500" d:MinWidth="800"
  9. Title="Добавление и изменение">
  10. <ScrollViewer>
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="45"/>
  14. <RowDefinition/>
  15. <RowDefinition/>
  16. <RowDefinition/>
  17. </Grid.RowDefinitions>
  18. <Grid Grid.Row="0">
  19. <TextBlock x:Name="Title" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource HeaderText}"/>
  20. </Grid>
  21. <Grid Grid.Row="1">
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition/>
  24. <ColumnDefinition/>
  25. </Grid.ColumnDefinitions>
  26. <StackPanel Grid.Column="0">
  27. <StackPanel>
  28. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  29. <Button Name="Back" Click="Back_Click" Visibility="Collapsed" IsEnabled="False" Template="{StaticResource ButtonInElement}">Назад</Button>
  30. <Image Margin="200, 0 , 0, 0" Name="ImageService" Source="../image/picture.png" Width="160" Height="140" ></Image>
  31. <Button Name="Next" Click="Next_Click" Visibility="Collapsed" Template="{StaticResource ButtonInElement}">Вперед</Button>
  32. </StackPanel>
  33. <Button Name="SavePhoto" Template="{StaticResource ButtonInElement}" Click="SavePhoto_Click" Visibility="Collapsed">Сохранить изображение</Button>
  34. <Button Name="AddPhoto" Template="{StaticResource ButtonInElement}" Click="AddPhoto_Click" Visibility="Visible">Добавить изображение</Button>
  35. <Button Name="AddPhotos" Template="{StaticResource ButtonInElement}" Click="AddPhotos_Click" Visibility="Visible" >Добавить изображения</Button>
  36. <Button Name="UpdatePhoto" Template="{StaticResource ButtonInElement}" Visibility="Collapsed" Click="UpdatePhoto_Click" >Заменить изображение</Button>
  37. <Button Name="DeletPhoto" Template="{StaticResource ButtonInElement}" Click="DeletPhoto_Click" Visibility="Collapsed">Удалить фотографию</Button>
  38. </StackPanel>
  39. </StackPanel>
  40. <StackPanel Grid.Column="1" >
  41. <StackPanel>
  42. <StackPanel>
  43. <TextBlock Name="IdService" Visibility="Collapsed"></TextBlock>
  44. <GroupBox Header="Название услуги">
  45. <TextBox Name="NameServices"></TextBox>
  46. </GroupBox>
  47. <GroupBox Header="Стоимость">
  48. <TextBox Name="PriceServices"></TextBox>
  49. </GroupBox>
  50. <GroupBox Header="Длительность услуги в минутах">
  51. <TextBox Name="TimeServices"></TextBox>
  52. </GroupBox>
  53. <GroupBox Header="Скидка">
  54. <TextBox Name="Sale"></TextBox>
  55. </GroupBox>
  56. </StackPanel>
  57. </StackPanel>
  58. </StackPanel>
  59. </Grid>
  60. <GroupBox Grid.Row="2" Header="Описание">
  61. <TextBox Name="Description"></TextBox>
  62. </GroupBox>
  63. <StackPanel Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Left">
  64. <Button Name="Add" Template="{StaticResource Button}" Click="Add_Click">Сохранить</Button>
  65. </StackPanel>
  66. <StackPanel Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right">
  67. <Button Name="Home" Template="{StaticResource Button}" Click="Home_Click">На главную</Button>
  68. </StackPanel>
  69. </Grid>
  70. </ScrollViewer>
  71. </Page>