AddEditPage.xaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Page x:Class="WpfApp1.AddEditPage"
  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:WpfApp1"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="AddEditPage">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="200"/>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="32"/>
  17. <RowDefinition Height="32"/>
  18. <RowDefinition Height="32"/>
  19. <RowDefinition Height="32"/>
  20. <RowDefinition Height="32"/>
  21. <RowDefinition Height="64"/>
  22. </Grid.RowDefinitions>
  23. <TextBlock Text="Пароль" HorizontalAlignment="Center" Margin="4"/>
  24. <TextBlock Text="Фамилия" Grid.Row="1" HorizontalAlignment="Center" Margin="4"/>
  25. <TextBlock Text="Имя" Grid.Row="2" HorizontalAlignment="Center" Margin="4"/>
  26. <TextBlock Text="Отчество" Grid.Row="3" HorizontalAlignment="Center" Margin="4"/>
  27. <TextBlock Text="Логин" Grid.Row="4" HorizontalAlignment="Center" Margin="4"/>
  28. <TextBox Text="{Binding Password}" MaxLength="50" Grid.Column="1" Margin="4,4,70,4"/>
  29. <TextBox Text="{Binding FirstName}" MaxLength="100" Grid.Column="1" Grid.Row="1" Margin="4,4,70,4"/>
  30. <TextBox Text="{Binding MiddleName}" MaxLength="50" Grid.Column="1" Grid.Row="2" Margin="4,4,70,4"/>
  31. <TextBox Text="{Binding LastName}" MaxLength="100" Grid.Column="1" Grid.Row="3" Margin="4,4,70,4"/>
  32. <TextBox Text="{Binding Login}" MaxLength="15" Grid.Column="1" Grid.Row="4" Margin="4,4,500,4"/>
  33. <Button Content="Сохранить" Grid.ColumnSpan="2" Grid.Row="5" Name="BtnSave" Click="BtnSave_Click"></Button>
  34. </Grid>
  35. </Page>