Advertisement
FANMixco

XAML

Mar 1st, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.04 KB | None | 0 0
  1.                     <Chart:RadCartesianChart Grid.Row="1" x:Name="telChart">
  2.                         <Chart:RadCartesianChart.HorizontalAxis>
  3.                             <Chart:CategoricalAxis PlotMode="OnTicksPadded"/>
  4.                         </Chart:RadCartesianChart.HorizontalAxis>
  5.                         <Chart:RadCartesianChart.VerticalAxis>
  6.                             <Chart:LinearAxis/>
  7.                         </Chart:RadCartesianChart.VerticalAxis>
  8.                         <Chart:LineSeries ItemsSource="{Binding}">
  9.                             <Chart:LineSeries.CategoryBinding>
  10.                                 <Chart:PropertyNameDataPointBinding PropertyName="Category"/>
  11.                             </Chart:LineSeries.CategoryBinding>
  12.                             <Chart:LineSeries.ValueBinding>
  13.                                 <Chart:PropertyNameDataPointBinding PropertyName="Value"/>
  14.                             </Chart:LineSeries.ValueBinding>
  15.  
  16.                             <Chart:ChartTrackBallBehavior.TrackInfoTemplate>
  17.                                 <DataTemplate>
  18.                                     <StackPanel>
  19.                                         <TextBlock Text="{Binding DataPoint.DataItem.Info}" Margin="5" Foreground="DarkSalmon"/>
  20.                                     </StackPanel>
  21.                                 </DataTemplate>
  22.                             </Chart:ChartTrackBallBehavior.TrackInfoTemplate>
  23.  
  24.                             <Chart:ChartTrackBallBehavior.IntersectionTemplate>
  25.                                 <DataTemplate>
  26.                                     <Ellipse Width="10" Height="10" Fill="Tomato"/>
  27.                                 </DataTemplate>
  28.                             </Chart:ChartTrackBallBehavior.IntersectionTemplate>
  29.                         </Chart:LineSeries>
  30.                         <Chart:RadCartesianChart.Behaviors>
  31.                             <Chart:ChartTrackBallBehavior InfoMode="Multiple" ShowIntersectionPoints="True">
  32.  
  33.                                 <Chart:ChartTrackBallBehavior.LineStyle>
  34.                                     <Style TargetType="Polyline">
  35.                                         <Setter Property="Stroke" Value="Tomato"/>
  36.                                         <Setter Property="StrokeThickness" Value="2"/>
  37.                                         <Setter Property="StrokeDashArray" Value="1,2"/>
  38.                                     </Style>
  39.                                 </Chart:ChartTrackBallBehavior.LineStyle>
  40.  
  41.                                 <Chart:ChartTrackBallBehavior.InfoStyle>
  42.                                     <Style TargetType="telerikChartPrimitives:TrackBallInfoControl">
  43.                                         <Setter Property="Background" Value="White"/>
  44.                                     </Style>
  45.                                 </Chart:ChartTrackBallBehavior.InfoStyle>
  46.  
  47.                             </Chart:ChartTrackBallBehavior>
  48.                         </Chart:RadCartesianChart.Behaviors>
  49.                     </Chart:RadCartesianChart>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement