1

I have added a textbox with adorners in Canvas and I don't want to move outside of the canvas. What do I have to do? I am moving at runtime the textbox.

Simon Sarris
  • 62,212
  • 13
  • 141
  • 171
Ragavan
  • 2,984
  • 5
  • 22
  • 24
  • Have a look at this question: http://stackoverflow.com/questions/6684904/how-can-i-get-wpfs-cliptobounds-to-work – Jens Feb 17 '12 at 13:04
  • Almost no container constrains its children position – NestorArturo Feb 17 '12 at 13:29
  • How did you write your adorners? They're what's handing the moving of the textbox, so they're where you would need to add the constraints. – Joe White Feb 17 '12 at 14:08
  • MSin adorner layer added the thumbs , did you tried to add textbox in MS Paint move upto end what will happen ,it will restrict in my case it will allow to move and resize – Ragavan Feb 18 '12 at 11:02

0 Answers0