JobStagesPanel.xaml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <UserControl x:Class="PRSDesktop.JobStagesPanel"
  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:syncfusion="http://schemas.syncfusion.com/wpf"
  7. xmlns:local="clr-namespace:PRSDesktop" xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:Behaviors="http://schemas.microsoft.com/xaml/behaviors"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <Grid x:Name="GanttGrid">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="*" />
  14. <RowDefinition Height="Auto" />
  15. </Grid.RowDefinitions>
  16. <syncfusion:GanttControl
  17. x:Name="Gantt"
  18. Grid.Row="0"
  19. VisualStyle="Metro"
  20. GridWidth="490"
  21. ChartWidth="*"
  22. ScheduleRangePadding="0"
  23. TemplateApplied="Gantt_TemplateApplied"
  24. ValidationMode="Auto"
  25. RelationshipEstablished="Gantt_RelationshipEstablished"
  26. MouseDoubleClick="GanttGrid_MouseDoubleClick">
  27. <Behaviors:Interaction.Behaviors>
  28. <local:GanttSetupBehaviour />
  29. </Behaviors:Interaction.Behaviors>
  30. <syncfusion:GanttControl.ContextMenu>
  31. <ContextMenu x:Name="GanttContextMenu" Opened="GanttContextMenu_Opened">
  32. <MenuItem x:Name="EditTask" Header="Edit Task" Click="EditTask_Click" />
  33. <Separator />
  34. <MenuItem x:Name="UnlinkTaskMenu" Header="Unlink Task" Click="UnlinkTaskMenu_Click" />
  35. </ContextMenu>
  36. </syncfusion:GanttControl.ContextMenu>
  37. </syncfusion:GanttControl>
  38. <Grid Grid.Row="1" Margin="0,2,0,0">
  39. <Grid.ColumnDefinitions>
  40. <ColumnDefinition Width="Auto" />
  41. <ColumnDefinition Width="Auto" />
  42. <ColumnDefinition Width="Auto" />
  43. <ColumnDefinition Width="Auto" />
  44. <ColumnDefinition Width="Auto" />
  45. <ColumnDefinition Width="*" />
  46. <ColumnDefinition Width="Auto" />
  47. </Grid.ColumnDefinitions>
  48. <Button x:Name="AddStage" Grid.Column="0" Margin="0,0,2,0" Click="AddStage_Click" Height="30" Width="30"
  49. Padding="2" BorderBrush="Gray" />
  50. <Button x:Name="EditStage" Grid.Column="1" Margin="0,0,10,0" Click="EditStage_Click" Height="30" Width="30"
  51. Padding="2" BorderBrush="Gray" />
  52. <Button x:Name="ImportFile" Grid.Column="2" Margin="0,0,2,0" Click="ImportFile_Click" Height="30"
  53. Padding="2" BorderBrush="Gray">
  54. <StackPanel Orientation="Horizontal">
  55. <Image x:Name="ImportFileImage" />
  56. <Label Content="Import" />
  57. </StackPanel>
  58. </Button>
  59. <Button x:Name="ExportFile" Grid.Column="3" Margin="0,0,10,0" Click="ExportFile_Click" Height="30"
  60. Padding="2" BorderBrush="Gray">
  61. <StackPanel Orientation="Horizontal">
  62. <Image x:Name="ExportFileImage" />
  63. <Label Content="Export" />
  64. </StackPanel>
  65. </Button>
  66. <!--<Button x:Name="ExportStages" Grid.Column="4" Margin="10,0,2,0" Click="ExportStages_Click" Height="30" Width="50" Padding="2" Content="Export" BorderBrush="Gray"/>-->
  67. <Button x:Name="DeleteStage" Grid.Column="6" Margin="0,0,0,0" Click="DeleteStage_Click" Height="30"
  68. Width="30" Padding="2" BorderBrush="Gray" />
  69. </Grid>
  70. </Grid>
  71. </UserControl>