public override IValueConverter TryBuildConverter(Type dataType, IValueConversionContext context) { if (dataType == typeof(char)) { return(new GenericValueConverter <char>(c => (double)c)); } return(null); }
public override IValueConverter TryBuildConverter(Type dataType, IValueConversionContext context) { if (dataType == typeof(char)) { return new GenericValueConverter<char>(c => (double)c); } return null; }
public override IValueConverter TryBuildConverter(Type dataType, IValueConversionContext context) { var plotter = context.Plotter; if (dataType == typeof(DateTime)) { foreach (var child in plotter.Children) { DateTimeAxis axis = child as DateTimeAxis; if (axis != null) { return(new DateTimeValueConverter(axis)); } } } return(null); }
public override IValueConverter TryBuildConverter(Type dataType, IValueConversionContext context) { var plotter = context.Plotter; if (dataType == typeof(DateTime)) { foreach (var child in plotter.Children) { DateTimeAxis axis = child as DateTimeAxis; if (axis != null) { return new DateTimeValueConverter(axis); } } } return null; }
public abstract IValueConverter TryBuildConverter(Type dataType, IValueConversionContext context);