// -------------------------------------------------------------------------------------------------------------------- // // Copyright (c) 2014 OxyPlot contributors // // // Provides a markup extension for DataPoints. // // -------------------------------------------------------------------------------------------------------------------- using Avalonia.Markup.Xaml; using System; namespace OxyPlot.Avalonia { /// /// Provides a markup extension for s. /// public class DataPointExtension : MarkupExtension { /// /// The point /// private readonly DataPoint point; /// /// Initializes a new instance of the class. /// /// The x-coordinate. /// The y-coordinate. public DataPointExtension(double x, double y) { point = new DataPoint(x, y); } public override object ProvideValue(IServiceProvider serviceProvider) { return point; } } }