未找到OxyPlot CandleStickAndVolumeSeries命名空间

时间:2015-07-20 14:33:03

标签: c# android xamarin xamarin.android oxyplot

我试图用Oxyplot.Xamarin.Android创建一个CandlestickAndVolumeSeries。我已经创建了一个工作正常的CandlestickSeries。

所以现在我已经从Oxyplot-Example-Browser中获取了CandleStickAndVolumeSeries-Example,就像我使用CandleStickSeries一样,并将其复制到我已经使用CandlestickSeries的同一个类中,但是我收到一条错误消息& #34;找不到命名空间"。

我正在使用OxyPlot.Xamarin.Android版本2015.1.721-alpha,与Xamarin Studio 5.9.4(版本5)。

这是我收到错误消息的行:

        var candleStickAndVolumeSeries1 = new CandleStickAndVolumeSeries();

对我而言,似乎我已经做好了一切,只缺少CandleStickAndVolumeSeries-Class。有谁知道如何解决这个问题?

我现在一直试图从Nuget获得最新版本,但我无法将其添加到我的项目中。我收到一条错误消息:" Das Default-Element erfordert ein nicht leeres Extension-Attribut。 Zeile 1,位置378。" 在英语中,它应该类似于"默认元素需要非空的扩展属性。第1行,第378位。"

1 个答案:

答案 0 :(得分:0)

不太确定您的设置发生了什么,但我添加了OxyPlot.Xamarin.Android版本2015.1.943-alpha并且它具有类CandleStickAndVolumeSeries并且构建正常。

我会尝试将您的软件包更新到此版本,或者用新软件包替换旧软件包。

另外请确保您正在使用 using OxyPlot.Series;