EditEmploee.xaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <Window x:Class="WpfAppUI.View.WindowEmploee.EditEmploee"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfAppUI.View.WindowEmploee"
  7. mc:Ignorable="d"
  8. Title="NewEmploee" Height="650" Width="400" WindowStartupLocation="CenterScreen">
  9. <Border Background="#B0A695">
  10. <Border Margin="10" Background="#EBE3D5" CornerRadius="10">
  11. <Grid Margin="20">
  12. <Label Content="Редактировать данные" FontSize="20" HorizontalAlignment="Center"/>
  13. <StackPanel Margin="0,30,0,0" VerticalAlignment="Center" HorizontalAlignment="Center">
  14. <Label Content="Фамилия" FontSize="15"/>
  15. <TextBox Text="{Binding surnameInput}" Background="White" Width="300" FontSize="20"/>
  16. <Label Content="Имя" FontSize="15"/>
  17. <TextBox Text="{Binding nameInput}" Background="White" Width="300" FontSize="20"/>
  18. <Label Content="Отчество" FontSize="15"/>
  19. <TextBox Text="{Binding patronymicInput}" Background="White" Width="300" FontSize="20"/>
  20. <Label Content="Должность" FontSize="15"/>
  21. <ComboBox SelectedItem="{Binding SelectedPost}" ItemsSource="{Binding Posts}" DisplayMemberPath="Name" Background="White" Width="300" FontSize="20"/>
  22. <Label Content="Дата рождения" FontSize="15"/>
  23. <DatePicker Text="{Binding birthdayInput, Mode=TwoWay}" SelectedDateFormat="Short" Background="White" Width="300" FontSize="20"/>
  24. <Label Content="Номер телефона" FontSize="15"/>
  25. <TextBox Text="{Binding phoneInput}" Background="White" Width="300" FontSize="20"/>
  26. <Label Content="Почта" FontSize="15"/>
  27. <TextBox Text="{Binding mailInput}" Background="White" Width="300" FontSize="20"/>
  28. <Button Margin="0,30,0,0" Content="Сохранить" Command="{Binding Update}"/>
  29. </StackPanel>
  30. </Grid>
  31. </Border>
  32. </Border>
  33. </Window>