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

Find out if text is wrapped

$
0
0

Hi

is there a way to find if the text of Textblock with TextWrapping="Wrap"
is actually wrapped?

If I have a var "myTextBlock" in cs how can i test whether the content is currently wrapped or not?

I mean I can use FormattedText, check the width and compare it to "myTextBlock.ActualWidth", but that seems much effort. Is there sth cheaper & built-in available?

Thx!




Viewing all articles
Browse latest Browse all 18858

Trending Articles



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