Browse Source

-- датапикер, не датапикерит

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

+ 14 - 14
Practikaoy/Views/MeRoom.axaml

@@ -9,46 +9,46 @@
 		<Border Background="#ffa69e" Height="395" Width="650" CornerRadius="15">
 			<StackPanel  Margin="16">
 				
-				<TextBlock Text="Фамилия" FontSize="18" Margin="-7 3 9 2" >
+				<TextBlock Text="Фамилия"  FontSize="18" Margin="-7 3 9 2" >
 				</TextBlock>
-				<TextBox 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>
-				<TextBox Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10"  BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="-290 -20 9 6"/>
+				<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"/>
 				
 				<TextBlock Text="Отчество" FontSize="18" Margin="-7 0 -2 -6">
 				</TextBlock>
-				<TextBox Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Right"  BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="0 -20 355 7"/>
+				<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"/>
 				
 				<TextBlock Text="Логин" FontSize="18" Margin="370 -90 -2 -6">
 				</TextBlock>
-				<TextBox Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Left"  BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="429 -159 0 0"/>
-				<CheckBox Margin="370 -60 -1 30" Content="Хотите изменить пароль? ;)"></CheckBox>
-				<StackPanel Margin="2">
-				<TextBox Background="#fae1dd" Watermark="Пароль" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Right"  BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="2" />
+				<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"/>
+				<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" />
 			</StackPanel>
 				
 				<TextBlock Text="Пол" FontSize="18" Margin="-7 -70 -2 -6">
 				</TextBlock>
-				<ComboBox Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Left"  BorderBrush="#ff686b" BorderThickness="2" Height="10" Margin="35 -77 0 7"/>
+				<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"/>
 				
 				<TextBlock Text="Дата рождения" FontSize="18"  Margin="-7 -40 -2 -6" >
 				</TextBlock>
-				<DatePicker  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}" 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"/>
 				
 				<TextBlock Text="Стаж (в годах)" FontSize="18">
 				</TextBlock>
-				<TextBox Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Left"  BorderBrush="#ff686b" BorderThickness="2" Height="10"/>
+				<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"/>
 				
 				<TextBlock Text="Почта" FontSize="18">
 				</TextBlock>
-				<TextBox Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Left"  BorderBrush="#ff686b" BorderThickness="2" Height="10"/>
+				<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"/>
 				
-				<TextBlock Text="Телефон (если телефон отсутствует, то поле не заполняйте!!)" FontSize="18">
+				<TextBlock Text="Телефон (если телефон отсутствует, то поле не заполняйте!!(для корректной работы))" FontSize="18">
 				</TextBlock>
-				<TextBox Background="#fae1dd" Width="180" FontSize="15" CornerRadius="10"  HorizontalAlignment="Left"  BorderBrush="#ff686b" BorderThickness="2" Height="10"/>
+				<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"/>