简体   繁体   中英

TextBlock not rendering entire text on WP7

So I'm creating an app that requires for a TextBlock to have a marquee effect if its width is longer than the bounds of the page in Landscape mode. I managed to get it to marquee just fine using TranslateTransform animations, but it seems that my TextBlock's text is being cut out.

Is there a way to make it so that this behavior doesn't happen or is there a workaround?

截图

You need to wrap the TextBlock in a Canvas and then apply the animation. Also make sure that you set the TextWrapping property to NoWrap and set the width to Auto so that it spans only one line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM