I might’ve dreamed it, but I remember somewhere I read that it was possible to use a scale transform to change the size of a border, and that there’s a property that will keep the border width to what it was before using the scale (what I might’ve dreamed is this property, not the scale transform =P).
So, normally, if I have a border with BorderWidth of 1, and I scale it to make it bigger, the BorderWidth will look like it is 10 or something. I want the control itself to be bigger, but the its border to keep the 1 pixel width.
Anyone know how to do this?
Thanks!
Sure, just layout-transform scale a zero-width border to any size you like and wrap it in one-pixel width border.
Edit:
OK, take two for when the scaling is coming in externally.
Here is a little markup demo with a canvas being transformed and containing a border:
and here is the de-scaling converter:
Note that the converter is not robust and is only from demonstration purposes.