Chào các bạn ! Vấn đề của mình thế này, mỗi lần move đối tượng trên màn hình khi dở ngón tay (chuột) thật nhanh thì đối tượng bị trượt đi theo hướng di chuyển đó (giống như bị ném đi). Do mình sử dụng sự kiện Manipulation Agrs để move đối tượng như mình lại không muốn nó bị trượt như thế, làm trên Silverlight thì không bị như thế ? Mong các bạn giúp đỡ, bên dưới là code của mình:


Mã:
<!--MainPage.xaml: --><Canvas x:Name="MyCanvas"       <Rectangle Name="TestRectangle"          Width="100" Height="200" Fill="Blue"           ManipulationMode="All"/></Canvas>
Mã:
//MainPage.xaml.cspublic MainPage()    {        this.InitializeComponent();        // Handle manipulation events.        TestRectangle.ManipulationDelta += Drag_ManipulationDelta;        dragTranslation = new TranslateTransform();        TestRectangle.RenderTransform = this.dragTranslation;         this.NavigationCacheMode = NavigationCacheMode.Required;    }void Drag_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)    {        // Move the rectangle.            dragTranslation.X += e.Delta.Translation.X;            dragTranslation.Y += e.Delta.Translation.Y;    }     private void TestRectangle_PointerPressed(object sender,PointerRoutedEventArgs e)    {        Rectangle rect = sender as Rectangle;         // Change the size of the Rectangle        if (null != rect)        {            rect.Width = 250;            rect.Height = 150;        }    }    private void TestRectangle_PointerReleased(object sender,PointerRoutedEventArgs e)    {        Rectangle rect = sender as Rectangle;         // Reset the dimensions on the Rectangle        if (null != rect)        {            rect.Width = 200;            rect.Height = 100;        }    }    private void TestRectangle_PointerExited(object sender,PointerRoutedEventArgs e)    {        Rectangle rect = sender as Rectangle;         // Finger moved out of Rectangle before the pointer exited event        // Reset the dimensions on the Rectangle        if (null != rect)        {            rect.Width = 200;            rect.Height = 100;        }    }
Làm sao để mỗi lần di chuyển cho dù dở ngón tay lên đột ngột hay bình thường thì nó cũng không bị trượt, mong các bạn giúp đỡ !

- - - Nội dung đã được cập nhật ngày 12-03-2015 lúc 08:49 PM - - -

Không biết có ai đã hoặc gặp qua vấn đề này chưa, rất mong chờ sự giúp đỡ từ diễn dàn !

- - - Nội dung đã được cập nhật ngày 12-03-2015 lúc 09:47 PM - - -

Mình đã giải quyết được vấn đề, xin tự trả lời luôn @@. Mặc dù đây chỉ là cách chữa cháy, nếu như ai có cách giải quyết tốt hơn xin đóng góp.
Đầu tiên bỏ dòng code XAML trong MainPage.xaml ở dòng số 5:

Mã:
ManipulationMode="All"
tiếp theo thêm dòng này trong hàm MainPage() của MainPage.xaml.cs:
Mã:
TestRectangle.ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateY;
vậy là xong, rất đơn giản nhưng mất mấy ngày mới giải quyết được !