Viewport3D ModelVisuals3D not visible when inside Canvas

后端 未结 1 1137
温柔的废话
温柔的废话 2021-01-28 22:02

If I put viewport3D inside Canvas my viewport3D is not visible anymore. If I remove Canvas then Viewport3D is visible again. What I\'m doing wrong?

          <         


        
1条回答
  •  再見小時候
    2021-01-28 22:11

    I think the ViewPort3D will end up in the upper left corner of the Canvas with a Width and Height of 0 since Canvas never stretches its Children. Try to add Canvas.Left and Canvas.Top at the positioning of your choise and then add Width and Height for your Viewport3D. If you want your Viewport3D to always fill the available space then Canvas is the wrong way to go.

    
        
            
                
            
            
                
                    
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题