NewEmploee.xaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Window x:Class="WpfAppUI.View.WindowEmploee.NewEmploee"
  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. Language="ru-RU"
  9. Title="NewEmploee" Height="650" Width="400" WindowStartupLocation="CenterScreen">
  10. <Border Background="#B0A695">
  11. <Border Margin="10" Background="#EBE3D5" CornerRadius="10">
  12. <Grid Margin="20">
  13. <Label Content="Новый сотрудник" FontSize="20" HorizontalAlignment="Center"/>
  14. <StackPanel Margin="0,30,0,0" VerticalAlignment="Center" HorizontalAlignment="Center">
  15. <Label Content="Фамилия" FontSize="15"/>
  16. <TextBox Text="{Binding surnameInput}" Background="White" Width="300" FontSize="20"/>
  17. <Label Content="Имя" FontSize="15"/>
  18. <TextBox Text="{Binding nameInput}" Background="White" Width="300" FontSize="20"/>
  19. <Label Content="Отчество" FontSize="15"/>
  20. <TextBox Text="{Binding patronymicInput}" Background="White" Width="300" FontSize="20"/>
  21. <Label Content="Должность" FontSize="15"/>
  22. <ComboBox SelectedItem="{Binding SelectedPost}" ItemsSource="{Binding Posts}" DisplayMemberPath="Name" Background="White" Width="300" FontSize="20"/>
  23. <Label Content="Дата рождения" FontSize="15"/>
  24. <DatePicker Text="{Binding birthdayInput, Mode=TwoWay}" SelectedDateFormat="Short" Background="White" Width="300" FontSize="20"/>
  25. <Label Content="Номер телефона" FontSize="15"/>
  26. <TextBox Text="{Binding phoneInput}" Background="White" Width="300" FontSize="20"/>
  27. <Label Content="Почта" FontSize="15"/>
  28. <TextBox Text="{Binding mailInput}" Background="White" Width="300" FontSize="20"/>
  29. <Button Margin="0,30,0,0" Content="Создать" Command="{Binding Create}"/>
  30. </StackPanel>
  31. </Grid>
  32. </Border>
  33. </Border>
  34. </Window>