How to make a control in XAML public in order to be seen in other classes

Using the following XML you can define a control as a public field on the class to be able to access it from other classes: <CheckBox x:Name=”myCheckBox” x:FieldModifier=”public” /> Now you can access the field directly in code: if (win.myCheckBox.IsChecked.Value) { // … } I agree with H.B., though, that using the MVVM pattern is … Read more

Cannot open Windows.h in Microsoft Visual Studio

If you already haven’t done it, try adding “SDK Path\Include” to: Project → Preferences → C/C++ → General → Additional Include Directories And add “SDK Path\Lib” to: Project → Preferences → Linker → General → Additional Library Directories Also, try to change “Windows.h” to <windows.h> If won’t help, check the physical existence of the file, … Read more

Raspberry Pi with Kinect

To answer your question, yes it is possible to get Image and depth on the raspberry pi! Here is how to. If you want to use just video (color, not depth) there is already a driver in the kernel! You can load it like this: modprobe videodev modprobe gspca_main modprobe gspca_kinect You get a new … Read more

Kinect sideways skeleton tracking

As Renaud Dumont stated, I would do something with JointTrackingState. Since your using knees, I used the variables leftknee and rightknee which are Joints to do it. Here’s code, You might use JointType.FootRight and JointType.FootLeft and the Hip types, but I’ll leave that up to you. static Skeleton first = new Skeleton(); Joint leftknee = … Read more

Official Kinect SDK vs. Open-source alternatives

Please note that the below answer is per date and some facts may very well be outdated in the near future. Current state of the Official Kinect SDK is beta 1.00.12. The first obvious difference is that the official SDK is maintained by the Microsoft Research team while OpenKinect is an open source SDK maintained … Read more

Store Kinect’s v2.0 Motion to BVH File

The code you used for Kinect 1.0 to obtain a BVH file use the joints information to build bone vectors by reading the Skeleton. public static double[] getBoneVectorOutofJointPosition(BVHBone bvhBone, Skeleton skel) { double[] boneVector = new double[3] { 0, 0, 0 }; double[] boneVectorParent = new double[3] { 0, 0, 0 }; string boneName = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)