CrosshairOptions Class
In This Article
Contains settings that define how to draw a crosshair cursor within a chart.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Returned By
The ChartControl.CrosshairOptions property returns an instance of CrosshairOptions.
#Remarks
Use the ChartControl.CrosshairOptions property to get access to the CrosshairOptions object.
The following XAML demonstrates how this can be done.
Xaml Copy Code
<UserControl x:Class="SilverlightApplication3.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400" >
<Grid>
<dxc:ChartControl>
<dxc:ChartControl.CrosshairOptions>
<dxc:CrosshairOptions ShowArgumentLabels="True" ShowArgumentLine="True"
ShowValueLabels="True" ShowValueLine="True"
CrosshairLabelMode="ShowCommonForAllSeries">
<dxc:CrosshairOptions.CommonLabelPosition>
<dxc:CrosshairMousePosition Offset="120,120" />
</dxc:CrosshairOptions.CommonLabelPosition>
</dxc:CrosshairOptions>
</dxc:ChartControl.CrosshairOptions>
</dxc:ChartControl>
</Grid>
</UserControl>
For more information on how to customize the crosshair cursor, see the Crosshair Cursor topic.
#Inheritance
See Also