diff options
author | sr55 <[email protected]> | 2017-01-07 18:50:57 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-01-07 18:50:57 +0000 |
commit | 5a68b81a051564097a03fb12373a593ce4f24fc0 (patch) | |
tree | a68ea31c54d3536d53510e04b08959d67796e8a3 /win/CS/HandBrakeWPF/Views/Queue | |
parent | 610d4b38d0c86ad36fd7a8d66a69ea64b01afdb3 (diff) |
WinGui: Adding Queue Start/Pause Context Menu options to the In-line queue and queue window. #489
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/Queue')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml b/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml index 6d86bd7c8..114556c43 100644 --- a/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml +++ b/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml @@ -44,8 +44,8 @@ <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> - - <ListBox Grid.Row="2" + + <ListBox Grid.Row="2" Tag="{Binding}" Margin="10,5,0,1" dd:DragDrop.DropHandler="{Binding}" dd:DragDrop.IsDragSource="True" @@ -64,7 +64,10 @@ </i:Interaction.Triggers> <ListBox.ContextMenu> - <ContextMenu> + <ContextMenu cal:Action.TargetWithoutContext="{Binding Path=PlacementTarget.Tag, RelativeSource={RelativeSource Self}}"> + <MenuItem cal:Message.Attach="[Event Click] = [Action StartQueue]" Header="{x:Static Properties:ResourcesUI.QueueView_Start}" /> + <MenuItem cal:Message.Attach="[Event Click] = [Action PauseQueue]" Header="{x:Static Properties:ResourcesUI.QueueView_Pause}" /> + <Separator /> <MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearCompleted}" /> <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearAll}" /> <MenuItem cal:Message.Attach="[Event Click] = [Action RemoveSelectedJobs]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearSelected}" /> |