{"action":"created","issue":{"url":"https://api.github.com/repos/helix-toolkit/helix-toolkit/issues/512","repository_url":"https://api.github.com/repos/helix-toolkit/helix-toolkit","labels_url":"https://api.github.com/repos/helix-toolkit/helix-toolkit/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/helix-toolkit/helix-toolkit/issues/512/comments","events_url":"https://api.github.com/repos/helix-toolkit/helix-toolkit/issues/512/events","html_url":"https://github.com/helix-toolkit/helix-toolkit/issues/512","id":245085251,"number":512,"title":"Why the RenderHost is null?","user":{"login":"pipited07","id":22461372,"avatar_url":"https://avatars1.githubusercontent.com/u/22461372?v=4","gravatar_id":"","url":"https://api.github.com/users/pipited07","html_url":"https://github.com/pipited07","followers_url":"https://api.github.com/users/pipited07/followers","following_url":"https://api.github.com/users/pipited07/following{/other_user}","gists_url":"https://api.github.com/users/pipited07/gists{/gist_id}","starred_url":"https://api.github.com/users/pipited07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pipited07/subscriptions","organizations_url":"https://api.github.com/users/pipited07/orgs","repos_url":"https://api.github.com/users/pipited07/repos","events_url":"https://api.github.com/users/pipited07/events{/privacy}","received_events_url":"https://api.github.com/users/pipited07/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-07-24T13:45:54Z","updated_at":"2017-07-24T17:00:25Z","closed_at":null,"body":"I want to show the model when the program start but it seems render host always be null.\r\nHere is the code:\r\n\r\n```\r\npublic MainWindow()\r\n{\r\nview.RenderTechniquesManager = new DefaultRenderTechniquesManager();\r\n\r\nview.EffectsManager = new DefaultEffectsManager(view.RenderTechniquesManager);\r\n\r\nMeshGeometryModel3D mesh=LoadSTL(path);\r\n\r\nDXView.Items.Add(GroupModel);\r\n\r\nModelGeometry.Add(mesh);\r\n\r\nGroupModel.Children = ModelGeometry;\r\n\r\nmesh.Attach(view.RenderHost);\r\n}\r\n```\r\n\r\nI wraped the code in a Button and it did work. The RenderHost is not null anymore. Why is that?\r\n\r\nBy the way the coordinate in the viewport3dx seems no label X Y Z , even I set the property in xaml\r\n```\r\nCoordinateSystemLabelForeground=\"Aqua\"                 \r\n                        CoordinateSystemLabelX=\"X\"\r\n                        CoordinateSystemLabelY=\"Y\"\r\n                        CoordinateSystemLabelZ=\"Z\"\r\n```\r\nHow do I show the label in the viewport?\r\n\r\nHope anyone could help me. Thanks~"},"comment":{"url":"https://api.github.com/repos/helix-toolkit/helix-toolkit/issues/comments/317486844","html_url":"https://github.com/helix-toolkit/helix-toolkit/issues/512#issuecomment-317486844","issue_url":"https://api.github.com/repos/helix-toolkit/helix-toolkit/issues/512","id":317486844,"user":{"login":"holance","id":905577,"avatar_url":"https://avatars2.githubusercontent.com/u/905577?v=4","gravatar_id":"","url":"https://api.github.com/users/holance","html_url":"https://github.com/holance","followers_url":"https://api.github.com/users/holance/followers","following_url":"https://api.github.com/users/holance/following{/other_user}","gists_url":"https://api.github.com/users/holance/gists{/gist_id}","starred_url":"https://api.github.com/users/holance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holance/subscriptions","organizations_url":"https://api.github.com/users/holance/orgs","repos_url":"https://api.github.com/users/holance/repos","events_url":"https://api.github.com/users/holance/events{/privacy}","received_events_url":"https://api.github.com/users/holance/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T17:00:25Z","updated_at":"2017-07-24T17:00:25Z","body":"You don't need to call attach even in later, you can check how example works, they don't need to call attach,it has been handled internally. And viewmodel does not accessing to the render host property.\r\n\r\nFor the second question, I will get back to you later"}}
{"actor":{"display_login":"holance"}}