How to create a shape acting like a textbox?
Posted
by subho100
on Stack Overflow
See other posts from Stack Overflow
or by subho100
Published on 2010-03-19T04:42:38Z
Indexed on
2010/03/19
4:51 UTC
Read the original article
Hit count: 158
wpf
Please refer this control http://www.charlespetzold.com/blog/2009/10/Using-Text-Outlines-in-Silverlight.html The formattedtext control is a shape which helps to generate the shape of the text with proper geometry. I would like to make this control act like a text box with cursors and features like typing in from keyboard. Right now I use an invisible text box with a formattedtext control to act like that. But the cursor position always creates a problem when the size of the text is not equal to the size of the rendered text as shape.
Can anyone please show the way to achieve this.
© Stack Overflow or respective owner