AddEditItems.xaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <Window x:Class="WpfApp1.AddEdit.AddEditItems"
  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:WpfApp1.AddEdit"
  7. mc:Ignorable="d"
  8. Title="AddEditItems" Height="450" Width="800" FontSize="16">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*"/>
  12. <ColumnDefinition Width="*"/>
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="auto"/>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="auto"/>
  18. </Grid.RowDefinitions>
  19. <Label Content="{Binding GetHeader}" Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" FontSize="32"/>
  20. <ListView Height="auto" Grid.Row="1" ItemsSource="{Binding CurrentAgent}" HorizontalAlignment="Center" VerticalAlignment="Center">
  21. <ListView.ItemTemplate>
  22. <DataTemplate>
  23. <WrapPanel>
  24. <Label Content="Наименование" HorizontalAlignment="Center"/>
  25. <TextBox Width="150" Text="{Binding Title}"/>
  26. <Label Content="Тип агента" HorizontalAlignment="Center"/>
  27. <ComboBox Width="150" ItemsSource="{Binding}" SelectedItem="{Binding AgentType.Title}"/>
  28. <Label Content="Приоритет" HorizontalAlignment="Center"/>
  29. <TextBox Width="150" Text="{Binding Priority}"/>
  30. <Label Content="Адрес" HorizontalAlignment="Center"/>
  31. <TextBox Width="150" Text="{Binding Address}"/>
  32. <Label Content="ИНН" HorizontalAlignment="Center"/>
  33. <TextBox Width="150" Text="{Binding INN}"/>
  34. <Label Content="КПП" HorizontalAlignment="Center"/>
  35. <TextBox Width="150" Text="{Binding KPP}"/>
  36. <Label Content="Имя директора" HorizontalAlignment="Center"/>
  37. <TextBox Width="150" Text="{Binding DirectorName}"/>
  38. <Label Content="Телефон" HorizontalAlignment="Center"/>
  39. <TextBox Width="150" Text="{Binding Phone}"/>
  40. <Label Content="Email" HorizontalAlignment="Center"/>
  41. <TextBox Width="150" Text="{Binding Email}"/>
  42. </WrapPanel>
  43. </DataTemplate>
  44. </ListView.ItemTemplate>
  45. </ListView>
  46. <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Top">
  47. <Label Content="Логотип" HorizontalAlignment="Center"/>
  48. <Image Source="{Binding}" Height="200"/>
  49. <Button Content="{Binding}"/>
  50. </StackPanel>
  51. <Button Content="{Binding}" Grid.Row="2"/>
  52. </Grid>
  53. </Window>