ProductCard.xaml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Page x:Class="Sessioa.Pages.ProductCard"
  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:Sessioa.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="Карточка продукта"
  10. FontSize="16"
  11. FontFamily="Comic Sans MS">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="0.2"/>
  15. <RowDefinition Height="8*"/>
  16. <RowDefinition/>
  17. </Grid.RowDefinitions>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition/>
  20. <ColumnDefinition Width="4*"/>
  21. <ColumnDefinition/>
  22. </Grid.ColumnDefinitions>
  23. <Border BorderBrush="#76E383" BorderThickness="5" CornerRadius="30" Grid.Row="1" Grid.Column="1" Margin="60,5">
  24. <StackPanel Margin="40,0" VerticalAlignment="Center">
  25. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  26. <Button Name="BackIm" Content="&#60;" Style="{StaticResource ButtonAct}" Margin="0,0,50,0" MaxHeight="30" MinWidth="30" MaxWidth="50" Click="BackIm_Click"/>
  27. <Image Name="ImageProd" Source="/Resources/picture.png" MaxHeight="150" MinHeight="60"/>
  28. <Button Name="NextIm" Content=">" Style="{StaticResource ButtonAct}" Margin="50,0,0,0" MaxHeight="30" MinWidth="30" MaxWidth="50" Click="NextIm_Click"/>
  29. </StackPanel>
  30. <TextBox x:Name="TB_Articule" DataContext="Артикул" Style="{StaticResource TextBox}" Margin="5" MinHeight="40"/>
  31. <TextBox x:Name="TB_Title" DataContext="Название" Style="{StaticResource TextBox}" Margin="5" MinHeight="40"/>
  32. <TextBox x:Name="TB_Description" DataContext="Описание" Style="{StaticResource TextBox}" Margin="5" MinHeight="40" TextWrapping="Wrap"/>
  33. <TextBlock Text="Категория" Style="{StaticResource TextBlock}"/>
  34. <ComboBox Name="CategoryProd" Margin="5" MinHeight="40"/>
  35. <TextBlock Text="Производитель" Style="{StaticResource TextBlock}"/>
  36. <ComboBox Name="ManufacturedProd" Margin="5" MinHeight="40"/>
  37. <TextBlock Text="Поставщик" Style="{StaticResource TextBlock}"/>
  38. <ComboBox Name="ProviderProd" Margin="5" MinHeight="40"/>
  39. <TextBox x:Name="TB_Price" DataContext="Стоимость" Style="{StaticResource TextBox}" Margin="5" MinHeight="40"/>
  40. <TextBox x:Name="TB_Discount" DataContext="Скидка (%)" Style="{StaticResource TextBox}" Margin="5" MinHeight="40"/>
  41. <TextBox x:Name="TB_Count" DataContext="Колличество на складе" Style="{StaticResource TextBox}" Margin="5" MinHeight="40"/>
  42. </StackPanel>
  43. </Border>
  44. <StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" Orientation="Horizontal">
  45. <Button Name="BT_save" Content="Сохранить" Style="{StaticResource ButtonSt}" MaxHeight="50" Margin="20,0" Click="BT_save_Click"/>
  46. <Button Name="BT_Back" Content="Назад" Style="{StaticResource ButtonSt}" MaxHeight="50" MinWidth="100" Margin="20,0" Click="BT_Back_Click"/>
  47. </StackPanel>
  48. </Grid>
  49. </Page>