Nie będę się rozpisywał:
ResourceDictionary:
<DataTemplate x:Key="imagesItemTemplate">
<Grid Margin="1" Background="#F8F8F8">
<Grid.RowDefinitions>
<RowDefinition Height="80" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Image Grid.Row="0" Source="{Binding Path=Image}"/>
<Label Grid.Row="1" Content="{Binding Path=Title}" HorizontalAlignment="Center"/>
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header="Kopiuj"></MenuItem> //tutaj
</ContextMenu>
</Grid.ContextMenu>
</Grid>
</DataTemplate>
Window:
<ListBox x:Name="screenListBox" Grid.Row="3" ItemsSource="{Binding Path= Images, ElementName=x}" ItemTemplate="{StaticResource imagesItemTemplate}"/>
Jak do MenuItem w ContextMenu dodać event? (Click)