PageEditProduct.xaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <Page x:Class="WriteErase.ClassPages.PageEditProduct"
  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:WriteErase.ClassPages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageEditProduct"
  10. FontFamily="Comic Sans MS">
  11. <Grid Margin="15 10">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="*"/>
  15. <RowDefinition Height="Auto"/>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="*"/>
  19. <ColumnDefinition Width="Auto"/>
  20. </Grid.ColumnDefinitions>
  21. <Grid Grid.Row="0" Grid.ColumnSpan="2"
  22. Margin="0 0 0 15">
  23. <Button
  24. Name="btnBack"
  25. Content="Назад"
  26. HorizontalAlignment="Left"
  27. Click="btnBackClick"/>
  28. <TextBlock
  29. Name="tbkHeader"
  30. Text="Заголовок"
  31. HorizontalAlignment="Center"
  32. Style="{StaticResource Header}"/>
  33. <Button
  34. Name="btnSave"
  35. Content="Сохранить"
  36. HorizontalAlignment="Right"
  37. Click="btnSaveClick"/>
  38. </Grid>
  39. <ScrollViewer Grid.Row="1" Grid.Column="0" Margin="0 0 5 0"
  40. ScrollViewer.VerticalScrollBarVisibility="Auto">
  41. <Grid
  42. HorizontalAlignment="Center">
  43. <Grid.RowDefinitions>
  44. <RowDefinition Height="Auto"/>
  45. <RowDefinition Height="Auto"/>
  46. <RowDefinition Height="Auto"/>
  47. <RowDefinition Height="Auto"/>
  48. <RowDefinition Height="Auto"/>
  49. <RowDefinition Height="Auto"/>
  50. <RowDefinition Height="Auto"/>
  51. <RowDefinition Height="Auto"/>
  52. <RowDefinition Height="Auto"/>
  53. </Grid.RowDefinitions>
  54. <Grid.ColumnDefinitions>
  55. <ColumnDefinition Width="Auto"/>
  56. <ColumnDefinition Width="*"/>
  57. </Grid.ColumnDefinitions>
  58. <TextBlock
  59. Text="Артикул"
  60. Grid.Column="0" Grid.Row="0"
  61. FontSize="16" Foreground="#498C51"/>
  62. <StackPanel Orientation="Horizontal"
  63. Grid.Column="1" Grid.Row="0">
  64. <TextBox Width="200"
  65. IsEnabled="False"
  66. Name="tbxArticle"/>
  67. <Button Name="btnGenerate" Style="{StaticResource Restart}" Click="GenerateClick"/>
  68. </StackPanel>
  69. <TextBlock
  70. Text="Наименование товара"
  71. Grid.Column="0" Grid.Row="1"
  72. FontSize="16" Foreground="#498C51"/>
  73. <TextBox
  74. Name="tbxName"
  75. Grid.Column="1" Grid.Row="1"/>
  76. <TextBlock
  77. Text="Описание"
  78. Grid.Column="0" Grid.Row="2"
  79. FontSize="16" Foreground="#498C51"/>
  80. <TextBox
  81. Name="tbxDescription"
  82. MinHeight="40" Height="Auto"
  83. TextWrapping="Wrap"
  84. Grid.Column="1" Grid.Row="2"/>
  85. <TextBlock
  86. Text="Категория"
  87. Grid.Column="0" Grid.Row="3"
  88. FontSize="16" Foreground="#498C51"/>
  89. <ComboBox
  90. Name="cbCategory"
  91. Grid.Column="1" Grid.Row="3"/>
  92. <TextBlock
  93. Text="Цена"
  94. Grid.Column="0" Grid.Row="4"
  95. FontSize="16" Foreground="#498C51"/>
  96. <TextBox
  97. Name="tbxCost"
  98. Grid.Column="1" Grid.Row="4"/>
  99. <TextBlock
  100. Text="Скидка"
  101. Grid.Column="0" Grid.Row="5"
  102. FontSize="16" Foreground="#498C51"/>
  103. <TextBox
  104. Name="tbxDiscount"
  105. Grid.Column="1" Grid.Row="5"/>
  106. <TextBlock
  107. Text="Производитель"
  108. Grid.Column="0" Grid.Row="6"
  109. FontSize="16" Foreground="#498C51"/>
  110. <ComboBox
  111. Name="cbManufactured"
  112. Grid.Column="1" Grid.Row="6"/>
  113. <TextBlock
  114. Text="Поставщик"
  115. Grid.Column="0" Grid.Row="7"
  116. FontSize="16" Foreground="#498C51"/>
  117. <ComboBox
  118. Name="cbSuplier"
  119. Grid.Column="1" Grid.Row="7"/>
  120. <TextBlock
  121. Text="Количество на складе"
  122. Grid.Column="0" Grid.Row="8"
  123. FontSize="16" Foreground="#498C51"/>
  124. <TextBox
  125. Name="tbxCount"
  126. Grid.Column="1" Grid.Row="8"/>
  127. </Grid>
  128. </ScrollViewer>
  129. <StackPanel
  130. Visibility="Collapsed"
  131. Orientation="Vertical"
  132. Margin="5 0 0 0"
  133. Grid.Row="1" Grid.Column="1">
  134. <Image
  135. Width="150" Height="150"
  136. Source="/Assets/picture.png"/>
  137. <Button
  138. Content="Добавить фото"/>
  139. </StackPanel>
  140. </Grid>
  141. </Page>