سؤال

I want to use Helix 3d Toolkit in my WPF application with C#. From site today I downloaded HelixToolkit-2014.1.2.1.zip and extracted in a folder. It contains folders for NET 4.0 & 4.5 respectively.

In my application, I added reference for HelixToolkit.Wpf.dll and tried to access in xaml. Using an example as reference I started creating xaml.

<Window x:Class="Learn3DApp.HelixExamples"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:helix="clr-namespace:HelixToolkit.Wpf;assembly=HelixToolkit.Wpf"
    Title="HelixExamples" Height="300" Width="300">
<Grid>
    <helix:HelixViewport3D x:Name="mainViewPort" >

    </helix:HelixViewport3D>
</Grid>

On <helix:HelixViewport3D line I get error "The name HellxViewport3D does not exist in the namespace "clr-namespace:HelixToolkit.Wpf;assembly=HelixToolkit.Wpf". The clr line is not underlined, but is underlined and the error also appears in that line only.

In code behind I tried and could add using HelixToolkit.Wpf; and also access HelicViewport3d easily without any problem.

My project is of Target Net 4.5, I tried adding HelixToolkit of 4.0 and 4.5 also (1 after another). But same problem in both the dlls'. Why so ?? I am using VS 2012.

What seems to be the problem ? Am I missing anything OR clr is not proper ??? OR is this Helix version not proper - which one to use ?? I am stuck and not able to move ahead. Have spent almost half day figuring the problem. If anyone can help me out, it would be great.

Thanks

هل كانت مفيدة؟

المحلول

I build the source code of Helix and created dll, and that worked for me.

This this helps others too.

نصائح أخرى

see this answer. Specifically, take a look on how he referenced the helix namespace.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top