AddEditPage.xaml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <Page x:Class="AutoservisDrive.Pages.AddEditPage"
  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:AutoservisDrive.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="AddEditPage">
  10. <Grid>
  11. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  12. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  13. <StackPanel Orientation="Horizontal">
  14. <StackPanel Orientation="Horizontal">
  15. <TextBlock Style="{StaticResource BlockHeader}" FontSize="16" FontFamily="Arial" Text="Название"/>
  16. <Separator Width="20" Background="{x:Null}" />
  17. <TextBox Name="TBoxTitle" Width="190"/>
  18. </StackPanel>
  19. </StackPanel>
  20. <Separator Height="10" Background="{x:Null}" />
  21. <StackPanel Orientation="Horizontal">
  22. <TextBlock Style="{StaticResource BlockHeader}" FontSize="16" FontFamily="Arial" Text="Стоимость"/>
  23. <Separator Width="20" Background="{x:Null}" />
  24. <TextBox Name="TBoxCost" Width="182"/>
  25. </StackPanel>
  26. <Separator Height="10" Background="{x:Null}" />
  27. <StackPanel Orientation="Horizontal">
  28. <TextBlock Style="{StaticResource BlockHeader}" FontSize="16" FontFamily="Arial" Text="Длит-сть (мин)"/>
  29. <Separator Width="20" Background="{x:Null}" />
  30. <TextBox Name="TBoxDuration" Width="150"/>
  31. </StackPanel>
  32. <Separator Height="10" Background="{x:Null}" />
  33. <StackPanel Orientation="Horizontal">
  34. <TextBlock Style="{StaticResource BlockHeader}" FontSize="16" FontFamily="Arial" Text="Описание"/>
  35. <Separator Width="20" Background="{x:Null}" />
  36. <TextBox Name="TBoxDescription" TextWrapping="Wrap" Height="115" Width="187"/>
  37. </StackPanel>
  38. <Separator Height="10" Background="{x:Null}" />
  39. <StackPanel Orientation="Horizontal">
  40. <TextBlock Style="{StaticResource BlockHeader}" FontSize="16" FontFamily="Arial" Text="Скидка"/>
  41. <Separator Width="20" Background="{x:Null}" />
  42. <TextBox Name="TBoxDiscount" Width="210"/>
  43. </StackPanel>
  44. <Separator Height="10" Background="{x:Null}" />
  45. </StackPanel>
  46. <StackPanel VerticalAlignment="Center">
  47. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1">
  48. <Border Margin="5" Height="175" Width="200" BorderBrush="#FFFF9D1A" BorderThickness="1">
  49. <Image Name="ImageService"/>
  50. </Border>
  51. <Button Height="30" Width="200" Margin="5" Name="BtnSelectImage" Click="BtnSelectImage_Click" Content="Выбрать фотографию" FontSize="14" Style="{StaticResource BackButton}"/>
  52. <Button Height="30" Width="200" Margin="5" Name="BtnSave" Click="BtnSave_Click" Content="Сохранить" FontSize="14" Style="{StaticResource BackButton}"/>
  53. </StackPanel>
  54. </StackPanel>
  55. </StackPanel>
  56. </Grid>
  57. </Page>