Search code examples
wpfxamlcode-behindhelix-3d-toolkit

How to binding Helix-MeshGeometryVisual3D in codebehind?


How can I implement the following XAML with the Code-Behind?

 <helix:MeshGeometryVisual3D MeshGeometry="{Binding TextGeometry}" />

Solution

  • Have you tried:

    var geometry = new MeshGeometryVisual3D
    {
        MeshGeometry = TextGeometry,
    };