This question is locked. New answers and comments are not allowed.
Hi: I am using a context menu when the user clicks a bar on a bar chart. I can use EventName="MouseLeftButtonUp" with no problems, but I want the user to get the context menu with a right click. EventName = "MouseRightButtonUp" does not work. What am I doing wrong? I'm using Silverlight 4 and your Q3 SP2 release. The XAML is below.
I'm setting e.handled = true in the mouse down event to avoid the Silverlight popup. Is that the problem? If so, how do I prevent that and still get my own context menu?
Thanks!
Terry
I'm setting e.handled = true in the mouse down event to avoid the Silverlight popup. Is that the problem? If so, how do I prevent that and still get my own context menu?
Thanks!
Terry
| <UserControl xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" |
| x:Class="HCDA4.BarChart" |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:radNav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" |
| > |
| <Grid x:Name="LayoutRoot" Background="White" Loaded="LayoutRoot_Loaded"> |
| <telerikCharting:RadChart x:Name="RadChart1" > |
| <radNav:RadContextMenu.ContextMenu> |
| <radNav:RadContextMenu EventName="MouseLeftButtonUp" x:Name="Context_Menu"> <!-- works--> |
| <!--<radNav:RadContextMenu EventName="MouseRightButtonUp" x:Name="Context_Menu"> doesn't work --> |
| <radNav:RadMenuItem Header="Top Level KPI" /> |
| <radNav:RadMenuItem Header="Details" /> |
| </radNav:RadContextMenu> |
| </radNav:RadContextMenu.ContextMenu> |
| </telerikCharting:RadChart> |
| </Grid> |
| </UserControl> |

