I have a project in wpf 3D / Helixtoolkit with two differents viewport, displaying two different but similar objects.
I have to implement a button that can "link" the two cameras of the two viewports. So when I'm changing the view in one, the other replicate the exact same transformation.
All in all, I want to activate the two viewport in the same time, not only by mouse overring one.
I'll take any lead.
EDIT : i found a pretty simple answer by simply copying one camera into the other into a CameraChanged event
private void viewport1_CameraChanged(object sender, RoutedEventArgs e)
{
CameraHelper.Copy(viewport1.Camera, viewport2.Camera);
}
I think it will do just fine