PageUserInfo.xaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Page x:Class="MyWpfApp.Pages.PageUserInfo"
  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:MyWpfApp.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageUserInfo">
  10. <Grid>
  11. <StackPanel>
  12. <TextBox Text="Информация о пользователе"/>
  13. <GroupBox Header="Имя">
  14. <TextBox Name="txtName" Text="{Binding UserTable.Name}"/>
  15. </GroupBox>
  16. <GroupBox Header="Фамилия">
  17. <TextBox Name="txtSurname" Text="{Binding UserTable.Surname}"/>
  18. </GroupBox>
  19. <GroupBox Header="Логин">
  20. <TextBox Text="{Binding LoginedTable.Login}"/>
  21. </GroupBox>
  22. <GroupBox Header="Пароль">
  23. <TextBox Text="{Binding Password}"/>
  24. </GroupBox>
  25. <GroupBox Header="Роль пользователя">
  26. <ComboBox Name="CBRoles" SelectedValue="{Binding LoginedTable.IDRole}"/>
  27. </GroupBox>
  28. <TextBlock x:Name="txtTitle" Text="Заголовок той страницы"/>
  29. <Button Template="{StaticResource Template1}" Content="{Binding Text,ElementName=txtTitle}"/>
  30. <Button Content="Сохранить изменения" Name="BtnSave" Click="BtnSave_Click"/>
  31. <Button Content="Назад" Name="BtnBack" Click="BtnBack_Click"/>
  32. </StackPanel>
  33. </Grid>
  34. </Page>