Example #1
0
        private double GetXValueForItem(object item)
        {
            var t = item.GetType();
            var x = t.GetProperty(this.IndependentValueProperty).GetValue(item);

            return(DoubleValueConverter.ObjectToDouble(x));
        }
Example #2
0
        private double GetYValueForItem(object item)
        {
            var t     = item.GetType();
            var yProp = t.GetProperty(this.DependentValueProperty);
            var y     = yProp.GetValue(item);

            return(DoubleValueConverter.ObjectToDouble(y));
        }