Rescale stroke width RRS feed

  • Question

  • Hi, all


    Is there a way of rescaling the stroke width when resizing a vector image?


    Malu Menezes
    Messages in this forum are provided "AS IS" with no warranties
    Storage Team at Microsoft
    Wednesday, October 1, 2008 12:10 AM

All replies

  • Hi,

    There are a few ways you could get such a behavior:
    - You can adjust the Scale component of the RenderTransform property (in the property inspector, locate the RenderTransform propert, click on the Scale tab and you can adjust the scale)
    - In a WPF project you can use the ViewBox control - please note that the ViewBox control allows only one child element, so if you have multiple elements you may want to insert them in a container which supports multiple children (e.g. Canvas or Grid) and place that container inside the ViewBox. You can try using Expression Blend's feature "Group Into" (right click on the element) and choose ViewBox

    Hope this helps!
    - Adrian Vinca [MSFT]
    Content is provided "AS IS" with no warranties and confers no rights.
    Opinions are my own and do not represent those of my employer.
    Wednesday, October 1, 2008 8:44 AM