My users want to be able to show and hide the zooming toolbar using a button. I would have expected to be able to do this something like :-
<sf:SfChart.Behaviors>
<sf:ChartZoomPanBehavior EnableZoomingToolBar="{Binding ShowZoomToolbarInCharts}" ToolBarItems="All" EnableSelectionZooming="True" ToolBarOrientation="Horizontal" HorizontalPosition="Right" VerticalPosition="Top" />
</sf:SfChart.Behaviors>
However, that doesn't seem to be working. I suspect because I haven't set the data context correctly because my ShowZoomToolbarInCharts isn't getting called. I tried setting the charts data context but that didn't work. The behaviour itself doesn't appear to have a data context property.
Any suggestions on how I can achieve this?
Thanks