I have a WPF application..In which I have an Image control in Xaml file.
On right click of this image I have a context menu.
I would like to have same to be
XAML
C#
private void be_Click(object sender, RoutedEventArgs e) { b.ContextMenu.DataContext = b.DataContext; b.ContextMenu.IsOpen = true; }