123456789101112131415161718192021222324252627 |
- <Window x:Class="Test.WindowRed"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Test"
- mc:Ignorable="d"
- Title="WindowRed" Height="450" Width="800" Icon="materials\Черновик.ico">
- <Grid>
- <Border>
- <StackPanel Orientation="Vertical">
- <TextBox x:Name="Title" Text="{Binding Title}"></TextBox> <!--не textbox, чтобы можно было изменить, биндим старые значения из БД-->
- <ComboBox x:Name="CB2"></ComboBox>
- <TextBox x:Name="CountInStock" Text="{Binding CountInStock}"></TextBox>
- <TextBox x:Name="Unit" Text="{Binding Unit}"></TextBox>
- <TextBox x:Name="CountInPack" Text="{Binding CountInPack}"></TextBox>
- <TextBox x:Name="MinCount" Text="{Binding MinCount}"></TextBox>
- <TextBox x:Name="Cost" Text="{Binding Cost}"></TextBox>
- <Image Width="50" Height="50" x:Name="img" Source="{Binding Image}"></Image>
- <Button Content="Добавить новое изображение" Click="Button_Click"></Button>
- <TextBox x:Name="Description" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Text="{Binding Description}"></TextBox>
- <Button Content="Сохранить изменения" Click="Button_Click_1"></Button>
- <Button Content="Удалить продукт" Click="Button_Click_2"></Button>
- </StackPanel>
- </Border>
- </Grid>
- </Window>
|