1金币
想请问在C1FlexChart.Layers中如何如何实现类似C1Chart中的可以移动的十字(下面代码)
<c1:ChartView.Layers>
<c1:ChartPanel>
<c1:ChartPanelObject x:Name="obj" Attach="DataXY" Action="MouseMove"
HorizontalAlignment="Right" VerticalAlignment="Bottom" DataPoint="5,0"
Visibility="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType=c1:ChartPanel}, Path=IsMouseOver,Converter={StaticResource booleanToVisibilityConverter}}">
<Border Background="{DynamicResource brush_LiveData_chart_Layers_tip_backgroud}" BorderBrush="Green"
DataContext="{Binding RelativeSource={x:Static RelativeSource.Self},Path=Parent}"
BorderThickness="1,1,3,3" CornerRadius="6,6,0,6" Padding="3">
<StackPanel>
<TextBlock Text="{Binding DataPoint.X,StringFormat='x={0:F5}'}"/>
<TextBlock Text="{Binding DataPoint.Y,StringFormat='y={0:F5}'}" />
</StackPanel>
</Border>
</c1:ChartPanelObject>
</c1:ChartPanel>
</c1:ChartView.Layers>
|
|