1

Closed

Integrating third party controls into library

description

Missing a API documentation to help me on integrate ElementFlow from FluidKit project with KinectWPF.
Closed Apr 13, 2011 at 7:46 AM by cgiacopino

comments

cgiacopino wrote Apr 11, 2011 at 1:04 PM

You're write, I haven't written any detailed documentation on the API.
But I can help you ansering your different questions

cgiacopino wrote Apr 11, 2011 at 1:07 PM

You're right, I haven't written any detailed documentation on the API.
But I can help you answering your questions.

ararog wrote Apr 11, 2011 at 4:03 PM

I would like to know how I can use the kinectwpf API to foward swipe left/right gestures to ElementFlow, should I make ElementFlow inherit from specific kinectwpf classes?

cgiacopino wrote Apr 11, 2011 at 4:25 PM

Just take a look at this view :

http://kinectwpf.codeplex.com/SourceControl/changeset/view/8569#154172

you just have to subscribe to the swipe event.

But actually it detects only "swipe" but not the direction, you actually don't know if you swipe from left to right or right to left

cgiacopino wrote Apr 11, 2011 at 4:40 PM

Take this changeset http://kinectwpf.codeplex.com/SourceControl/changeset/changes/8581
I've just adding the direction of your swipe manipulation

the event args KinectSwipeManipulation now contains a member "Type" that's an enum SwipeType

public enum SwipeType { LeftToRight, RightToLeft }

cgiacopino wrote Apr 12, 2011 at 8:58 AM

Hi,

I've just try to integrate the ElementFlow and it's really simple.
To make it quickly, I've just play with the selectedIndex :

void MainWindow_SwipeManipulationDetected(object s, PayloadEventArgs<KinectSwipeManipulation> e)
{
if(_elementFlow.SelectedIndex==_elementFlow.Count-1 || _elementFlow.SelectedIndex==0)
return;
if(e.Type==SwipeType.RightToLeft)
_elementFlow.SelectedIndex--;
else
_elementFlow.SelectedIndex++;
}

ararog wrote Apr 12, 2011 at 2:41 PM

Thanks dude! Feel free to close this issue.

cgiacopino wrote Apr 12, 2011 at 9:21 PM

You're welcome don't hesitate to ask me support if you need it

wrote Apr 13, 2011 at 7:46 AM

wrote Feb 13, 2013 at 12:55 AM

wrote May 15, 2013 at 12:42 AM