-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
41 lines (41 loc) · 2.23 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Window x:Class="CrosshairCustomDraw.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts"
Title="MainWindow" Height="414" Width="525">
<Grid>
<StackPanel>
<dxc:ChartControl Name="chartControl1" Height="340"
CustomDrawCrosshair="chartControl1_CustomDrawCrosshair">
<dxc:ChartControl.CrosshairOptions>
<dxc:CrosshairOptions ShowArgumentLabels="True"
ShowArgumentLine="True"
ShowValueLabels="True"
ShowValueLine="True"/>
</dxc:ChartControl.CrosshairOptions>
<dxc:XYDiagram2D>
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
<dxc:AxisX2D.CrosshairAxisLabelOptions>
<dxc:CrosshairAxisLabelOptions Pattern="{}{V:f1}"/>
</dxc:AxisX2D.CrosshairAxisLabelOptions>
</dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>
<dxc:LineSeries2D DisplayName="Series1">
<dxc:SeriesPoint Argument="1" Value="50"/>
<dxc:SeriesPoint Argument="2" Value="44"/>
<dxc:SeriesPoint Argument="3" Value="55"/>
<dxc:SeriesPoint Argument="4" Value="77"/>
</dxc:LineSeries2D>
<dxc:LineSeries2D DisplayName="Series2">
<dxc:SeriesPoint Argument="1" Value="22"/>
<dxc:SeriesPoint Argument="2" Value="11"/>
<dxc:SeriesPoint Argument="3" Value="9"/>
<dxc:SeriesPoint Argument="4" Value="8"/>
</dxc:LineSeries2D>
</dxc:XYDiagram2D>
</dxc:ChartControl>
<Button Height="35" Content="Custom Draw Crosshair Cursor" Click="Button_Click"></Button>
</StackPanel>
</Grid>
</Window>