Silverlight控件一次又一次地重新初始化

编程入门 行业动态 更新时间:2024-10-27 03:42:28
本文介绍了Silverlight控件一次又一次地重新初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用Silverlight控件来显示搜索网格,它是选项卡的一部分(Ajax选项卡控件)。当用户搜索他的项目时,他需要点击其中一个搜索项目,另一个选项卡将打开以显示该项目的详细信息,用户可以更新某些内容。

I am using Silverlight control to display a search grid and it is part of a tab (Ajax tab control). As user searches for his item he needs to click on one of searched item and another tab will open to diplay the details of the item where user can update certain things.

现在我在这里遇到的问题是 - Silverlight控件正在重新初始化,因为新选项卡正在打开或任何按钮点击正在发生,无论部分和完整回发。我需要停止重新初始化silverlight网格,因为当时用户正在丢失所有内容,并且UI明智地也会产生负面影响。

Now the issue I am facing here is -the silverlight control is getting re-initialized as a new tab is getting opened or any button click is happening irrespective of partial and full post back. I need to stop this re-initialization of silverlight grid as the user is losing everything at that moment and UI wise also it is giving a negative impact.

如果有人有任何关于这个的建议然后请告诉我。

If someone has any suggestion on this then please let me know.

推荐答案

您好,您可以在初始化代码中创建一个断点并调试它,然后你将意识到何时以及为何一次又一次地重新初始化。

Hi, you can make a breakpoint in the initialization code and debug it, then you will realize when and why it be re-initialized again and again.

更多推荐

Silverlight控件一次又一次地重新初始化

本文发布于:2023-11-27 23:55:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640123.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:初始化   控件   Silverlight

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!