AddTask.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Page x:Class="ROGOZ.Pages.AddTask"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ROGOZ.Pages"
  7. mc:Ignorable="d"
  8. d:Height="620" d:Width="750"
  9. Title="AddTask">
  10. <Grid>
  11. <StackPanel HorizontalAlignment="Center" Height="600" Width="750">
  12. <Label Style="{StaticResource LabelStyle}" HorizontalAlignment="Center">
  13. Добавление задачи
  14. </Label>
  15. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" Height="370" Width="750" Margin="0,20,0,0">
  16. <StackPanel Orientation="Horizontal" Width="750" Margin="0,15,0,0">
  17. <TextBlock Text="Задача:" Style="{StaticResource BlockHeader}" HorizontalAlignment="Left" FontSize="35"/>
  18. <TextBox x:Name="TaskName" Width="450" Height="35" Margin="135,0,0,0" Style="{StaticResource TextBoxStyle}"/>
  19. </StackPanel>
  20. <Separator Background="{x:Null}" Height="15"/>
  21. <StackPanel Orientation="Horizontal" Width="750" Margin="0,15,0,0">
  22. <TextBlock Text="Статус:" Style="{StaticResource BlockHeader}" HorizontalAlignment="Left" FontSize="35"/>
  23. <ComboBox x:Name="StatusBox" Width="450" Height="35" Margin="142,0,0,0" SelectedItem="{Binding Status}"/>
  24. </StackPanel>
  25. <Separator Background="{x:Null}" Height="15"/>
  26. <StackPanel Orientation="Horizontal" Width="750" Margin="0,15,0,0">
  27. <TextBlock Text="Исполнитель:" Style="{StaticResource BlockHeader}" HorizontalAlignment="Left" FontSize="35"/>
  28. <ComboBox x:Name="ExecutorBox" Width="450" Height="35" Margin="25,0,0,0" SelectedItem="{Binding Executor.User.MiddleName}"/>
  29. </StackPanel>
  30. <Separator Background="{x:Null}" Height="15"/>
  31. <StackPanel Orientation="Horizontal" Width="750" Margin="0,15,0,0">
  32. <TextBlock Text="Менеджер:" Style="{StaticResource BlockHeader}" HorizontalAlignment="Left" FontSize="35"/>
  33. <ComboBox x:Name="ManagerBox" Width="450" Height="35" Margin="83,0,0,0" SelectedItem="{Binding Manager.User.MiddleName}"/>
  34. </StackPanel>
  35. </StackPanel>
  36. <StackPanel Width="700" Height="70" Orientation="Horizontal" Margin="0,20">
  37. <Button Content="Отмена" Style="{StaticResource AuthoButtons}" Click="Button_Click"/>
  38. <Button Content="Сохранить" Style="{StaticResource AuthoButtons}" Margin="100,0,0,0"/>
  39. </StackPanel>
  40. </StackPanel>
  41. </Grid>
  42. </Page>