private double GetXValueForItem(object item) { var t = item.GetType(); var x = t.GetProperty(this.IndependentValueProperty).GetValue(item); return(DoubleValueConverter.ObjectToDouble(x)); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var q = (double)value; var t = DoubleValueConverter.DoubleToDateTimeOffset(q); return(t.ToString("yyyy MMMM", new CultureInfo("en-US"))); }
private double GetYValueForItem(object item) { var t = item.GetType(); var yProp = t.GetProperty(this.DependentValueProperty); var y = yProp.GetValue(item); return(DoubleValueConverter.ObjectToDouble(y)); }