❔ How to allow TextBlock over window in UWP/WinUI

SO basically, my text get cut after the window ends, is there any way to prevent it? i need the entire text there
12 Replies
JakenVeina
JakenVeina2y ago
my text get cut after the window ends
huh?
Koblížkáč
KoblížkáčOP2y ago
look
Koblížkáč
KoblížkáčOP2y ago
Koblížkáč
KoblížkáčOP2y ago
its like not rendering
Koblížkáč
KoblížkáčOP2y ago
JakenVeina
JakenVeina2y ago
I really don't know what I'm looking at you have text that's getting cut off?
Koblížkáč
KoblížkáčOP2y ago
Yes
Klarth
Klarth2y ago
Looks like everything beyond a full screen height is getting clipped. I don't know UWP well enough to solve this, but in WPF, you would ensure ClipToBounds="False". I don't think that property exists in UWP, but there's https://learn.microsoft.com/en-us/windows/communitytoolkit/extensions/uielementextensions through the community toolkit that might help. Clipping is going to depend on the parent control that contains the TextBlock. You can try asking in $uwp for second opinions. I don't think translating a TextBlock is the best approach here, but I'm not sure what is better (and smooth) without a lot of effort. Maybe put the TextBlock in a ScrollViewer, hide the scrollbar, and animate the scrolling.
Klarth
Klarth2y ago
Though the text starts from the bottom of the window, so you'd need to adjust for that too. catsweat
Koblížkáč
KoblížkáčOP2y ago
Alright thanks ill try ot
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server