Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
ContextMenu on Axis
posted

Hello,

I'm trying to set a simple context menu for an Axis within a XamDataChart:

<ig:XamDataChart Grid.Column="0" Grid.Row="1" x:Name="ColumnChart" Legend="{StaticResource Legend}" Padding="10" HorizontalZoomable="True"                  

                         HorizontalZoombarVisibility="Collapsed" VerticalZoomable="True" VerticalZoombarVisibility="Collapsed" >

      <ig:XamDataChart.Axes>
           <ig:NumericYAxis x:Name="ColumnYAxis" MinimumValue="0" Interval="1" Label="{}{}">
               <ig:NumericYAxis.ContextMenu>
                    <ContextMenu>
                          <MenuItem Header="Hola"></MenuItem>
                     </ContextMenu>
               </ig:NumericYAxis.ContextMenu>
           </ig:NumericYAxis>
           <ig:CategoryXAxis x:Name="ColumnXAxis" ItemsSource="{Binding Path=Cat, Source={StaticResource EnergyProductionCollection}}">
           </ig:CategoryXAxis>
</ig:XamDataChart.Axes>

But when I right-click on the axis is not triggering. I tried attaching to the ContextMenuOpening event but it's not being triggered either. Could it be overriden by another event from another part of a control?

Thank you very much.

Sebastian

Parents Reply Children
No Data