Skip to content

Commit

Permalink
Added duplicate layer option to context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
CPKreu committed Dec 6, 2021
1 parent 136a7ed commit 10691c9
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,22 @@
MoveToFrontCommand="{Binding LayerCommandsViewModel.MoveToFrontCommand, ElementName=layerStructureContainer}">
<vws:LayerItem.ContextMenu>
<ContextMenu>
<MenuItem Header="Duplicate"
Command="{Binding PlacementTarget.Tag.LayerCommandsViewModel.DuplicateLayerCommand,
RelativeSource={RelativeSource AncestorType=ContextMenu}}"
CommandParameter="{Binding PlacementTarget.Tag.ContainerIndex, RelativeSource={RelativeSource AncestorType=ContextMenu}}">
</MenuItem>
<MenuItem Header="Delete"
Command="{Binding PlacementTarget.Tag.LayerCommandsViewModel.DeleteLayersCommand,
Command="{Binding PlacementTarget.Tag.LayerCommandsViewModel.DeleteLayersCommand,
RelativeSource={RelativeSource AncestorType=ContextMenu}}"
CommandParameter="{Binding PlacementTarget.Tag.ContainerIndex, RelativeSource={RelativeSource AncestorType=ContextMenu}}">
</MenuItem>
<MenuItem Header="Rename"
Command="{Binding PlacementTarget.Tag.LayerCommandsViewModel.RenameLayerCommand,
Command="{Binding PlacementTarget.Tag.LayerCommandsViewModel.RenameLayerCommand,
RelativeSource={RelativeSource AncestorType=ContextMenu}}" CommandParameter="{Binding PlacementTarget.Tag.ContainerIndex, RelativeSource={RelativeSource AncestorType=ContextMenu}}">
</MenuItem>
<MenuItem Header="Move to front"
Command="{Binding PlacementTarget.Tag.LayerCommandsViewModel.MoveToFrontCommand,
Command="{Binding PlacementTarget.Tag.LayerCommandsViewModel.MoveToFrontCommand,
RelativeSource={RelativeSource AncestorType=ContextMenu}}"
CommandParameter="{Binding PlacementTarget.Tag.ContainerIndex, RelativeSource={RelativeSource AncestorType=ContextMenu}}">
</MenuItem>
Expand Down

0 comments on commit 10691c9

Please sign in to comment.