In my UWP App I am using an InkCanvas
within a Popup
. Everything is working great, but when the popup is not filling the whole screen i can draw outside of the popup. After saving the StrokeContainer to a file also the lines out of the bounds are visible. This is very bad, because i added a background to the strokecontainer and i want to limit the user to draw onto it.
Is there a way to prevent drawing out of bounds? Or can i cut everything that is outside the visible area?