渲染问题 RichTextBox Windows Phone 8 [英] Renderproblem RichTextBox Windows Phone 8

查看:31
本文介绍了渲染问题 RichTextBox Windows Phone 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 WindowsPhone 8 中实现了一个 RichTextBox.我在运行时用段落、运行、图像和超链接按钮填充这个框.现在出现的问题是在 RichTextBox 的一些内容行被剪切之后.我声明了一个红色边框,它也被剪掉了.链接和图像仍会显示.这是一个截图:

I'm implemented a RichTextBox in WindowsPhone 8. I fill this Box while runtime with Paragraphs, Runs, Images and HyperlinkButtons. The Problem that now appears is after some lines of content the RichTextBox is cut. I declared a red border that is also cut. Links and images are still displayed. Here is a Screenshot:

我的 XamlCode 很简单:

My XamlCode is simple:

<Grid x:Name="LayoutRoot" Background="Transparent">
    <ScrollViewer>
        <RichTextBox x:Name="ContentBox"  HorizontalAlignment="Stretch" VerticalAlignment="Top" BorderThickness="2" BorderBrush="Red" >
        </RichTextBox>
    </ScrollViewer>
</Grid>

知道问题是什么还是模拟器错误?

Any idea what the problem is or is it a simulator bug?

推荐答案

鉴于填充率计数器为 2.4,我的水晶球告诉我您已达到单个 UI 元素的 4096 像素大小限制.如果是这种情况,您将不得不在几个不同的控件之间拆分 RichTextBox 内容.

Given that the fill-rate counter is at 2.4 my crystal ball tells me that you're hitting the 4096px limit of size for a single UI element. If that's the case you'll have to split up the RichTextBox content between several different controls.

这篇关于渲染问题 RichTextBox Windows Phone 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆