Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my windows phone 8 app I am binding long unicode text to textblock . While executing I am unable to see the entire text some text is missing .

If font size is 25 ,I am able to get only 200-250 characters only, if font size is 20 then the no of characters displaying are increasing.

I tried inlines property also. How to overcome this?
I tried with alphabets also I am facing the same problem.

my written code is

<TextBlock x:Name="txtT" FontSize="20" TextWrapping="NoWrap" TextAlignment="Left" >
                <TextBlock.Inlines>
                    <Run Text="ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"/>
                    <Run Text="ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"/>
                    <Run Text="dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"/>
                    <Run Text="qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"/>
                    <Run Text="kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"/>
                    <Run Text="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>
                </TextBlock.Inlines>

            </TextBlock>


Thank you,
Posted
Updated 21-Oct-14 21:34pm
v2

1 solution

The text is clipped by the length of your TextBlock.
Because you disabled wrapping, the text can only go to the right(not down).

The length of the textbox is dependable on the width of the container it's in.
change the width of this container or set Textwrapping to Wrap.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900