changing color to the ink in wpf
How can i change the Ink color of inkcanvas in wpf dynamically
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilesh AvhadPosted Mar 7, 2014, 9:09 AM
Here is a simple example.
void ChangeColor(InkCanvas inkCanvas, Color color)
{
foreach (var stroke in inkCanvas.Strokes)
{
stroke.DrawingAttributes.Color = color;
}
}