WindowRed.xaml 1.8 KB

123456789101112131415161718192021222324252627
  1. <Window x:Class="Test.WindowRed"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Test"
  7. mc:Ignorable="d"
  8. Title="WindowRed" Height="450" Width="800" Icon="materials\Черновик.ico">
  9. <Grid>
  10. <Border>
  11. <StackPanel Orientation="Vertical">
  12. <TextBox x:Name="Title" Text="{Binding Title}"></TextBox> <!--не textbox, чтобы можно было изменить, биндим старые значения из БД-->
  13. <ComboBox x:Name="CB2"></ComboBox>
  14. <TextBox x:Name="CountInStock" Text="{Binding CountInStock}"></TextBox>
  15. <TextBox x:Name="Unit" Text="{Binding Unit}"></TextBox>
  16. <TextBox x:Name="CountInPack" Text="{Binding CountInPack}"></TextBox>
  17. <TextBox x:Name="MinCount" Text="{Binding MinCount}"></TextBox>
  18. <TextBox x:Name="Cost" Text="{Binding Cost}"></TextBox>
  19. <Image Width="50" Height="50" x:Name="img" Source="{Binding Image}"></Image>
  20. <Button Content="Добавить новое изображение" Click="Button_Click"></Button>
  21. <TextBox x:Name="Description" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Text="{Binding Description}"></TextBox>
  22. <Button Content="Сохранить изменения" Click="Button_Click_1"></Button>
  23. <Button Content="Удалить продукт" Click="Button_Click_2"></Button>
  24. </StackPanel>
  25. </Border>
  26. </Grid>
  27. </Window>