CCT.NUI.WPFSamples.ManipulationWindow.GetTouchVisual C# (CSharp) Method

GetTouchVisual() private method

private GetTouchVisual ( int deviceId ) : TouchControl
deviceId int
return TouchControl
        private TouchControl GetTouchVisual(int deviceId)
        {
            if (this.touchPoints.ContainsKey(deviceId))
            {
                return this.touchPoints[deviceId];
            }

            var touchControl = new TouchControl(deviceId);
            this.touchPoints.Add(deviceId, touchControl);
            this.fingerCanvas.Children.Add(touchControl);
            return touchControl;
        }