Hi:
I want to right-click a bar on a bar chart and have a context menu appear with items based upon the bar that is clicked. I have the right-click working, but when I define the contextmenu inside the chart in the xaml, the chart disappears and the menu takes the entire space. When I define the contextmenu in code, I cannot make it appear at all. How should I do this? The latter approach, creating the menu in code is preferred as the items will depend upon the bar that is right-clicked.
I want to right-click a bar on a bar chart and have a context menu appear with items based upon the bar that is clicked. I have the right-click working, but when I define the contextmenu inside the chart in the xaml, the chart disappears and the menu takes the entire space. When I define the contextmenu in code, I cannot make it appear at all. How should I do this? The latter approach, creating the menu in code is preferred as the items will depend upon the bar that is right-clicked.