As I mentioned in the title, the GridLine is not displayed in the Helixtoolkit MVVM instance. I couldn't find the source of the problem. My application is as follows.
<HelixToolkit:HelixViewport3D ItemsSource="{Binding Objects}">
<HelixToolkit:GridLinesVisual3D Width="600"
Length="600"
Thickness="0.1"
MinorDistance="5"
MajorDistance="10"
Fill="Black"
Visible="True" />
</HelixToolkit:HelixViewport3D>
This is because you are overwriting.
There are a few ways to resolve this:
Option 1: Include the
GridLinesVisual3Din yourObjectsdynamically (possibly in yourViewModel) and not inside theHelixViewport3Din the XAML.Option 2: You can put a
ModelVisual3D(or other container, which one to use really depends on what you are doing) and pass your objects to it while keeping theGridLinesVisual3Ddefined inside theHelixViewport3D.