1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <UserControl
- x:Class="PRSDesktop.TaskPlannerControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0" Padding="5" BorderBrush="Gray" BorderThickness="0.75" CornerRadius="5,5,0,0"
- Margin="0,0,0,2">
- <DockPanel>
- <Button x:Name="TaskTypeButton" DockPanel.Dock="Left" Content="Task Type" VerticalContentAlignment="Center" Click="TaskTypeButton_OnClick"/>
- <ComboBox x:Name="SelectedType" DockPanel.Dock="Left" Width="200" SelectedValuePath="Key"
- DisplayMemberPath="Value" SelectionChanged="SelectedType_SelectionChanged"
- VerticalContentAlignment="Center" />
- <CheckBox x:Name="IncludeCompleted" Content="Include Complete" DockPanel.Dock="Right"
- IsThreeState="False" Checked="IncludeCompleted_Checked" Unchecked="IncludeCompleted_Checked"
- VerticalContentAlignment="Center" />
- <Label DockPanel.Dock="Left" />
- </DockPanel>
- </Border>
- <syncfusion:GanttControl
- x:Name="Gantt"
- Grid.Row="1"
- VisualStyle="Metro"
- GridWidth="490"
- ChartWidth="*"
- ScheduleRangePadding="0"
- TemplateApplied="Gantt_TemplateApplied"
- ValidationMode="Auto"
- RelationshipEstablished="Gantt_RelationshipEstablished">
- <!--<b:Interaction.Behaviors>
- <local:GanttSetupBehaviour />
- </b:Interaction.Behaviors>-->
- <syncfusion:GanttControl.ContextMenu>
- <ContextMenu x:Name="GanttContextMenu" Opened="GanttContextMenu_Opened">
- <MenuItem x:Name="EditTask" Header="Edit Task" Click="EditTask_Click" />
- <Separator />
- <MenuItem x:Name="UnlinkTaskMenu" Header="Unlink Task" Click="UnlinkTaskMenu_Click" />
- </ContextMenu>
- </syncfusion:GanttControl.ContextMenu>
- </syncfusion:GanttControl>
- <DockPanel Grid.Row="2" Margin="0,2,0,0">
- <Button DockPanel.Dock="Left" Content="Add Task" Padding="5,0,5,0" Margin="0,0,2,0" Height="30"
- Click="AddTask_Click" />
- <Button DockPanel.Dock="Left" Content="Edit Task" Padding="5,0,5,0" Margin="0,0,2,0" Height="30"
- Click="EditTask_Click" />
- <Button DockPanel.Dock="Right" Content="Calculate" Padding="5,0,5,0" Height="30" />
- <Label DockPanel.Dock="Left" Height="30" />
- </DockPanel>
- </Grid>
- </UserControl>
|