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

Set textblock position on Canvas based on center origin

$
0
0

Hi all,

I'm having a issue where I'm trying to position a text block on a canvas but its position values are based on the top left coordinates. I've tried using the render transform origin and setting the point to 0.5,0.5 by its not letting me set the position relative to the center of the text block. I would like to set the X,Y from the center of the text block not the top left. Any ideas?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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