locked
How to input text in SurfaceInkCanvas? RRS feed

  • Question

  • SurfaceInkCanvas can draw text and image, but the effect for drawing text is bad than input it using keyboard. Can you tell me how to input text in SurfaceInkCanvas? If user want to input text in SurfaceInkCanvas using virtual keyboard, how to do it? thanks.
    tszzp
    Monday, November 1, 2010 4:06 PM

All replies

  • You could create a ‘dialog’ type of control getting the text you want from the user in a TextBox. This control could be draw over the SurfaceInkCanvas of course.
     
    You would also create a subclass of the SurfaceInkCanvas and override the OnRender method to actually add the text to the SurfaceInkCanvas. For more information on how to use that to render rich text point to http://msdn.microsoft.com/en-us/library/ms752098(v=VS.90).aspx
     
    Maybe there are other ways to do it, but this would work.
     
    Hope it helps.
     
    Bye,
     
    Bart Roozendaal, Sevensteps
     
    "tszzp" wrote in message news:00b4e604-25ee-47a6-a9c3-ea5148314e37...
    SurfaceInkCanvas can draw text and image, but the effect for drawing text is bad than input it using keyboard. Can you tell me how to input text in SurfaceInkCanvas? If user want to input text in SurfaceInkCanvas using virtual keyboard, how to do it? thanks.
    tszzp

    Bart Roozendaal, Sevensteps
    Monday, November 1, 2010 11:26 PM