コード例 #1
0
ファイル: TextBox.cs プロジェクト: masums/ultraviolet
        /// <inheritdoc/>
        protected override void OnPreviewTouchMove(TouchDevice device, Int64 id, Double x, Double y, Double dx, Double dy, Single pressure, RoutedEventData data)
        {
            if (TextEditor != null)
            {
                var capture = Touch.GetCaptured(View, id);
                if (capture == this || capture == null)
                {
                    TextEditor.HandleTouchMove(device, id, x, y, dx, dy, pressure, data);
                    data.Handled = true;
                }
            }

            base.OnPreviewTouchMove(device, id, x, y, dx, dy, pressure, data);
        }