MeRoom.axaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:Practikaoy.ViewModels"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:DataType="vm:MainWindowViewModel"
  8. x:Class="Practikaoy.Views.MeRoom">
  9. <Grid>
  10. <TextBlock Foreground="#592321" FontSize="18" Margin="4" HorizontalAlignment="Center">Добро пожаловать в личный кабинет :)</TextBlock>
  11. <Border Background="#ffa69e" Height="395" Width="650" CornerRadius="15">
  12. <StackPanel Margin="16">
  13. <TextBlock Text="Фамилия" FontSize="18" Margin="-7 3 9 2" >
  14. </TextBlock>
  15. <TextBox IsEnabled="{Binding MeRoom.UserisChanged}" Text="{Binding MeRoom.UserIS.Surname}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Left" BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="80 -30 9 6"/>
  16. <TextBlock Text="Имя" FontSize="18" Margin="-7 0 -2 -6" >
  17. </TextBlock>
  18. <TextBox IsEnabled="{Binding MeRoom.UserisChanged}" Text = "{Binding MeRoom.UserIS.Name}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="-290 -20 9 6"/>
  19. <TextBlock Text="Отчество" FontSize="18" Margin="-7 0 -2 -6">
  20. </TextBlock>
  21. <TextBox IsEnabled="{Binding MeRoom.UserisChanged}" Text = "{Binding MeRoom.UserIS.Patronimyc}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Right" BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="0 -20 355 7"/>
  22. <TextBlock Text="Логин" FontSize="18" Margin="370 -90 -2 -6">
  23. </TextBlock>
  24. <TextBox IsEnabled="{Binding MeRoom.UserisChanged}" Text="{Binding MeRoom.UserIS.Login}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Left" BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="429 -159 0 0"/>
  25. <CheckBox Margin="370 -60 -1 30" Content="Хотите изменить пароль? ;)" IsChecked="{Binding MeRoom.UserisChanged}"></CheckBox>
  26. <StackPanel Margin="2" IsVisible ="{Binding MeRoom.UserisChangedEnd}">
  27. <TextBox Background="#fae1dd" IsEnabled="{Binding MeRoom.UserisChanged}" Text="{Binding MeRoom.Passs}" Watermark="Пароль" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Right" BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="2" />
  28. <TextBox Background="#fae1dd" IsEnabled="{Binding MeRoom.UserisChanged}" Watermark="Повторите пароль" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Right" BorderBrush="#ff686b" BorderThickness="2" Height="10" />
  29. </StackPanel>
  30. <TextBlock Text="Пол" FontSize="18" Margin="-7 -70 -2 -6">
  31. </TextBlock>
  32. <ComboBox ItemsSource="{Binding MeRoom.GendersList}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Left" BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="35 -77 0 7"/>
  33. <TextBlock Text="Дата рождения" FontSize="18" Margin="-7 -40 -2 -6" >
  34. </TextBlock>
  35. <DatePicker IsEnabled="{Binding MeRoom.UserisChanged}" SelectedDate = "{Binding MeRoom.UserIS.User.BrDay}" Background="#fae1dd" Width="310" FontSize="15" CornerRadius="5" HorizontalAlignment="Left" BorderBrush="#ff686b" BorderThickness="2" Height="27" Margin="0 -10 0 7"/>
  36. <TextBlock Text="Стаж (в годах)" FontSize="18">
  37. </TextBlock>
  38. <TextBox IsEnabled="{Binding MeRoom.UserisChanged}" Text = "{Binding MeRoom.UserIS.Timer}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Left" BorderBrush="#ff686b" BorderThickness="2" Height="10"/>
  39. <TextBlock Text="Почта" FontSize="18">
  40. </TextBlock>
  41. <TextBox IsEnabled="{Binding MeRoom.UserisChanged}" Text = "{Binding MeRoom.UserIS.Email}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Left" BorderBrush="#ff686b" BorderThickness="2" Height="10"/>
  42. <TextBlock Text="Телефон (если телефон отсутствует, то поле не заполняйте!!(для корректной работы))" FontSize="18">
  43. </TextBlock>
  44. <TextBox IsEnabled="{Binding MeRoom.UserisChanged}" Text = "{Binding MeRoom.UserIS.Phone}" Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10" HorizontalAlignment="Left" BorderBrush="#ff686b" BorderThickness="2" Height="10"/>
  45. </StackPanel>
  46. </Border>
  47. </Grid>
  48. </UserControl>