Creating a new Control

Oct 12, 2012 at 1:25 PM


I'm trying to create a new control for handling navigation along images with gestures.

I basically created the XAML file and its code behind inside Controls folder, but I'm getting a problem with the InitializeComponent()

Error 3 The name 'InitializeComponent' does not exist in the current context D:\Projects\SourceCode\Kinect\Kinect Toolbox\Sources\Controls\Navigation2dControl.xaml.cs 15 13 Kinect.Toolbox

I've notice the initialize of other controls point out to .g.cs files. Why? What happens to be like this?

What should I do in order to add my control?