I found a solution. Had to add a property:
private bool _isGestureCatched;
private bool IsGestureCatched
{
get { return _isGestureCatched; }
set
{
if (_isGestureCatched != value)
{
if (!IsGestureCatched)
{
this._alreadyDone++;
this.RaisePropertyChanged(() => this.AlreadyDone);
}
}
_isGestureCatched = value;
}
}
And then in SkeletonFrameReady
have to set it like this:
if (conclusionsString.Contains("!"))
{
IsGestureCatched = true;
}
else
{
IsGestureCatched = false;
}
It is working, only sometimes this code catched one gesture twice so if someone have better idea, is welcome, reply from @dav_i is helpfull