tags:

views:

190

answers:

2

Hi

I would like to add some text (like a label) on a InkCanvas with WPF in C# code (not Xaml).

How is it possible ? thanks Jonathan

A: 

There is a regular Children property: http://msdn.microsoft.com/en-us/library/system.windows.controls.inkcanvas.children.aspx

Check the examples for a code example

Zenuka
Hi, Thanks. But looks like the positionning does not work. it always put it on top 100,100 even if of course i changed the parameters
Could you edit you question and add some sample xaml and code-behind?
Zenuka
A: 

Try to implement a custom Stroke class and use Drawingcontext.DrawString method for the same.

biju