Telerik UI for Windows Phone by Progress

Selection Palettes

RadChart provides a SelectionBehavior, which allows users to "select" parts of the chart. The selection can use a completely different palette, which is achieved by setting the SelectionPalette. Each of the predefined palettes "Warm" and "Contrast" has its own Selected Version - "WarmSelected" and "ContrastSelected". Here is an example of how to use the selection palette:

CopyXAML
<chart:RadPieChart Palette="Warm" SelectionPalette="WarmSelected">

  <chart:RadPieChart.Behaviors>
    <chart:ChartSelectionBehavior/>
  </chart:RadPieChart.Behaviors>

  <chart:PieSeries>
    <chartEngine:PieDataPoint Value="9" />
    <chartEngine:PieDataPoint Value="3" />
    <chartEngine:PieDataPoint Value="3" />
  </chart:PieSeries>

</chart:RadPieChart>

Here is how it looks like when the user taps on one of the slices:

radchart-palettes-selectionpalette

Of course users can define their own selection palettes and this is really straightforward - just like an ordinary palette.

Note

To use the SelectionPalette your chart must add a SelectionBehavior to its behaviors collection. To learn more about Selection read here