Example #1
0
 internal void UpdateTrackInterior(int segmentIndex)
 {
     if (parentSeries.TrackColor != null)
     {
         this.TrackColor   = parentSeries.TrackColor;
         this.TrackOpacity = 1;
     }
     else
     {
         this.TrackColor   = ChartExtensionUtils.GetInterior(parentSeries, segmentIndex);
         this.TrackOpacity = 0.2;
     }
 }
Example #2
0
        /// <summary>
        /// Modifies the source data before passing it to the target for display in the UI.
        /// </summary>
        /// <param name="value"></param>
        /// <param name="targetType"></param>
        /// <param name="parameter"></param>
        /// <param name="language"></param>
        /// <returns></returns>
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            int index = int.Parse(parameter.ToString());

            return(ChartExtensionUtils.GetInterior(series, index));
        }