Home › Forums › Software Development › [Solved] Project building with several errors when using EyeXFramework › Reply To: [Solved] Project building with several errors when using EyeXFramework
27/07/2016 at 11:29 #5454
Alex [Tobii]
Participant
I f you are programming for WPF please make sure that you start your eyex host on app start:
public partial class App : Application
{
private WpfEyeXHost _eyeXHost;
public WpfEyeXHost EyeXHost
{
get { return _eyeXHost; }
}
public App()
{
_eyeXHost = new WpfEyeXHost();
_eyeXHost.Start();
}
protected override void OnExit(ExitEventArgs e)
{
base.OnExit(e);
_eyeXHost.Dispose();
}
}
I would suggest first trying to compile the sample from
source\WpfSamples\ActivatableElements\
and then transferring the code to your project line by line.
You can also check the device and tracking status after you initialize eyex to make sure that it works. Check this sample:
source\WpfSamples\UserPresenceWpf\
Let me know if that helps.
/Alex