TaskPlannerControl.xaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. VisualStyle="Metro"
  33. GridWidth="490"
  34. ChartWidth="*"
  35. ScheduleRangePadding="0"
  36. TemplateApplied="Gantt_TemplateApplied"
  37. ValidationMode="Auto"
  38. RelationshipEstablished="Gantt_RelationshipEstablished">
  39. <!--<b:Interaction.Behaviors>
  40. <local:GanttSetupBehaviour />
  41. </b:Interaction.Behaviors>-->
  42. <syncfusion:GanttControl.ContextMenu>
  43. <ContextMenu x:Name="GanttContextMenu" Opened="GanttContextMenu_Opened">
  44. <MenuItem x:Name="EditTask" Header="Edit Task" Click="EditTask_Click" />
  45. <Separator />
  46. <MenuItem x:Name="UnlinkTaskMenu" Header="Unlink Task" Click="UnlinkTaskMenu_Click" />
  47. </ContextMenu>
  48. </syncfusion:GanttControl.ContextMenu>
  49. </syncfusion:GanttControl>
  50. <DockPanel Grid.Row="2" Margin="0,2,0,0">
  51. <Button DockPanel.Dock="Left" Content="Add Task" Padding="5,0,5,0" Margin="0,0,2,0" Height="30"
  52. Click="AddTask_Click" />
  53. <Button DockPanel.Dock="Left" Content="Edit Task" Padding="5,0,5,0" Margin="0,0,2,0" Height="30"
  54. Click="EditTask_Click" />
  55. <Button DockPanel.Dock="Right" Content="Calculate" Padding="5,0,5,0" Height="30" />
  56. <Label DockPanel.Dock="Left" Height="30" />
  57. </DockPanel>
  58. </Grid>
  59. </UserControl>