Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.view1 = ((HelixToolkit.SharpDX.Wpf.Viewport3DX)(target));
                return;

            case 2:
                this.model1 = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
                return;

            case 3:
                this.model2 = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
                return;

            case 4:
                this.model3 = ((HelixToolkit.SharpDX.Wpf.DraggableGeometryModel3D)(target));
                return;

            case 5:
                this.lines = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
                return;

            case 6:
                this.translateX = ((HelixToolkit.SharpDX.Wpf.UITranslateManipulator3D)(target));
                return;

            case 7:
                this.translateY = ((HelixToolkit.SharpDX.Wpf.UITranslateManipulator3D)(target));
                return;

            case 8:
                this.translateZ = ((HelixToolkit.SharpDX.Wpf.UITranslateManipulator3D)(target));
                return;

            case 9:
                this.rotateX = ((HelixToolkit.SharpDX.Wpf.UIRotateManipulator3D)(target));
                return;

            case 10:
                this.rotateY = ((HelixToolkit.SharpDX.Wpf.UIRotateManipulator3D)(target));
                return;

            case 11:
                this.rotateZ = ((HelixToolkit.SharpDX.Wpf.UIRotateManipulator3D)(target));
                return;

            case 12:
                this.composit = ((HelixToolkit.SharpDX.Wpf.UICompositeManipulator3D)(target));
                return;

            case 13:
                this.grid = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
                return;

            case 14:
                this.shadingPanel = ((System.Windows.Controls.Expander)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.view1 = ((HelixToolkit.SharpDX.Wpf.Viewport3DX)(target));
     return;
     case 2:
     this.model1 = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
     return;
     case 3:
     this.model2 = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
     return;
     case 4:
     this.model3 = ((HelixToolkit.SharpDX.Wpf.DraggableGeometryModel3D)(target));
     return;
     case 5:
     this.lines = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
     return;
     case 6:
     this.translateX = ((HelixToolkit.SharpDX.Wpf.UITranslateManipulator3D)(target));
     return;
     case 7:
     this.translateY = ((HelixToolkit.SharpDX.Wpf.UITranslateManipulator3D)(target));
     return;
     case 8:
     this.translateZ = ((HelixToolkit.SharpDX.Wpf.UITranslateManipulator3D)(target));
     return;
     case 9:
     this.rotateX = ((HelixToolkit.SharpDX.Wpf.UIRotateManipulator3D)(target));
     return;
     case 10:
     this.rotateY = ((HelixToolkit.SharpDX.Wpf.UIRotateManipulator3D)(target));
     return;
     case 11:
     this.rotateZ = ((HelixToolkit.SharpDX.Wpf.UIRotateManipulator3D)(target));
     return;
     case 12:
     this.composit = ((HelixToolkit.SharpDX.Wpf.UICompositeManipulator3D)(target));
     return;
     case 13:
     this.grid = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
     return;
     case 14:
     this.shadingPanel = ((System.Windows.Controls.Expander)(target));
     return;
     }
     this._contentLoaded = true;
 }