wpf paragraph text wrap RRS feed

  • Question




    I realize that when i use the zoom flowdocument control, my paragraphs inside table cells wraps the text. how can I setup the paragraph or the table cell to do not wrap the text???



    Tuesday, April 15, 2008 12:42 AM


  • FlowDocument by definition means that the content within it can be flowed or wrapped according to the layout change, so if you need something different, you need to use some out of band trick as follows:

    Code Snippet
    <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                <Table CellSpacing="5">
                        <TableRow Background="SkyBlue">
                            <TableCell ColumnSpan="4" TextAlignment="Center">
                                <Paragraph FontSize="24pt" FontWeight="Bold">
                                        <TextBlock>Planetary Information</TextBlock>

    Hope this helps
    Thursday, April 17, 2008 2:29 AM