Error with adding assembly in vs2012

Nov 3, 2015 at 8:34 PM
Hi everyone,

I have a problem with the assembly "Coding4Fun.Kinect.Wpf.dll" in my project of vs2012. The intellisense can't recognize the hoverbutton. The achivement is to integrate the same functionality for this example: http://www.dotnetfunda.com/articles/show/2168/basic-nagivation-in-kinect-using-wpf, but when I reproduce the same code in my project, including the assembly reference, the xaml file that includes the hoverbutton, couldn't recognize the control, so the design view doesn't show any control:

The code that references the assembly in my xaml file is:

<Window x:Name="FrmPrincipal" x:Class="XXXXXXXX"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:Coding4Fun.Kinect.Wpf.Controls;assembly=Coding4Fun.Kinect.Wpf" 
....

And beyond, the next code that uses the control is:

<Controls:HoverButton Margin="0" Padding="0" x:Name="kinectButton" ImageSize="50"
........

The error is: "HoverButton no exists in the namespace "clr-namespace:Coding4Fun.Kinect.Wpf.Controls;assembly=Coding4Fun.Kinect.Wpf" ...

The project works, and be able to run without problems, but when in the code I try to use the control, a exception is thrown because the control with id "kinectButton" is null or nothing.

How could it be wrong?.

Thank you in advance.