ChangeData.xaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <Page x:Class="BuzuevaDemo.Pages.ChangeData"
  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:BuzuevaDemo.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="550" d:DesignWidth="245"
  9. Title="ChangeData">
  10. <Grid>
  11. <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Center">
  12. <GroupBox Header="Наименование">
  13. <TextBox Text="{Binding Title}" x:Name="Title"/>
  14. </GroupBox>
  15. <GroupBox Header="Тип агента">
  16. <ComboBox x:Name="typeag"/>
  17. </GroupBox>
  18. <GroupBox Header="Приоритет">
  19. <TextBox Text="{Binding Priority}" x:Name="Priority"/>
  20. </GroupBox>
  21. <GroupBox Header="Адрес">
  22. <TextBox Text="{Binding Address}" x:Name="Address"/>
  23. </GroupBox>
  24. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  25. <GroupBox Header="ИНН">
  26. <TextBox Width="90" Text="{Binding INN}" x:Name="INN"/>
  27. </GroupBox>
  28. <GroupBox Header="КПП">
  29. <TextBox Width="90" Text="{Binding KPP}" x:Name="KPP"/>
  30. </GroupBox>
  31. </StackPanel>
  32. <GroupBox Header="Имя директора">
  33. <TextBox Text="{Binding DirectorName}" x:Name="DirectorName"/>
  34. </GroupBox>
  35. <GroupBox Header="Телефон">
  36. <TextBox Text="{Binding Phone}" x:Name="Phone"/>
  37. </GroupBox>
  38. <GroupBox Header="Email">
  39. <TextBox Text="{Binding Email}" x:Name="Email"/>
  40. </GroupBox>
  41. <Image Width="100" Height="100" Source="{Binding Logo}" x:Name="Logo"/>
  42. <Button Content="Внести изменения" Click="Perezapis" />
  43. <Button Content="Добавить изображение" Click="NewImage" Margin="0, 2" />
  44. <Button Content="Удалить запись" Margin="0, 1" />
  45. </StackPanel>
  46. </Grid>
  47. </Page>