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.envMap = ((HelixToolkit.SharpDX.Wpf.EnvironmentMap3D)(target));
                return;

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

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

            case 5:
                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.envMap = ((HelixToolkit.SharpDX.Wpf.EnvironmentMap3D)(target));
                return;

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

            case 4:
                this.shadingPanel = ((System.Windows.Controls.Expander)(target));
                return;

            case 5:
                this.propertiesPanel = ((System.Windows.Controls.Expander)(target));
                return;

            case 6:
                this.matCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.matControl = ((EnvironmentMapDemo.MaterialControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 3
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.envMap = ((HelixToolkit.SharpDX.Wpf.EnvironmentMap3D)(target));
     return;
     case 3:
     this.model = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
     return;
     case 4:
     this.shadingPanel = ((System.Windows.Controls.Expander)(target));
     return;
     case 5:
     this.propertiesPanel = ((System.Windows.Controls.Expander)(target));
     return;
     case 6:
     this.matCombo = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 7:
     this.matControl = ((EnvironmentMapDemo.MaterialControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 4
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.envMap = ((HelixToolkit.SharpDX.Wpf.EnvironmentMap3D)(target));
     return;
     case 3:
     this.mesh = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
     return;
     case 4:
     this.lines = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
     return;
     case 5:
     this.shadingPanel = ((System.Windows.Controls.Expander)(target));
     return;
     }
     this._contentLoaded = true;
 }