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
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);
This would be a very useful feature