AddingEditingService.xaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <UserControl x:Class="LearnPodg.AddingEditingService"
  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:LearnPodg"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Background="white" FontFamily="Comic Sans MS">
  10. <Border Padding="10">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="auto"/>
  14. <RowDefinition/>
  15. <RowDefinition/>
  16. <RowDefinition/>
  17. <RowDefinition/>
  18. <RowDefinition/>
  19. <RowDefinition/>
  20. <RowDefinition/>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition/>
  24. <ColumnDefinition Width="20"/>
  25. <ColumnDefinition/>
  26. </Grid.ColumnDefinitions>
  27. <TextBlock Name="UCLabel"
  28. Text="Добавление сервиса"
  29. Margin="0 10 0 15"
  30. FontWeight="Bold"
  31. Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3"
  32. HorizontalAlignment="Center"/>
  33. <Button Width="30" Height="30" Content="X"
  34. Background="Red" Foreground="White"
  35. HorizontalAlignment="Left" Click="Button_Click"/>
  36. <GroupBox Header="Название" Grid.Row="1">
  37. <TextBox BorderThickness="0" Name="TBTitle"/>
  38. </GroupBox>
  39. <GroupBox Header="Цена" Grid.Row="2">
  40. <TextBox BorderThickness="0" Name="TBCost"/>
  41. </GroupBox>
  42. <GroupBox Header="Скидка" Grid.Row="3">
  43. <TextBox BorderThickness="0" Name="TBDiscount"/>
  44. </GroupBox>
  45. <GroupBox Header="Длительность в секундах" Grid.Row="4">
  46. <TextBox BorderThickness="0" Name="TBDurationInSecond"/>
  47. </GroupBox>
  48. <GroupBox Header="Описание" Grid.Row="5" Grid.RowSpan="2">
  49. <TextBox BorderThickness="0" TextWrapping="Wrap" Name="TBDiscription"/>
  50. </GroupBox>
  51. <Image Grid.Column="2" Grid.Row="1" Grid.RowSpan="4" Name="ServiceImage"></Image>
  52. <GroupBox Name="GBID" Header="ID" Grid.Row="6" Grid.Column="2">
  53. <TextBlock Name="TBID"/>
  54. </GroupBox>
  55. <Button
  56. Margin="0 15 0 10" Width="200"
  57. Grid.Column="0" Grid.Row="7" Grid.ColumnSpan="3"
  58. HorizontalAlignment="Center">
  59. <TextBlock Text="Подтвердить"/>
  60. </Button>
  61. </Grid>
  62. </Border>
  63. </UserControl>