I am wrapping my Ink Canvas with View Box to scale canvas content (I need this kind of behavior).
<Viewbox StretchDirection="Both" Stretch="Fill">
<InkCanvas Width="100" Height="100"/>
All is working pretty well (Content is scaled).
But then I have noticed that View Box transformations are not applied to Ink Canvas Stylus.
So if I will create very small Ink Canvas and then make my View Box large (canvas will be scaled too) my Stylus over the Ink Canvas will be very small but when I will start drawing on this canvas my strokes will be very very thick (because they are properly scaled).
No matter how I resize my window ¨C stylus size is always the same.
Of course somehow I can find View Box transformation matrix and then apply it on Stylus (DefaultDrawingAttributes.StylusTipTransform) only when it is moving and reset this transformation when I am actually drawing (if I will not reset the transformation my strokes will be even bigger). But it seems to me incorrect from programming prospective.
Is there another way to make stylus look correct on the Ink Canvas It looks like kind of bug of the View Box class ¡