Browse Source

-,kf ,fkfkfkmfs

СазоноваАА 10 months ago
parent
commit
5a904aa401
1 changed files with 5 additions and 3 deletions
  1. 5 3
      Practikaoy/Views/MeRoom.axaml

+ 5 - 3
Practikaoy/Views/MeRoom.axaml

@@ -1,8 +1,10 @@
 <UserControl xmlns="https://github.com/avaloniaui"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+			   xmlns:vm="using:Practikaoy.ViewModels"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+			 x:DataType="vm:MainWindowViewModel"
              x:Class="Practikaoy.Views.MeRoom">
 	<Grid>
 		<TextBlock Foreground="#592321" FontSize="18" Margin="4" HorizontalAlignment="Center">Добро пожаловать в личный кабинет :)</TextBlock>
@@ -11,7 +13,7 @@
 				
 				<TextBlock Text="Фамилия"  FontSize="18" Margin="-7 3 9 2" >
 				</TextBlock>
-				<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"/>
+				<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"/>
 				
 				<TextBlock Text="Имя" FontSize="18" Margin="-7 0 -2 -6" >
 				</TextBlock>
@@ -27,7 +29,7 @@
 				<CheckBox Margin="370 -60 -1 30" Content="Хотите изменить пароль? ;)" IsChecked="{Binding MeRoom.UserisChanged}"></CheckBox>
 				<StackPanel Margin="2" IsVisible ="{Binding MeRoom.UserisChangedEnd}">
 				<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" />
-				<TextBox Background="#fae1dd" Watermark="Повторите пароль" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Right"  BorderBrush="#ff686b" BorderThickness="2" Height="10" />
+				<TextBox Background="#fae1dd" IsEnabled="{Binding MeRoom.UserisChanged}" Watermark="Повторите пароль" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Right"  BorderBrush="#ff686b" BorderThickness="2" Height="10" />
 			</StackPanel>
 				
 				<TextBlock Text="Пол" FontSize="18" Margin="-7 -70 -2 -6">
@@ -36,7 +38,7 @@
 				
 				<TextBlock Text="Дата рождения" FontSize="18"  Margin="-7 -40 -2 -6" >
 				</TextBlock>
-				<DatePicker IsEnabled="{Binding MeRoom.UserisChanged}" Text = "{Binding MeRoom.UserIS.BrDay}"  Background="#fae1dd" Width="310" FontSize="15" CornerRadius="5"  HorizontalAlignment="Left"  BorderBrush="#ff686b" BorderThickness="2" Height="27" Margin="0 -10 0 7"/>
+				<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"/>
 				
 				<TextBlock Text="Стаж (в годах)" FontSize="18">
 				</TextBlock>