Changing color to the ink in wpf
How can i change the Ink color of inkcanvas in wpf dynamically
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Nilesh AvhadRank #3,587 · 406 reputationPosted Mar 7, 2014, 4:09 AM EST
Here is a simple example.
void ChangeColor(InkCanvas inkCanvas, Color color)
{
foreach (var stroke in inkCanvas.Strokes)
{
stroke.DrawingAttributes.Color = color;
}
}