RichTextBlockOverflow和WinRT

时间:2016-01-18 14:24:02

标签: windows printing windows-store-apps winrt-xaml

如何打印带分页的XAML页面?我按照这个示例:http://blogs.u2u.be/diederik/post/2013/01/20/Printing-from-MVVM-XAML-Windows-8-Store-apps.aspx。这是我的代码:

<Page x:Class="U2UConsult.Win8.PrintingSample.MainPrintPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:U2UConsult.Win8.PrintingSample"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d">
    <RichTextBlock >
        <Paragraph>
            <InlineUIContainer>
                <TextBlock Text="{Binding SelectedQuote}"
                               FontSize="32"
                               Foreground="Black"
                               Margin="16" 
                               TextWrapping="Wrap" />
            </InlineUIContainer>
        </Paragraph>
    </RichTextBlock>

</Page>

问题是我只从我的文本中获得一页。有人可以帮我做分页吗?谢谢。我仍然需要InlineUIContainer,因为我必须为网格做分页。

0 个答案:

没有答案