This question is locked. New answers and comments are not allowed.
Hello!
It seems like there is a problem with selection or SegmentStyleSelector when a page has NavigationCacheMode set to Required or Enabled.
I have created a doughnut series as it is shown bellow.
<Chart:RadPieChart Width="400" Height="400" x:Name="chart"
HorizontalContentAlignment="Stretch" VerticalContentAlignment="Top"
Foreground="{Binding CurrentSkinKey, ConverterParameter=Foreground, Converter={StaticResource CvtSkin}, Source={StaticResource skinManager}}"
FontSize="{StaticResource AppFontSizeLarge}">
<Chart:DoughnutSeries HighlightBrush="{x:Null}" InnerRadiusFactor="0.75"
RadiusFactor="0.7" AllowSelect="True" x:Name="rating" ItemsSource="{Binding Items}"
SegmentStyleSelector="{Binding ItemsStyleSelector}" SelectedPointOffset="0.00000001">
<Chart:DoughnutSeries.ValueBinding>
<Chart:PropertyNameDataPointBinding PropertyName="Value" />
</Chart:DoughnutSeries.ValueBinding>
<Chart:DoughnutSeries.LabelDefinitions>
<Chart:ChartSeriesLabelDefinition Margin="-15"
TemplateSelector="{StaticResource LabelStyleSelector}">
<Chart:ChartSeriesLabelDefinition.Binding>
<Chart:PropertyNameDataPointBinding PropertyName="Label" />
</Chart:ChartSeriesLabelDefinition.Binding>
</Chart:ChartSeriesLabelDefinition>
</Chart:DoughnutSeries.LabelDefinitions>
<Chart:DoughnutSeries.IsSelectedBinding>
<Chart:PropertyNameDataPointBinding PropertyName="IsSelected" />
</Chart:DoughnutSeries.IsSelectedBinding>
</Chart:DoughnutSeries>
<Chart:RadPieChart.Behaviors>
<Chart:ChartSelectionBehavior DataPointSelectionMode="Single"
SelectionChanged="ChartSelectionBehavior_SelectionChanged" />
</Chart:RadPieChart.Behaviors>
</Chart:RadPieChart>
Now, if i select an item on chart, get back to previous screen and then once again navigate to page with chart, the SegmentStyleSelector is not fired, even if I set it to null and once again create an instance of it.
Is there a way to update a chart?
It seems like there is a problem with selection or SegmentStyleSelector when a page has NavigationCacheMode set to Required or Enabled.
I have created a doughnut series as it is shown bellow.
<Chart:RadPieChart Width="400" Height="400" x:Name="chart"
HorizontalContentAlignment="Stretch" VerticalContentAlignment="Top"
Foreground="{Binding CurrentSkinKey, ConverterParameter=Foreground, Converter={StaticResource CvtSkin}, Source={StaticResource skinManager}}"
FontSize="{StaticResource AppFontSizeLarge}">
<Chart:DoughnutSeries HighlightBrush="{x:Null}" InnerRadiusFactor="0.75"
RadiusFactor="0.7" AllowSelect="True" x:Name="rating" ItemsSource="{Binding Items}"
SegmentStyleSelector="{Binding ItemsStyleSelector}" SelectedPointOffset="0.00000001">
<Chart:DoughnutSeries.ValueBinding>
<Chart:PropertyNameDataPointBinding PropertyName="Value" />
</Chart:DoughnutSeries.ValueBinding>
<Chart:DoughnutSeries.LabelDefinitions>
<Chart:ChartSeriesLabelDefinition Margin="-15"
TemplateSelector="{StaticResource LabelStyleSelector}">
<Chart:ChartSeriesLabelDefinition.Binding>
<Chart:PropertyNameDataPointBinding PropertyName="Label" />
</Chart:ChartSeriesLabelDefinition.Binding>
</Chart:ChartSeriesLabelDefinition>
</Chart:DoughnutSeries.LabelDefinitions>
<Chart:DoughnutSeries.IsSelectedBinding>
<Chart:PropertyNameDataPointBinding PropertyName="IsSelected" />
</Chart:DoughnutSeries.IsSelectedBinding>
</Chart:DoughnutSeries>
<Chart:RadPieChart.Behaviors>
<Chart:ChartSelectionBehavior DataPointSelectionMode="Single"
SelectionChanged="ChartSelectionBehavior_SelectionChanged" />
</Chart:RadPieChart.Behaviors>
</Chart:RadPieChart>
Now, if i select an item on chart, get back to previous screen and then once again navigate to page with chart, the SegmentStyleSelector is not fired, even if I set it to null and once again create an instance of it.
Is there a way to update a chart?