How to draw shapes in WP7 with the finger? I am trying to implement a simple paint application but I am not sure how to make the drawing.
相关问题
- An error is occur when we use navigation to move o
- binding font-awesome character in XAML to Text
- Windows Phone 7 call ASMX web service
- Can windows phone 7 microphone detect frequencies
- How to show/hide (with animation if possible) a Ch
相关文章
- Working with hmacsha256 in windows store app
- WP7 Alert dialog
- Difference between SuspendLayout and BeginUpdate
- Add Service Reference and Add Web Reference?
- Scrollviewer & SIP Issue (WP7.5 Mango)
- Dynamic text printed on the desktop using Delphi?
- Database for Windows Phone 7 [closed]
- How to save an image-file on server through Java a
There are two examples for you, you can download it from the below links.
Sample Project 1
Sample Project 2
fingerpaint is your friend
try it out on Ruby using http://script.iron7.com/#/Script/Detail?scriptId=FingerPaint&userLowerCaseName=iron7
or in C# at http://sigurdsnorteland.wordpress.com/2010/10/20/fingerpaint-a-little-wp7-paint-app/
Note that the two sets of code aren't quite the same - the C# fingerpaint had some issues about drawing new tracks on top of old ones so I modified this when I wrote the Ruby one.
Also note that to take this further, you should probably support multitouch.
Line Handle the StylusDown, StylusMove, and StylusUp events. Draw lines as appropriate depending on if you want straight vs. free form lines.