コード例 #1
0
        private void PieSeries_DataPointSelected(object sender, WinRTXamlToolkit.Controls.RotedEventArgs<DataPoint> e)
        {
            PieDataPoint pieDataPoint = e.Value as PieDataPoint;
            PieSeries pieSeries = (PieChart.Series[0] as PieSeries);

            if (pieDataPoint != null)
            {
                //pieDataPoint.DiameterScale = 0.98;
                Storyboard sb = new Storyboard();
                sb.CreatDoubleAnimation(pieDataPoint, "DiameterScale", 0.9, 0.98, 0.5);
                sb.Begin();

                if (_current != null && !_current.Equals(pieDataPoint))
                {
                    _current.DiameterScale = 0.9;
                }
                _current = pieDataPoint;
            }
            GotoDataPointSelected(_current);
        }