This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm trying to make a keyframe graph, similar to this (Note that I'm only interested in displaying/manipulating one channel): My question is, can I show and select/manipulate the points in the Spline Graph chart type? |
|
|
Showing the points is fairly quick to achieve and is done by setting the SymbolStyle property on your SplineSeries. That style's TargetType would be ChartSymbol, and in its control template, after the visual object you want to display (a Border to get the above effect, I would assume), using triggers to set the IsMouseOver and IsSelected properties in the usual way would get the selection visual working. As for manipulating the points themselves, this should be possible as there's a couple of things that you could to use to get the effect you want. The SelectedDataPoint property will tell you what's been clicked, and listening to the MouseDown/MouseMove/MouseUp events should allow to set that data point based on the ChartMouseEventArgs. Those args will contain a property, ConstrainedLogicalPoint, that will have the logical X and Y values that you can use to update the data point's values in your model. Hopefully this can get you close. |
|