2016-12-13 7 views
1

Series(OxyPlot.Series)タイプのElementCollectionを取り消す必要があります。 Reverse() - functoinは、System.Linq.Enumarable.ReverseまたはOxyPlot.EnumerableExtensions.Reverseを使用できるため、あいまいなmsgを返します。どちらも私のElementCollectionを元に戻しません。OxyPlot SeriesでElementCollectionを取り消すことができません

OxyPlot.EnumerableExtensions.Reverse<Series>(lineseries); 
System.Linq.Enumerable.Reverse<Series>(lineseries); 

!! lineseriesはElementCollectionなので、名前だけではありません。系統

何か提案がありますか?

答えて

0

lineseries.Points.Reverse();

私はそれを試してみた、それは私の作品を使用してみてください。

0

OxyPlot LineSeries Bindingを使用すると、ObservableCollectionを変更してそれを元に戻すことができます。

<oxy:Plot x:Name="P6" Title="Paddle Graph 6" Grid.ColumnSpan="2"> 
     <oxy:Plot.Series> 
      <oxy:LineSeries ItemsSource="{Binding Points}"/> 
     </oxy:Plot.Series> 
    </oxy:Plot> 

そして、あなたの監視可能なコレクション:

Points = new ObservableCollection<DataPoint>(); 
    Points.Reverse(); 
関連する問題