Consider the following InkCanvas on a UWP app, which is the only element inside a Grid (omitted for conciseness)
<InkCanvas x:Name="inkCanvas" Width="500" Height="500"/>
Draw a stroke which starts somewhere inside the InkCanvas and prolong your stroke outside of the InkCanvas boundaries. Visually, you will have the impression that the stroke ends at the boundary (e.g. at the right edge of the InkCanvas). But this is not true. Resize you InkCanvas via a Button , e.g.
private void SizeButton_Click(object sender, RoutedEventArgs e)
{
inkCanvas.Width = 2000;
inkCanvas.Height = 2000;
}
and you will see the part of the stroke that was drawn outside of the InkCanvas. This part will also be visible if you save your stroke to a gif or isf, with or without resizing, which is very unfortunate. Several apps with inking capabilities in the windows store have this issue.
Question : Why is that and how can we avoid it??