Hi,
In the ultraWinChart component there was built in support allowing the end user to hold the ALT key + moving their mouse around to rotate a 3D chart. Is this same behavior possible in the WPF xamChart? If not, will it be in the future?
Thanks,
//abissette
This would be a very useful feature
I tried the code, for some reason the rotation is sluggish and behaves unexpectedly.
The chart seems to 'bounce' back into position when rotating more than say 15 degrees or so, not sure why this happens.
Bottom line is that for me it's not usable.
Anybody else had this problem?!
Thanks Teodor....I will give it a go.
Currently such built-in functionality is not available, but you can try using the following code:
public partial class Window1 : Window
{
private Point prevPoint = new Point(0, 0);
InitializeComponent();
this.MouseLeftButtonDown += new MouseButtonEventHandler(Window1_MouseLeftButtonDown);
}
Point pt = e.GetPosition(null);
prevPoint = pt;
xTheta += (prevPoint.Y - pt.Y) * 360 / this.ActualHeight;
RotateTransform3D rotateTransformY = new RotateTransform3D(angleRotationY);
RotateTransform3D rotateTransformX = new RotateTransform3D(angleRotationX);
transformGroup.Children.Add(rotateTransformY);
transformGroup.Children.Add(rotateTransformX);