自动调整 Silverlight 3 应用程序大小
我一直在尝试让 Silverlight 3 应用程序在将行添加到数据网格时自动调整大小。 我试过了 此示例 但我只是得到一个带有空内部异常的 System.ExecutionEngineException 。我认为这仅针对 Silverlight 2。 谁能告诉我如何在 Silverlight 3 中做到这一点?
对此的任何帮助将不胜感激。
I've been trying to get a Silverlight 3 application to automatically resize when rows are added to datagrids.
I've tried
this example
but I just get a System.ExecutionEngineException
with a null inner exception. I think this is aimed at Silverlight 2 only.
Can anyone tell me how to do this in Silverlight 3?
Any help on this would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经使用以下方法进行了此操作:
将以下 javascript 添加到包含 silverlight 对象的页面:
将以下内容添加到您的 silverlight 代码隐藏中:
请注意,“ResizeObject”指的是网页上的 javascript 函数。
I 've got this working with the following:
Add the following javascript to the page with your silverlight object:
Add the following to your silverlight codebehind:
Note that "ResizeObject" refers to the javascript function on your webpage.