How To Start A New Application For The Fiduciary Glove

Toolkits.HowToStartANewApplicationForTheFiduciaryGlove History

Hide minor edits - Show changes to output

Changed line 21 from:
public partial class [*Window1*] : [*GloveWindow*]{
to:
public partial class Window1 : GloveWindow{
Changed line 32 from:
this.PostureRecognizer = new [*PostureRecognizer*](this);
to:
this.PostureRecognizer = new PostureRecognizer(this);
Changed line 36 from:
this.GestureRecognizer = new [*GestureRecognizer*]();
to:
this.GestureRecognizer = new GestureRecognizer();
Changed line 39 from:
this.HandpartDown += new [*EventHandler*]<[*GloveTouchEventArgs*]>(Window1_HandpartDown);
to:
this.HandpartDown += new EventHandler<GloveTouchEventArgs>(Window1_HandpartDown);
Changed line 42 from:
void Window1_HandpartDown(object sender, [*GloveTouchEventArgs*] e){
to:
void Window1_HandpartDown(object sender, GloveTouchEventArgs e){
Changed lines 15-17 from:
To start with the development, you can click on the "Window1.cs" file to edit the application in C# code
to:
!! Editing the C# code
To start with
the development, you can click on the "Window1.cs" file to edit the application in C# code.
Added line 48:
!! Editing the XAML code
Changed lines 53-56 from:
To start with the development, you can now click on the Visual Studio toolbox to access the programming building blocks of the toolkit. Gloves, Users, and GloveButtons can be dragged and dropped into the WYSIWYG-editor. But they can be created and adjusted in XAML-Code, too.
to:
To start with the development, you can now click on the Visual Studio toolbox to access the programming building blocks of the toolkit. Gloves, Users, and GloveButtons can be dragged and dropped into the WYSIWYG-editor. They can be also created and adjusted in XAML-Code.
Added line 18:
(:source lang=csharp tabwidth=2 linenum=0 :) [=
Changed lines 44-45 from:
to:
=]
Changed lines 16-17 from:
to:
The code view will open, and you will see the code skeleton the template created for you.

public partial class [*Window1*] : [*GloveWindow*]{
public Window1(){
InitializeComponent();

//Creates a glove for every glove model in the glove repository
this.LoadGloves();

//Alternatively you can also instantiate glove by glove;
//Glove glove = new Glove(this, "Glove1");

//Creates posture recognizer and loads all postures from the posture repository into the recognition engine
this.PostureRecognizer = new [*PostureRecognizer*](this);
this.PostureRecognizer.LoadPostures(PostureRepository);

//Creates gesture recognizer and loads all gesture from the gesture repository into the recognition engine
this.GestureRecognizer = new [*GestureRecognizer*]();
this.GestureRecognizer.LoadGestures(GestureRepository);

this.HandpartDown += new [*EventHandler*]<[*GloveTouchEventArgs*]>(Window1_HandpartDown);
}

void Window1_HandpartDown(object sender, [*GloveTouchEventArgs*] e){
Console.WriteLine(e.Glove.Hand + " " + e.Handpart.Identifier);
}
}
Added line 1:
[[Toolkits.FiduciaryGloveToolkit | << Back to the Fiduciary Glove Toolkit page]]
February 21, 2011, at 01:56 PM by 79.230.30.128 -
Changed lines 1-2 from:
Using the Fiduciary Glove Application template
to:
!! Using the Fiduciary Glove Application template
February 21, 2011, at 01:55 PM by 79.230.30.128 -
Added lines 1-24:
Using the Fiduciary Glove Application template

First, start the Visual Studio IDE:

Once the Visual Studio IDE has been loaded, open the dialog window to create a new development project. This can be done by either selecting the "File" menu, "New", and "Project..." (1), or by clicking the "Project..." entry of the welcome screen (2)

In the new project dialog window, select the "Fiduciary Glove Application" template (under "Fiduciary Glove Toolkit"), change the project name, and select "OK".

A new Fiduciary Glove Application project will be created based on the template.
The component you should start from when developing consists of two parts - "Windows1.xaml" and "Windows1.Xaml.cs".
Window1.Xaml is primarily used to define the static user interface in an xml-like structure.
Window1.Xaml.cs is used to code dynamic user interface parts and the application logic in C#.

To start with the development, you can click on the "Window1.cs" file to edit the application in C# code


Alternatively, the "Window1.xaml" file can be selected to edit the XAML structure in the Visual Studio Designer.

The Visual Studio Designer view is split horizontally in WYSIWYG-editor and XAML-code view.

To start with the development, you can now click on the Visual Studio toolbox to access the programming building blocks of the toolkit. Gloves, Users, and GloveButtons can be dragged and dropped into the WYSIWYG-editor. But they can be created and adjusted in XAML-Code, too.