Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug TextBlock clipping off last word...
4 replies. Latest Post by timbot on February 18, 2009.
(0)
timbot
Member
1 points
10 Posts
02-10-2009 10:34 AM |
I'm having a weird issue that i havn't found anywhere. but on certain textblocks with a lot of text that i'm setting programmatically is sometimes clipping the last word... i tried a few things that work sometimes but not always. sometimes adding a trailing space makes the last word show up, sometimes putting the last sentance onto a new line brings it back, but it's not consistant. has anyone had this problem and is there a solution?
fullsail...
Contributor
3699 points
829 Posts
02-10-2009 12:53 PM |
Does it still do that if the FontSize is smaller?
02-11-2009 10:53 AM |
well, i would rather not have smaller text because it would make it more difficult to read.
but as far as the Brown is Crimson, i actually really noticed that, i'm using brown in my control for a nice dark red and it looks great! B)
02-11-2009 11:48 AM |
First of all, thank you so much for making my morning by acknowledging that "No I'm not crazy, or colorblind; and yes, their colors are a little ... screwed up." Basically, what I'm trying to point out is: that is not the brown that I grew up with in Kindergarten. As far as the font issue goes -- it just happens -- it has to do with the ratio of letters to words to how much it can actually fit. So, the reason I "axed" you if it helped to make the font smaller, was I wanted to see if it was a ratio problem. You'll have to tweek one or all of the following: the size of the container, a textbox or textblock; the size of font; or the container's padding properties. Or, if you're hardcore, you can make your own custom control that renders text exactly how you want it -- rendering the "real" colors found on Earth, or colors that other people make up for giggles.
02-18-2009 4:28 PM |
ok, well i found a way to get my text to show up right, because it was actually not showing the last line in some of my things... Str.Replace(ChrW(10), " " & vbLf)
that seems to do the job, when i send my info across to my server to add to the xml file and then return it puts in chr(10) and i guess silverlight doesn't think that's usable or something... whatever, now i have my thing fixed!
fyi, when i tried using just