public override void ActivateLayout(Grid parentGrid) { parentGrid.BeginInit(); parentGrid.Children.Clear(); SetupGrid(parentGrid); var sceneView3D = new SceneView3D(); sceneView3D.SelectedSceneViewType = SceneViewType.StandardCustomSceneView; sceneView3D.Camera1.CameraType = BaseCamera.CameraTypes.PerspectiveCamera; sceneView3D.WireframeVisual.WireframeType = WireframeVisual3D.WireframeTypes.OriginalSolidModel; sceneView3D.WireframeVisual.UseModelColor = true; AddUIElement(parentGrid, 0, sceneView3D); sceneView3D = new SceneView3D(); sceneView3D.SelectedSceneViewType = SceneViewType.Get("top"); sceneView3D.Camera1.CameraType = BaseCamera.CameraTypes.PerspectiveCamera; sceneView3D.WireframeVisual.WireframeType = WireframeVisual3D.WireframeTypes.Wireframe; sceneView3D.WireframeVisual.UseModelColor = false; AddUIElement(parentGrid, 1, sceneView3D); parentGrid.EndInit(); }
private static void SetupStandardViews() { _standardCustomSceneView = new SceneViewType("Custom", 20, -20); _standerViews = new SceneViewType[] { _standardCustomSceneView, new SceneViewType("Top", 0, -90), new SceneViewType("Front", 0, 0), new SceneViewType("Left", 90, 0), new SceneViewType("Right", -90, 0), new SceneViewType("Back", 180, 0), new SceneViewType("Bottom", 0, 90) }; }