EditingMaterialWindow.xaml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <Window x:Class="wpf_connection3.Windows.EditingMaterialWindow"
  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:wpf_connection3.Windows"
  7. mc:Ignorable="d"
  8. Title="Добавление материала" Height="170" Width="400">
  9. <Grid>
  10. <StackPanel
  11. Orientation="Vertical"
  12. HorizontalAlignment="Center">
  13. <Label
  14. Content="Материал"/>
  15. <ComboBox
  16. Name="MaterialTypeComboBox"
  17. Width="200"
  18. ItemsSource="{Binding MaterialList}"
  19. SelectedIndex="0"/>
  20. <Label
  21. Content="Количество"/>
  22. <TextBox
  23. Width="200"
  24. Text="0"
  25. x:Name="CountTextBox"/>
  26. <Button
  27. Name="SaveButton"
  28. Content="Добавить материал"
  29. Margin="0,15"
  30. Click="SaveButton_Click"/>
  31. </StackPanel>
  32. </Grid>
  33. </Window>