Silverlight 2和大画布? [英] Silverlight 2 and large canvases?

查看:85
本文介绍了Silverlight 2和大画布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个应用程序,该应用程序使用多个大型画布控件(跨过数千个像素),彼此重叠.画布控件本身是完全不可见的,但是每个控件都包含许多控件,主要是图像.

I am working on an application that uses several large canvas controls (several thousand pixels across), layered on top of each other. The canvas controls themselves are completely invisible, but each contains a number of controls, mainly images.

我的问题是,画布是否有建议的最大大小,还是纯粹是内存问题?而且,我们是否最好将Canvas大小设置为(0,0)并利用我们可以在画布边界之外愉快地渲染控件的事实呢?

My question is, is there a recommended maximum size for a canvas, or is it purely a memory issue? And also, are we better off setting the Canvas size to (0, 0) and making use of the fact that we can happily render controls outside of the bounds of the canvas?

谢谢

G

推荐答案

据我对Canvas的内在理解,它不需要额外的内存即可变大.

From my understanding of the innards of Canvas, it should need no additional memory for being bigger.

我想到的第一件事是尺寸为Canvas的非零值,它允许人们相对于四个角中的任何一个在其上放置物品,这在例如以下情况下会有所帮助.调整容器的大小.

The first thing that comes to my mind on having a non-zero sized Canvas is that it allows one to put items on it relatively to any of the four corners, which helps when e.g. resizing the container.

这篇关于Silverlight 2和大画布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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