I have a Viewport3D with user controls in it. Each of the user controls are a Viewport2DVisual3D control with the Visual set to the user control. Each control has buttons that, when clicked, will rotate the camera so that it's facing another user control. While the camera rotates to face the other user control, the original user control fades out and has visibility set to Collapsed. This is where all the lag occurs...
1) While the control is fading into nothingness, the animation changing the control's opacity is causing a bunch of lag. If I just set the opacity to 0 without animating it, then it won't lag. Is there a better way to fade out the control without lagging everything else?
2) When the camera is pointed at a complex control when the control is collapsed, it will lag. When the camera is not facing the control, there will be no lag at all. What kind of visualizing does the viewport do when the camera is not looking at controls? Is there a way to apply this visualizing logic on collapsed items as well, or is there another way to hide a control?
3) When a control is collapsed, and I have a button underneath that control, I can't click the button underneath the collapsed control. Is there a way to properly collapse this control so it's not taking any events? I effectively want to remove this control, but show it again at a later time, but I don't want any processing taking place for these controls as they are hidden.
Thanks in advance!