Set the InkCanvas' Background
property to Transparent
(or null
) and return the visuals in different order from the GetVisualChild override:
protected override Visual GetVisualChild(int index)
{
if (index < visuals.Count)
{
return visuals[index].Visual;
}
return base.GetVisualChild(index - visuals.Count);
}