Interaction logic for TouchControl.xaml
Inheritance: System.Windows.Controls.UserControl
        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;
        }
Exemple #2
0
        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);
        }