简体   繁体   中英

How can I draw on two side by side inkcanvases

I have two inkCanvas elements in WPF displayed side by side. I want to be able to draw lines seamlessly from one inkCanvas to the next. Right now the stroke gets clipped at the boundary and you have to release the mouse and press it again on the next canvas to continue the line.

I also read that inkCanvas wasn't really the way to go for drawing. It was more for simple things like signatures. What are you supposed to use instead?

First try with one inkcancas:

  • add tiles by replacing the current inkcanvas with a bigger one and copying the strokes
  • it might work
  • if it doesn't you will know what you need more

Yes inkcanvas is for simple things but before you start coding a lot try to specify what you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM