回复 1楼mingcedar的帖子
用下面高亮的试试修改背景色。
至于替换背景,采用图片--且可以zoom,目前没有找到好的办法,我再试试。
<c1:C1Chart Grid.Row="1" x:Name="c1chart" Style="{StaticResource CE_Chart}" Margin="10" >
<c1:C1Chart.Actions>
<c1:ZoomAction Fill="#50ffffff" />
<c1:TranslateAction Modifiers="Control" />
</c1:C1Chart.Actions>
<c1:C1Chart.View>
<c1:ChartView PlotBackground="#FF343434"> <c1:ChartView.Layers>
<c1:ChartPanel >
<c1:ChartPanelObject DataPoint="0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,0,0,0" Action="MouseMove">
<StackPanel>
<Button Content="{Binding RelativeSource={RelativeSource Self}, Path=Parent.Parent.DataPoint.X,StringFormat='x=0.0;x=-0.0'}" Height="100" Width="150" />
<TextBlock Text="{Binding RelativeSource={RelativeSource Self}, Path=Parent.Parent.DataPoint.Y,StringFormat='y=0.0;y=-0.0'}" Height="100" Width="100" Background="Green" />
</StackPanel>
</c1:ChartPanelObject>
</c1:ChartPanel>
</c1:ChartView.Layers>
</c1:ChartView>
</c1:C1Chart.View>
</c1:C1Chart> |