In the previous articles, we have introduced various modes of touch-screen operation, and have a better understanding of its development methods. A careful friend should find that in the last article, if you drag a picture too fast it will fly out of the program window because of inertia effect, that is to say, it also needs to carry on the boundary restriction and so on related development. And regardless of which kind of touch screen operation requires the developer to write the code step by step, this article will introduce an efficient multi-point touch screen development model.
In fact, we just need to take advantage of the multi-touch manipulation project in CodePlex, which not only supports WPF, but also projects development for Silverlight and Windows Phone 7. Download and install the program, open blend 4 new project, draw a rectangle in the design window.
The Fluidmovebehavior and Translatezoomrotatebehavior two options can be found in the Behaviors menu and dragged into the rectangle to make the rectangle touch-screen operational.