Long text trimmed in a text block

I have a problem. I have a text block and my text is clipped. It seems that this only appears when the text is too long, when the text is shorter, there is no problem.

So there is my code:

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <Grid.RowDefinitions> <RowDefinition Height="150" /> <RowDefinition Height="447*" /> </Grid.RowDefinitions> <Image Grid.Row="0" Source="{Binding TheContent.PathPicture}" /> <ScrollViewer Grid.Row="1"> <Grid> <TextBlock Text="{Binding TheContent.Text}" TextWrapping="Wrap" FontSize="24" /> </Grid> </ScrollViewer> </Grid> 

The text looks like this:

enter image description here

Is the only solution to summarize my content?

+4
source share
2 answers

The depth of one text block is limited to approximately 2000 pixels on WP7. You need to split the text into several blocks in order to display everything.

+5
source

The controls are limited to a 2k square, but there is a fairly direct resolution when breaking text and presenting blocks in the panel stack and moving them to ScrollViewer.

Alex Yakhnin demonstrates here.

Create a scrollable text block for WP7.

+2
source

Source: https://habr.com/ru/post/1337291/


All Articles