Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to scale Element without Line Thickness? (help)

$
0
0

I created custom grid as Canvas, where I can draw rectangles which have Border with custom color. The grid can be resizable in X Y independently. Everything is ok until I scale Canvas. I use Transform -> LayoutTransform.

Problem is when I scale, it scale Line thicness or Border Thickness and when rectangle or border have rounded corners it is stretched. Question is how to avoid this unwanted effect? Is it possible?

For now, Grid lines when I zoom (in / out) I recalculate posistions of lines. I think the stretch Canvas save time but it make this unvanted effects (stretched line thickness, rounded corners, ...).




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>