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; }
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); }