TaskPlannerControl.xaml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <UserControl
  2. x:Class="PRSDesktop.TaskPlannerControl"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto" />
  13. <RowDefinition Height="*" />
  14. <RowDefinition Height="Auto" />
  15. </Grid.RowDefinitions>
  16. <Border Grid.Row="0" Padding="5" BorderBrush="Gray" BorderThickness="0.75" CornerRadius="5,5,0,0"
  17. Margin="0,0,0,2">
  18. <DockPanel>
  19. <Button x:Name="TaskTypeButton" DockPanel.Dock="Left" Content="Task Type" VerticalContentAlignment="Center" Click="TaskTypeButton_OnClick"/>
  20. <ComboBox x:Name="SelectedType" DockPanel.Dock="Left" Width="200" SelectedValuePath="Key"
  21. DisplayMemberPath="Value" SelectionChanged="SelectedType_SelectionChanged"
  22. VerticalContentAlignment="Center" />
  23. <CheckBox x:Name="IncludeCompleted" Content="Include Complete" DockPanel.Dock="Right"
  24. IsThreeState="False" Checked="IncludeCompleted_Checked" Unchecked="IncludeCompleted_Checked"
  25. VerticalContentAlignment="Center" />
  26. <Label DockPanel.Dock="Left" />
  27. </DockPanel>
  28. </Border>
  29. <syncfusion:GanttControl
  30. x:Name="Gantt"
  31. Grid.Row="1"
  32. GridWidth="490"
  33. ChartWidth="*"
  34. ScheduleRangePadding="0"
  35. TemplateApplied="Gantt_TemplateApplied"
  36. ValidationMode="Auto"
  37. RelationshipEstablished="Gantt_RelationshipEstablished">
  38. <!--<b:Interaction.Behaviors>
  39. <local:GanttSetupBehaviour />
  40. </b:Interaction.Behaviors>-->
  41. <syncfusion:GanttControl.ContextMenu>
  42. <ContextMenu x:Name="GanttContextMenu" Opened="GanttContextMenu_Opened">
  43. <MenuItem x:Name="EditTask" Header="Edit Task" Click="EditTask_Click" />
  44. <Separator />
  45. <MenuItem x:Name="UnlinkTaskMenu" Header="Unlink Task" Click="UnlinkTaskMenu_Click" />
  46. </ContextMenu>
  47. </syncfusion:GanttControl.ContextMenu>
  48. </syncfusion:GanttControl>
  49. <DockPanel Grid.Row="2" Margin="0,2,0,0">
  50. <Button DockPanel.Dock="Left" Content="Add Task" Padding="5,0,5,0" Margin="0,0,2,0" Height="30"
  51. Click="AddTask_Click" />
  52. <Button DockPanel.Dock="Left" Content="Edit Task" Padding="5,0,5,0" Margin="0,0,2,0" Height="30"
  53. Click="EditTask_Click" />
  54. <Button DockPanel.Dock="Right" Content="Calculate" Padding="5,0,5,0" Height="30" />
  55. <Label DockPanel.Dock="Left" Height="30" />
  56. </DockPanel>
  57. </Grid>
  58. </UserControl>